Add files using upload-large-folder tool
Browse files- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics.Editor/MatrixDrawer.cs +139 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics.Editor/MatrixDrawer.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics.Editor/PostNormalizedVectorDrawer.cs +202 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/Unity.Mathematics.asmdef +4 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/Unity.Mathematics.asmdef.meta +7 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint3.gen.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint3x2.gen.cs +494 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint3x2.gen.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint3x3.gen.cs +512 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint3x3.gen.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint3x4.gen.cs +524 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint3x4.gen.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint4.gen.cs +0 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint4.gen.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint4x2.gen.cs +497 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint4x2.gen.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint4x3.gen.cs +512 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint4x3.gen.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint4x4.gen.cs +530 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint4x4.gen.cs.meta +11 -0
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics.Editor/MatrixDrawer.cs
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using System;
|
| 2 |
+
using System.Collections.Generic;
|
| 3 |
+
using System.Collections.ObjectModel;
|
| 4 |
+
using UnityEditor;
|
| 5 |
+
using UnityEngine;
|
| 6 |
+
|
| 7 |
+
namespace Unity.Mathematics.Editor
|
| 8 |
+
{
|
| 9 |
+
[CustomPropertyDrawer(typeof(bool2x2)), CustomPropertyDrawer(typeof(bool2x3)), CustomPropertyDrawer(typeof(bool2x4))]
|
| 10 |
+
[CustomPropertyDrawer(typeof(bool3x2)), CustomPropertyDrawer(typeof(bool3x3)), CustomPropertyDrawer(typeof(bool3x4))]
|
| 11 |
+
[CustomPropertyDrawer(typeof(bool4x2)), CustomPropertyDrawer(typeof(bool4x3)), CustomPropertyDrawer(typeof(bool4x4))]
|
| 12 |
+
[CustomPropertyDrawer(typeof(double2x2)), CustomPropertyDrawer(typeof(double2x3)), CustomPropertyDrawer(typeof(double2x4))]
|
| 13 |
+
[CustomPropertyDrawer(typeof(double3x2)), CustomPropertyDrawer(typeof(double3x3)), CustomPropertyDrawer(typeof(double3x4))]
|
| 14 |
+
[CustomPropertyDrawer(typeof(double4x2)), CustomPropertyDrawer(typeof(double4x3)), CustomPropertyDrawer(typeof(double4x4))]
|
| 15 |
+
[CustomPropertyDrawer(typeof(float2x2)), CustomPropertyDrawer(typeof(float2x3)), CustomPropertyDrawer(typeof(float2x4))]
|
| 16 |
+
[CustomPropertyDrawer(typeof(float3x2)), CustomPropertyDrawer(typeof(float3x3)), CustomPropertyDrawer(typeof(float3x4))]
|
| 17 |
+
[CustomPropertyDrawer(typeof(float4x2)), CustomPropertyDrawer(typeof(float4x3)), CustomPropertyDrawer(typeof(float4x4))]
|
| 18 |
+
[CustomPropertyDrawer(typeof(int2x2)), CustomPropertyDrawer(typeof(int2x3)), CustomPropertyDrawer(typeof(int2x4))]
|
| 19 |
+
[CustomPropertyDrawer(typeof(int3x2)), CustomPropertyDrawer(typeof(int3x3)), CustomPropertyDrawer(typeof(int3x4))]
|
| 20 |
+
[CustomPropertyDrawer(typeof(int4x2)), CustomPropertyDrawer(typeof(int4x3)), CustomPropertyDrawer(typeof(int4x4))]
|
| 21 |
+
[CustomPropertyDrawer(typeof(uint2x2)), CustomPropertyDrawer(typeof(uint2x3)), CustomPropertyDrawer(typeof(uint2x4))]
|
| 22 |
+
[CustomPropertyDrawer(typeof(uint3x2)), CustomPropertyDrawer(typeof(uint3x3)), CustomPropertyDrawer(typeof(uint3x4))]
|
| 23 |
+
[CustomPropertyDrawer(typeof(uint4x2)), CustomPropertyDrawer(typeof(uint4x3)), CustomPropertyDrawer(typeof(uint4x4))]
|
| 24 |
+
class MatrixDrawer : PropertyDrawer
|
| 25 |
+
{
|
| 26 |
+
public override bool CanCacheInspectorGUI(SerializedProperty property)
|
| 27 |
+
{
|
| 28 |
+
return false;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
|
| 32 |
+
{
|
| 33 |
+
if (!property.isExpanded)
|
| 34 |
+
return EditorGUIUtility.singleLineHeight;
|
| 35 |
+
var rows = 1 + property.type[property.type.Length - 3] - '0';
|
| 36 |
+
return rows * EditorGUIUtility.singleLineHeight + (rows - 1) * EditorGUIUtility.standardVerticalSpacing;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
static ReadOnlyCollection<string> k_ColPropertyPaths =
|
| 40 |
+
new ReadOnlyCollection<string>(new[] { "c0", "c1", "c2", "c3" });
|
| 41 |
+
static ReadOnlyCollection<string> k_RowPropertyPaths =
|
| 42 |
+
new ReadOnlyCollection<string>(new[] { "x", "y", "z", "w" });
|
| 43 |
+
|
| 44 |
+
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
|
| 45 |
+
{
|
| 46 |
+
position.height = EditorGUIUtility.singleLineHeight;
|
| 47 |
+
EditorGUI.PropertyField(position, property, label, false);
|
| 48 |
+
|
| 49 |
+
if (Event.current.type == EventType.ContextClick && position.Contains(Event.current.mousePosition))
|
| 50 |
+
{
|
| 51 |
+
DoUtilityMenu(property);
|
| 52 |
+
Event.current.Use();
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
if (!property.isExpanded)
|
| 56 |
+
return;
|
| 57 |
+
|
| 58 |
+
var rows = property.type[property.type.Length - 3] - '0';
|
| 59 |
+
var cols = property.type[property.type.Length - 1] - '0';
|
| 60 |
+
|
| 61 |
+
++EditorGUI.indentLevel;
|
| 62 |
+
position = EditorGUI.IndentedRect(position);
|
| 63 |
+
--EditorGUI.indentLevel;
|
| 64 |
+
|
| 65 |
+
var elementType = property.FindPropertyRelative("c0.x").propertyType;
|
| 66 |
+
for (var row = 0; row < rows; ++row)
|
| 67 |
+
{
|
| 68 |
+
position.y += position.height + EditorGUIUtility.standardVerticalSpacing;
|
| 69 |
+
var elementRect = new Rect(position)
|
| 70 |
+
{
|
| 71 |
+
width = elementType == SerializedPropertyType.Boolean
|
| 72 |
+
? EditorGUIUtility.singleLineHeight
|
| 73 |
+
: (position.width - (cols - 1) * EditorGUIUtility.standardVerticalSpacing) / cols
|
| 74 |
+
};
|
| 75 |
+
for (var col = 0; col < cols; ++col)
|
| 76 |
+
{
|
| 77 |
+
EditorGUI.PropertyField(
|
| 78 |
+
elementRect,
|
| 79 |
+
property.FindPropertyRelative($"{k_ColPropertyPaths[col]}.{k_RowPropertyPaths[row]}"),
|
| 80 |
+
GUIContent.none
|
| 81 |
+
);
|
| 82 |
+
elementRect.x += elementRect.width + EditorGUIUtility.standardVerticalSpacing;
|
| 83 |
+
}
|
| 84 |
+
}
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
Dictionary<SerializedPropertyType, Action<SerializedProperty, bool>> k_UtilityValueSetters =
|
| 88 |
+
new Dictionary<SerializedPropertyType, Action<SerializedProperty, bool>>
|
| 89 |
+
{
|
| 90 |
+
{ SerializedPropertyType.Boolean, (property, b) => property.boolValue = b },
|
| 91 |
+
{ SerializedPropertyType.Float, (property, b) => property.floatValue = b ? 1f : 0f },
|
| 92 |
+
{ SerializedPropertyType.Integer, (property, b) => property.intValue = b ? 1 : 0 }
|
| 93 |
+
};
|
| 94 |
+
|
| 95 |
+
void DoUtilityMenu(SerializedProperty property)
|
| 96 |
+
{
|
| 97 |
+
var rows = property.type[property.type.Length - 3] - '0';
|
| 98 |
+
var cols = property.type[property.type.Length - 1] - '0';
|
| 99 |
+
var elementType = property.FindPropertyRelative("c0.x").propertyType;
|
| 100 |
+
var setValue = k_UtilityValueSetters[elementType];
|
| 101 |
+
var menu = new GenericMenu();
|
| 102 |
+
property = property.Copy();
|
| 103 |
+
menu.AddItem(
|
| 104 |
+
EditorGUIUtility.TrTextContent("Set to Zero"),
|
| 105 |
+
false,
|
| 106 |
+
() =>
|
| 107 |
+
{
|
| 108 |
+
property.serializedObject.Update();;
|
| 109 |
+
for (var row = 0; row < rows; ++row)
|
| 110 |
+
for (var col = 0; col < cols; ++col)
|
| 111 |
+
setValue(
|
| 112 |
+
property.FindPropertyRelative($"{k_ColPropertyPaths[col]}.{k_RowPropertyPaths[row]}"),
|
| 113 |
+
false
|
| 114 |
+
);
|
| 115 |
+
property.serializedObject.ApplyModifiedProperties();
|
| 116 |
+
}
|
| 117 |
+
);
|
| 118 |
+
if (rows == cols)
|
| 119 |
+
{
|
| 120 |
+
menu.AddItem(
|
| 121 |
+
EditorGUIUtility.TrTextContent("Reset to Identity"),
|
| 122 |
+
false,
|
| 123 |
+
() =>
|
| 124 |
+
{
|
| 125 |
+
property.serializedObject.Update();
|
| 126 |
+
for (var row = 0; row < rows; ++row)
|
| 127 |
+
for (var col = 0; col < cols; ++col)
|
| 128 |
+
setValue(
|
| 129 |
+
property.FindPropertyRelative($"{k_ColPropertyPaths[col]}.{k_RowPropertyPaths[row]}"),
|
| 130 |
+
row == col
|
| 131 |
+
);
|
| 132 |
+
property.serializedObject.ApplyModifiedProperties();
|
| 133 |
+
}
|
| 134 |
+
);
|
| 135 |
+
}
|
| 136 |
+
menu.ShowAsContext();
|
| 137 |
+
}
|
| 138 |
+
}
|
| 139 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics.Editor/MatrixDrawer.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 407410bec194a4cfe929933685bb80a7
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics.Editor/PostNormalizedVectorDrawer.cs
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using System;
|
| 2 |
+
using System.Collections.Generic;
|
| 3 |
+
using System.Linq;
|
| 4 |
+
using UnityEditor;
|
| 5 |
+
using UnityEngine;
|
| 6 |
+
using UnityObject = UnityEngine.Object;
|
| 7 |
+
|
| 8 |
+
namespace Unity.Mathematics.Editor
|
| 9 |
+
{
|
| 10 |
+
[CustomPropertyDrawer(typeof(PostNormalizeAttribute))]
|
| 11 |
+
class PostNormalizedVectorDrawer : PrimitiveVectorDrawer
|
| 12 |
+
{
|
| 13 |
+
static class Content
|
| 14 |
+
{
|
| 15 |
+
public static readonly string tooltip =
|
| 16 |
+
L10n.Tr("Values you enter will be post-normalized. You will see the normalized result if you change selection and view the values again.");
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
class VectorPropertyGUIData
|
| 20 |
+
{
|
| 21 |
+
const int k_MaxElements = 4;
|
| 22 |
+
|
| 23 |
+
public readonly bool Valid;
|
| 24 |
+
|
| 25 |
+
// parent property
|
| 26 |
+
readonly SerializedProperty m_VectorProperty;
|
| 27 |
+
// relative paths of element child properties
|
| 28 |
+
readonly IReadOnlyList<string> m_ElementPaths;
|
| 29 |
+
// the number of element child properties
|
| 30 |
+
readonly int m_NumElements;
|
| 31 |
+
// per child property; value is null if there are multiple different values
|
| 32 |
+
readonly double?[] m_PreNormalizedValues;
|
| 33 |
+
// per target; used to revert actual values for each object after displaying pre-normalized values
|
| 34 |
+
readonly Dictionary<SerializedProperty, double4> m_PostNormalizedValues = new Dictionary<SerializedProperty, double4>();
|
| 35 |
+
|
| 36 |
+
public VectorPropertyGUIData(SerializedProperty property)
|
| 37 |
+
{
|
| 38 |
+
m_VectorProperty = property;
|
| 39 |
+
var parentPath = m_VectorProperty.propertyPath;
|
| 40 |
+
var i = 0;
|
| 41 |
+
var elementPaths = new List<string>(k_MaxElements);
|
| 42 |
+
var iterator = m_VectorProperty.Copy();
|
| 43 |
+
while (iterator.Next(true) && iterator.propertyPath.StartsWith(parentPath))
|
| 44 |
+
{
|
| 45 |
+
if (i >= k_MaxElements || iterator.propertyType != SerializedPropertyType.Float)
|
| 46 |
+
return;
|
| 47 |
+
elementPaths.Add(iterator.propertyPath.Substring(parentPath.Length + 1));
|
| 48 |
+
i++;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
Valid = true;
|
| 52 |
+
m_NumElements = elementPaths.Count;
|
| 53 |
+
m_ElementPaths = elementPaths;
|
| 54 |
+
m_PreNormalizedValues = elementPaths.Select(p => (double?)null).ToArray();
|
| 55 |
+
|
| 56 |
+
UpdatePreNormalizedValues();
|
| 57 |
+
UpdatePostNormalizedValues();
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
void UpdatePostNormalizedValues()
|
| 61 |
+
{
|
| 62 |
+
m_PostNormalizedValues.Clear();
|
| 63 |
+
foreach (var target in m_VectorProperty.serializedObject.targetObjects)
|
| 64 |
+
{
|
| 65 |
+
var postNormalizedValue = new double4();
|
| 66 |
+
var parentProperty = new SerializedObject(target).FindProperty(m_VectorProperty.propertyPath);
|
| 67 |
+
for (var i = 0; i < m_NumElements; ++i)
|
| 68 |
+
postNormalizedValue[i] = parentProperty.FindPropertyRelative(m_ElementPaths[i]).doubleValue;
|
| 69 |
+
m_PostNormalizedValues[parentProperty] = postNormalizedValue;
|
| 70 |
+
}
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
public void UpdatePreNormalizedValues()
|
| 74 |
+
{
|
| 75 |
+
for (var i = 0; i < m_NumElements; ++i)
|
| 76 |
+
{
|
| 77 |
+
var p = m_VectorProperty.FindPropertyRelative(m_ElementPaths[i]);
|
| 78 |
+
m_PreNormalizedValues[i] = p.hasMultipleDifferentValues ? (double?)null : p.doubleValue;
|
| 79 |
+
}
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
public void ApplyPreNormalizedValues()
|
| 83 |
+
{
|
| 84 |
+
m_VectorProperty.serializedObject.ApplyModifiedProperties();
|
| 85 |
+
for (var i = 0; i < m_NumElements; ++i)
|
| 86 |
+
{
|
| 87 |
+
if (m_PreNormalizedValues[i] != null)
|
| 88 |
+
m_VectorProperty.FindPropertyRelative(m_ElementPaths[i]).doubleValue = m_PreNormalizedValues[i].Value;
|
| 89 |
+
}
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
public void UnapplyPreNormalizedValues()
|
| 93 |
+
{
|
| 94 |
+
foreach (var target in m_PostNormalizedValues)
|
| 95 |
+
{
|
| 96 |
+
target.Key.serializedObject.Update();
|
| 97 |
+
for (var i = 0; i < m_NumElements; ++i)
|
| 98 |
+
{
|
| 99 |
+
target.Key.FindPropertyRelative(m_ElementPaths[i]).doubleValue = target.Value[i];
|
| 100 |
+
target.Key.serializedObject.ApplyModifiedProperties();
|
| 101 |
+
}
|
| 102 |
+
}
|
| 103 |
+
m_VectorProperty.serializedObject.Update();
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
public void PostNormalize(Func<double4, double4> normalize)
|
| 107 |
+
{
|
| 108 |
+
m_VectorProperty.serializedObject.ApplyModifiedProperties();
|
| 109 |
+
foreach (var target in m_PostNormalizedValues)
|
| 110 |
+
{
|
| 111 |
+
target.Key.serializedObject.Update();
|
| 112 |
+
var postNormalizedValue = new double4();
|
| 113 |
+
for (var i = 0; i < m_NumElements; ++i)
|
| 114 |
+
postNormalizedValue[i] = target.Key.FindPropertyRelative(m_ElementPaths[i]).doubleValue;
|
| 115 |
+
postNormalizedValue = normalize(normalize(postNormalizedValue));
|
| 116 |
+
for (var i = 0; i < m_NumElements; ++i)
|
| 117 |
+
target.Key.FindPropertyRelative(m_ElementPaths[i]).doubleValue = postNormalizedValue[i];
|
| 118 |
+
target.Key.serializedObject.ApplyModifiedProperties();
|
| 119 |
+
}
|
| 120 |
+
UpdatePostNormalizedValues();
|
| 121 |
+
m_VectorProperty.serializedObject.Update();
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
public void RebuildIfDirty()
|
| 125 |
+
{
|
| 126 |
+
foreach (var target in m_PostNormalizedValues)
|
| 127 |
+
{
|
| 128 |
+
target.Key.serializedObject.Update();
|
| 129 |
+
for (var i = 0; i < m_NumElements; ++i)
|
| 130 |
+
{
|
| 131 |
+
var serialized = target.Key.FindPropertyRelative(m_ElementPaths[i]).doubleValue;
|
| 132 |
+
if (target.Value[i] != serialized)
|
| 133 |
+
{
|
| 134 |
+
UpdatePreNormalizedValues();
|
| 135 |
+
UpdatePostNormalizedValues();
|
| 136 |
+
return;
|
| 137 |
+
}
|
| 138 |
+
}
|
| 139 |
+
}
|
| 140 |
+
}
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
Dictionary<string, VectorPropertyGUIData> m_GUIDataPerPropertyPath = new Dictionary<string, VectorPropertyGUIData>();
|
| 144 |
+
|
| 145 |
+
protected virtual SerializedProperty GetVectorProperty(SerializedProperty property)
|
| 146 |
+
{
|
| 147 |
+
return property;
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
protected virtual double4 Normalize(double4 value)
|
| 151 |
+
{
|
| 152 |
+
return math.normalizesafe(value);
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
VectorPropertyGUIData GetGUIData(SerializedProperty property)
|
| 156 |
+
{
|
| 157 |
+
VectorPropertyGUIData guiData;
|
| 158 |
+
if (!m_GUIDataPerPropertyPath.TryGetValue(property.propertyPath, out guiData))
|
| 159 |
+
{
|
| 160 |
+
guiData = new VectorPropertyGUIData(GetVectorProperty(property));
|
| 161 |
+
m_GUIDataPerPropertyPath[property.propertyPath] = guiData;
|
| 162 |
+
}
|
| 163 |
+
return guiData;
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
|
| 167 |
+
{
|
| 168 |
+
return GetGUIData(property).Valid ? base.GetPropertyHeight(property, label) : EditorGUIUtility.singleLineHeight;
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
|
| 172 |
+
{
|
| 173 |
+
var guiData = GetGUIData(property);
|
| 174 |
+
if (!guiData.Valid)
|
| 175 |
+
{
|
| 176 |
+
EditorGUI.HelpBox(
|
| 177 |
+
EditorGUI.PrefixLabel(position, label),
|
| 178 |
+
L10n.Tr($"{typeof(PostNormalizeAttribute).Name} only works with decimal vector types."),
|
| 179 |
+
MessageType.None
|
| 180 |
+
);
|
| 181 |
+
return;
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
if (string.IsNullOrEmpty(label.tooltip))
|
| 185 |
+
label.tooltip = Content.tooltip;
|
| 186 |
+
|
| 187 |
+
guiData.RebuildIfDirty();
|
| 188 |
+
guiData.ApplyPreNormalizedValues();
|
| 189 |
+
EditorGUI.BeginChangeCheck();
|
| 190 |
+
base.OnGUI(position, property, label);
|
| 191 |
+
if (EditorGUI.EndChangeCheck())
|
| 192 |
+
{
|
| 193 |
+
guiData.UpdatePreNormalizedValues();
|
| 194 |
+
guiData.PostNormalize(Normalize);
|
| 195 |
+
}
|
| 196 |
+
else
|
| 197 |
+
{
|
| 198 |
+
guiData.UnapplyPreNormalizedValues();
|
| 199 |
+
}
|
| 200 |
+
}
|
| 201 |
+
}
|
| 202 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/Unity.Mathematics.asmdef
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "Unity.Mathematics",
|
| 3 |
+
"allowUnsafeCode": true
|
| 4 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/Unity.Mathematics.asmdef.meta
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: d8b63aba1907145bea998dd612889d6b
|
| 3 |
+
AssemblyDefinitionImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
userData:
|
| 6 |
+
assetBundleName:
|
| 7 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint3.gen.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 3f9d441c51e38d9488cbdd2f013adcd3
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint3x2.gen.cs
ADDED
|
@@ -0,0 +1,494 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//------------------------------------------------------------------------------
|
| 2 |
+
// <auto-generated>
|
| 3 |
+
// This code was generated by a tool.
|
| 4 |
+
//
|
| 5 |
+
// Changes to this file may cause incorrect behavior and will be lost if
|
| 6 |
+
// the code is regenerated.
|
| 7 |
+
// </auto-generated>
|
| 8 |
+
//------------------------------------------------------------------------------
|
| 9 |
+
using System;
|
| 10 |
+
using System.Runtime.CompilerServices;
|
| 11 |
+
|
| 12 |
+
#pragma warning disable 0660, 0661
|
| 13 |
+
|
| 14 |
+
namespace Unity.Mathematics
|
| 15 |
+
{
|
| 16 |
+
[System.Serializable]
|
| 17 |
+
public partial struct uint3x2 : System.IEquatable<uint3x2>, IFormattable
|
| 18 |
+
{
|
| 19 |
+
public uint3 c0;
|
| 20 |
+
public uint3 c1;
|
| 21 |
+
|
| 22 |
+
/// <summary>uint3x2 zero value.</summary>
|
| 23 |
+
public static readonly uint3x2 zero;
|
| 24 |
+
|
| 25 |
+
/// <summary>Constructs a uint3x2 matrix from two uint3 vectors.</summary>
|
| 26 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 27 |
+
public uint3x2(uint3 c0, uint3 c1)
|
| 28 |
+
{
|
| 29 |
+
this.c0 = c0;
|
| 30 |
+
this.c1 = c1;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
/// <summary>Constructs a uint3x2 matrix from 6 uint values given in row-major order.</summary>
|
| 34 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 35 |
+
public uint3x2(uint m00, uint m01,
|
| 36 |
+
uint m10, uint m11,
|
| 37 |
+
uint m20, uint m21)
|
| 38 |
+
{
|
| 39 |
+
this.c0 = new uint3(m00, m10, m20);
|
| 40 |
+
this.c1 = new uint3(m01, m11, m21);
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
/// <summary>Constructs a uint3x2 matrix from a single uint value by assigning it to every component.</summary>
|
| 44 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 45 |
+
public uint3x2(uint v)
|
| 46 |
+
{
|
| 47 |
+
this.c0 = v;
|
| 48 |
+
this.c1 = v;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
/// <summary>Constructs a uint3x2 matrix from a single bool value by converting it to uint and assigning it to every component.</summary>
|
| 52 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 53 |
+
public uint3x2(bool v)
|
| 54 |
+
{
|
| 55 |
+
this.c0 = math.select(new uint3(0u), new uint3(1u), v);
|
| 56 |
+
this.c1 = math.select(new uint3(0u), new uint3(1u), v);
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
/// <summary>Constructs a uint3x2 matrix from a bool3x2 matrix by componentwise conversion.</summary>
|
| 60 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 61 |
+
public uint3x2(bool3x2 v)
|
| 62 |
+
{
|
| 63 |
+
this.c0 = math.select(new uint3(0u), new uint3(1u), v.c0);
|
| 64 |
+
this.c1 = math.select(new uint3(0u), new uint3(1u), v.c1);
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
/// <summary>Constructs a uint3x2 matrix from a single int value by converting it to uint and assigning it to every component.</summary>
|
| 68 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 69 |
+
public uint3x2(int v)
|
| 70 |
+
{
|
| 71 |
+
this.c0 = (uint3)v;
|
| 72 |
+
this.c1 = (uint3)v;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
/// <summary>Constructs a uint3x2 matrix from a int3x2 matrix by componentwise conversion.</summary>
|
| 76 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 77 |
+
public uint3x2(int3x2 v)
|
| 78 |
+
{
|
| 79 |
+
this.c0 = (uint3)v.c0;
|
| 80 |
+
this.c1 = (uint3)v.c1;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
/// <summary>Constructs a uint3x2 matrix from a single float value by converting it to uint and assigning it to every component.</summary>
|
| 84 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 85 |
+
public uint3x2(float v)
|
| 86 |
+
{
|
| 87 |
+
this.c0 = (uint3)v;
|
| 88 |
+
this.c1 = (uint3)v;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
/// <summary>Constructs a uint3x2 matrix from a float3x2 matrix by componentwise conversion.</summary>
|
| 92 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 93 |
+
public uint3x2(float3x2 v)
|
| 94 |
+
{
|
| 95 |
+
this.c0 = (uint3)v.c0;
|
| 96 |
+
this.c1 = (uint3)v.c1;
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
/// <summary>Constructs a uint3x2 matrix from a single double value by converting it to uint and assigning it to every component.</summary>
|
| 100 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 101 |
+
public uint3x2(double v)
|
| 102 |
+
{
|
| 103 |
+
this.c0 = (uint3)v;
|
| 104 |
+
this.c1 = (uint3)v;
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
/// <summary>Constructs a uint3x2 matrix from a double3x2 matrix by componentwise conversion.</summary>
|
| 108 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 109 |
+
public uint3x2(double3x2 v)
|
| 110 |
+
{
|
| 111 |
+
this.c0 = (uint3)v.c0;
|
| 112 |
+
this.c1 = (uint3)v.c1;
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
/// <summary>Implicitly converts a single uint value to a uint3x2 matrix by assigning it to every component.</summary>
|
| 117 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 118 |
+
public static implicit operator uint3x2(uint v) { return new uint3x2(v); }
|
| 119 |
+
|
| 120 |
+
/// <summary>Explicitly converts a single bool value to a uint3x2 matrix by converting it to uint and assigning it to every component.</summary>
|
| 121 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 122 |
+
public static explicit operator uint3x2(bool v) { return new uint3x2(v); }
|
| 123 |
+
|
| 124 |
+
/// <summary>Explicitly converts a bool3x2 matrix to a uint3x2 matrix by componentwise conversion.</summary>
|
| 125 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 126 |
+
public static explicit operator uint3x2(bool3x2 v) { return new uint3x2(v); }
|
| 127 |
+
|
| 128 |
+
/// <summary>Explicitly converts a single int value to a uint3x2 matrix by converting it to uint and assigning it to every component.</summary>
|
| 129 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 130 |
+
public static explicit operator uint3x2(int v) { return new uint3x2(v); }
|
| 131 |
+
|
| 132 |
+
/// <summary>Explicitly converts a int3x2 matrix to a uint3x2 matrix by componentwise conversion.</summary>
|
| 133 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 134 |
+
public static explicit operator uint3x2(int3x2 v) { return new uint3x2(v); }
|
| 135 |
+
|
| 136 |
+
/// <summary>Explicitly converts a single float value to a uint3x2 matrix by converting it to uint and assigning it to every component.</summary>
|
| 137 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 138 |
+
public static explicit operator uint3x2(float v) { return new uint3x2(v); }
|
| 139 |
+
|
| 140 |
+
/// <summary>Explicitly converts a float3x2 matrix to a uint3x2 matrix by componentwise conversion.</summary>
|
| 141 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 142 |
+
public static explicit operator uint3x2(float3x2 v) { return new uint3x2(v); }
|
| 143 |
+
|
| 144 |
+
/// <summary>Explicitly converts a single double value to a uint3x2 matrix by converting it to uint and assigning it to every component.</summary>
|
| 145 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 146 |
+
public static explicit operator uint3x2(double v) { return new uint3x2(v); }
|
| 147 |
+
|
| 148 |
+
/// <summary>Explicitly converts a double3x2 matrix to a uint3x2 matrix by componentwise conversion.</summary>
|
| 149 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 150 |
+
public static explicit operator uint3x2(double3x2 v) { return new uint3x2(v); }
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
/// <summary>Returns the result of a componentwise multiplication operation on two uint3x2 matrices.</summary>
|
| 154 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 155 |
+
public static uint3x2 operator * (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); }
|
| 156 |
+
|
| 157 |
+
/// <summary>Returns the result of a componentwise multiplication operation on a uint3x2 matrix and a uint value.</summary>
|
| 158 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 159 |
+
public static uint3x2 operator * (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 * rhs, lhs.c1 * rhs); }
|
| 160 |
+
|
| 161 |
+
/// <summary>Returns the result of a componentwise multiplication operation on a uint value and a uint3x2 matrix.</summary>
|
| 162 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 163 |
+
public static uint3x2 operator * (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs * rhs.c0, lhs * rhs.c1); }
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
/// <summary>Returns the result of a componentwise addition operation on two uint3x2 matrices.</summary>
|
| 167 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 168 |
+
public static uint3x2 operator + (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); }
|
| 169 |
+
|
| 170 |
+
/// <summary>Returns the result of a componentwise addition operation on a uint3x2 matrix and a uint value.</summary>
|
| 171 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 172 |
+
public static uint3x2 operator + (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 + rhs, lhs.c1 + rhs); }
|
| 173 |
+
|
| 174 |
+
/// <summary>Returns the result of a componentwise addition operation on a uint value and a uint3x2 matrix.</summary>
|
| 175 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 176 |
+
public static uint3x2 operator + (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs + rhs.c0, lhs + rhs.c1); }
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
/// <summary>Returns the result of a componentwise subtraction operation on two uint3x2 matrices.</summary>
|
| 180 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 181 |
+
public static uint3x2 operator - (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); }
|
| 182 |
+
|
| 183 |
+
/// <summary>Returns the result of a componentwise subtraction operation on a uint3x2 matrix and a uint value.</summary>
|
| 184 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 185 |
+
public static uint3x2 operator - (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 - rhs, lhs.c1 - rhs); }
|
| 186 |
+
|
| 187 |
+
/// <summary>Returns the result of a componentwise subtraction operation on a uint value and a uint3x2 matrix.</summary>
|
| 188 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 189 |
+
public static uint3x2 operator - (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs - rhs.c0, lhs - rhs.c1); }
|
| 190 |
+
|
| 191 |
+
|
| 192 |
+
/// <summary>Returns the result of a componentwise division operation on two uint3x2 matrices.</summary>
|
| 193 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 194 |
+
public static uint3x2 operator / (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); }
|
| 195 |
+
|
| 196 |
+
/// <summary>Returns the result of a componentwise division operation on a uint3x2 matrix and a uint value.</summary>
|
| 197 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 198 |
+
public static uint3x2 operator / (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 / rhs, lhs.c1 / rhs); }
|
| 199 |
+
|
| 200 |
+
/// <summary>Returns the result of a componentwise division operation on a uint value and a uint3x2 matrix.</summary>
|
| 201 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 202 |
+
public static uint3x2 operator / (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs / rhs.c0, lhs / rhs.c1); }
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
/// <summary>Returns the result of a componentwise modulus operation on two uint3x2 matrices.</summary>
|
| 206 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 207 |
+
public static uint3x2 operator % (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); }
|
| 208 |
+
|
| 209 |
+
/// <summary>Returns the result of a componentwise modulus operation on a uint3x2 matrix and a uint value.</summary>
|
| 210 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 211 |
+
public static uint3x2 operator % (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 % rhs, lhs.c1 % rhs); }
|
| 212 |
+
|
| 213 |
+
/// <summary>Returns the result of a componentwise modulus operation on a uint value and a uint3x2 matrix.</summary>
|
| 214 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 215 |
+
public static uint3x2 operator % (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs % rhs.c0, lhs % rhs.c1); }
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
/// <summary>Returns the result of a componentwise increment operation on a uint3x2 matrix.</summary>
|
| 219 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 220 |
+
public static uint3x2 operator ++ (uint3x2 val) { return new uint3x2 (++val.c0, ++val.c1); }
|
| 221 |
+
|
| 222 |
+
|
| 223 |
+
/// <summary>Returns the result of a componentwise decrement operation on a uint3x2 matrix.</summary>
|
| 224 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 225 |
+
public static uint3x2 operator -- (uint3x2 val) { return new uint3x2 (--val.c0, --val.c1); }
|
| 226 |
+
|
| 227 |
+
|
| 228 |
+
/// <summary>Returns the result of a componentwise less than operation on two uint3x2 matrices.</summary>
|
| 229 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 230 |
+
public static bool3x2 operator < (uint3x2 lhs, uint3x2 rhs) { return new bool3x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); }
|
| 231 |
+
|
| 232 |
+
/// <summary>Returns the result of a componentwise less than operation on a uint3x2 matrix and a uint value.</summary>
|
| 233 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 234 |
+
public static bool3x2 operator < (uint3x2 lhs, uint rhs) { return new bool3x2 (lhs.c0 < rhs, lhs.c1 < rhs); }
|
| 235 |
+
|
| 236 |
+
/// <summary>Returns the result of a componentwise less than operation on a uint value and a uint3x2 matrix.</summary>
|
| 237 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 238 |
+
public static bool3x2 operator < (uint lhs, uint3x2 rhs) { return new bool3x2 (lhs < rhs.c0, lhs < rhs.c1); }
|
| 239 |
+
|
| 240 |
+
|
| 241 |
+
/// <summary>Returns the result of a componentwise less or equal operation on two uint3x2 matrices.</summary>
|
| 242 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 243 |
+
public static bool3x2 operator <= (uint3x2 lhs, uint3x2 rhs) { return new bool3x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); }
|
| 244 |
+
|
| 245 |
+
/// <summary>Returns the result of a componentwise less or equal operation on a uint3x2 matrix and a uint value.</summary>
|
| 246 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 247 |
+
public static bool3x2 operator <= (uint3x2 lhs, uint rhs) { return new bool3x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); }
|
| 248 |
+
|
| 249 |
+
/// <summary>Returns the result of a componentwise less or equal operation on a uint value and a uint3x2 matrix.</summary>
|
| 250 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 251 |
+
public static bool3x2 operator <= (uint lhs, uint3x2 rhs) { return new bool3x2 (lhs <= rhs.c0, lhs <= rhs.c1); }
|
| 252 |
+
|
| 253 |
+
|
| 254 |
+
/// <summary>Returns the result of a componentwise greater than operation on two uint3x2 matrices.</summary>
|
| 255 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 256 |
+
public static bool3x2 operator > (uint3x2 lhs, uint3x2 rhs) { return new bool3x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); }
|
| 257 |
+
|
| 258 |
+
/// <summary>Returns the result of a componentwise greater than operation on a uint3x2 matrix and a uint value.</summary>
|
| 259 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 260 |
+
public static bool3x2 operator > (uint3x2 lhs, uint rhs) { return new bool3x2 (lhs.c0 > rhs, lhs.c1 > rhs); }
|
| 261 |
+
|
| 262 |
+
/// <summary>Returns the result of a componentwise greater than operation on a uint value and a uint3x2 matrix.</summary>
|
| 263 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 264 |
+
public static bool3x2 operator > (uint lhs, uint3x2 rhs) { return new bool3x2 (lhs > rhs.c0, lhs > rhs.c1); }
|
| 265 |
+
|
| 266 |
+
|
| 267 |
+
/// <summary>Returns the result of a componentwise greater or equal operation on two uint3x2 matrices.</summary>
|
| 268 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 269 |
+
public static bool3x2 operator >= (uint3x2 lhs, uint3x2 rhs) { return new bool3x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); }
|
| 270 |
+
|
| 271 |
+
/// <summary>Returns the result of a componentwise greater or equal operation on a uint3x2 matrix and a uint value.</summary>
|
| 272 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 273 |
+
public static bool3x2 operator >= (uint3x2 lhs, uint rhs) { return new bool3x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); }
|
| 274 |
+
|
| 275 |
+
/// <summary>Returns the result of a componentwise greater or equal operation on a uint value and a uint3x2 matrix.</summary>
|
| 276 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 277 |
+
public static bool3x2 operator >= (uint lhs, uint3x2 rhs) { return new bool3x2 (lhs >= rhs.c0, lhs >= rhs.c1); }
|
| 278 |
+
|
| 279 |
+
|
| 280 |
+
/// <summary>Returns the result of a componentwise unary minus operation on a uint3x2 matrix.</summary>
|
| 281 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 282 |
+
public static uint3x2 operator - (uint3x2 val) { return new uint3x2 (-val.c0, -val.c1); }
|
| 283 |
+
|
| 284 |
+
|
| 285 |
+
/// <summary>Returns the result of a componentwise unary plus operation on a uint3x2 matrix.</summary>
|
| 286 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 287 |
+
public static uint3x2 operator + (uint3x2 val) { return new uint3x2 (+val.c0, +val.c1); }
|
| 288 |
+
|
| 289 |
+
|
| 290 |
+
/// <summary>Returns the result of a componentwise left shift operation on a uint3x2 matrix by a number of bits specified by a single int.</summary>
|
| 291 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 292 |
+
public static uint3x2 operator << (uint3x2 x, int n) { return new uint3x2 (x.c0 << n, x.c1 << n); }
|
| 293 |
+
|
| 294 |
+
/// <summary>Returns the result of a componentwise right shift operation on a uint3x2 matrix by a number of bits specified by a single int.</summary>
|
| 295 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 296 |
+
public static uint3x2 operator >> (uint3x2 x, int n) { return new uint3x2 (x.c0 >> n, x.c1 >> n); }
|
| 297 |
+
|
| 298 |
+
/// <summary>Returns the result of a componentwise equality operation on two uint3x2 matrices.</summary>
|
| 299 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 300 |
+
public static bool3x2 operator == (uint3x2 lhs, uint3x2 rhs) { return new bool3x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); }
|
| 301 |
+
|
| 302 |
+
/// <summary>Returns the result of a componentwise equality operation on a uint3x2 matrix and a uint value.</summary>
|
| 303 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 304 |
+
public static bool3x2 operator == (uint3x2 lhs, uint rhs) { return new bool3x2 (lhs.c0 == rhs, lhs.c1 == rhs); }
|
| 305 |
+
|
| 306 |
+
/// <summary>Returns the result of a componentwise equality operation on a uint value and a uint3x2 matrix.</summary>
|
| 307 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 308 |
+
public static bool3x2 operator == (uint lhs, uint3x2 rhs) { return new bool3x2 (lhs == rhs.c0, lhs == rhs.c1); }
|
| 309 |
+
|
| 310 |
+
|
| 311 |
+
/// <summary>Returns the result of a componentwise not equal operation on two uint3x2 matrices.</summary>
|
| 312 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 313 |
+
public static bool3x2 operator != (uint3x2 lhs, uint3x2 rhs) { return new bool3x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); }
|
| 314 |
+
|
| 315 |
+
/// <summary>Returns the result of a componentwise not equal operation on a uint3x2 matrix and a uint value.</summary>
|
| 316 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 317 |
+
public static bool3x2 operator != (uint3x2 lhs, uint rhs) { return new bool3x2 (lhs.c0 != rhs, lhs.c1 != rhs); }
|
| 318 |
+
|
| 319 |
+
/// <summary>Returns the result of a componentwise not equal operation on a uint value and a uint3x2 matrix.</summary>
|
| 320 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 321 |
+
public static bool3x2 operator != (uint lhs, uint3x2 rhs) { return new bool3x2 (lhs != rhs.c0, lhs != rhs.c1); }
|
| 322 |
+
|
| 323 |
+
|
| 324 |
+
/// <summary>Returns the result of a componentwise bitwise not operation on a uint3x2 matrix.</summary>
|
| 325 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 326 |
+
public static uint3x2 operator ~ (uint3x2 val) { return new uint3x2 (~val.c0, ~val.c1); }
|
| 327 |
+
|
| 328 |
+
|
| 329 |
+
/// <summary>Returns the result of a componentwise bitwise and operation on two uint3x2 matrices.</summary>
|
| 330 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 331 |
+
public static uint3x2 operator & (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); }
|
| 332 |
+
|
| 333 |
+
/// <summary>Returns the result of a componentwise bitwise and operation on a uint3x2 matrix and a uint value.</summary>
|
| 334 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 335 |
+
public static uint3x2 operator & (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 & rhs, lhs.c1 & rhs); }
|
| 336 |
+
|
| 337 |
+
/// <summary>Returns the result of a componentwise bitwise and operation on a uint value and a uint3x2 matrix.</summary>
|
| 338 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 339 |
+
public static uint3x2 operator & (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs & rhs.c0, lhs & rhs.c1); }
|
| 340 |
+
|
| 341 |
+
|
| 342 |
+
/// <summary>Returns the result of a componentwise bitwise or operation on two uint3x2 matrices.</summary>
|
| 343 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 344 |
+
public static uint3x2 operator | (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); }
|
| 345 |
+
|
| 346 |
+
/// <summary>Returns the result of a componentwise bitwise or operation on a uint3x2 matrix and a uint value.</summary>
|
| 347 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 348 |
+
public static uint3x2 operator | (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 | rhs, lhs.c1 | rhs); }
|
| 349 |
+
|
| 350 |
+
/// <summary>Returns the result of a componentwise bitwise or operation on a uint value and a uint3x2 matrix.</summary>
|
| 351 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 352 |
+
public static uint3x2 operator | (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs | rhs.c0, lhs | rhs.c1); }
|
| 353 |
+
|
| 354 |
+
|
| 355 |
+
/// <summary>Returns the result of a componentwise bitwise exclusive or operation on two uint3x2 matrices.</summary>
|
| 356 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 357 |
+
public static uint3x2 operator ^ (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); }
|
| 358 |
+
|
| 359 |
+
/// <summary>Returns the result of a componentwise bitwise exclusive or operation on a uint3x2 matrix and a uint value.</summary>
|
| 360 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 361 |
+
public static uint3x2 operator ^ (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); }
|
| 362 |
+
|
| 363 |
+
/// <summary>Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint3x2 matrix.</summary>
|
| 364 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 365 |
+
public static uint3x2 operator ^ (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); }
|
| 366 |
+
|
| 367 |
+
|
| 368 |
+
|
| 369 |
+
/// <summary>Returns the uint3 element at a specified index.</summary>
|
| 370 |
+
unsafe public ref uint3 this[int index]
|
| 371 |
+
{
|
| 372 |
+
get
|
| 373 |
+
{
|
| 374 |
+
#if ENABLE_UNITY_COLLECTIONS_CHECKS
|
| 375 |
+
if ((uint)index >= 2)
|
| 376 |
+
throw new System.ArgumentException("index must be between[0...1]");
|
| 377 |
+
#endif
|
| 378 |
+
fixed (uint3x2* array = &this) { return ref ((uint3*)array)[index]; }
|
| 379 |
+
}
|
| 380 |
+
}
|
| 381 |
+
|
| 382 |
+
/// <summary>Returns true if the uint3x2 is equal to a given uint3x2, false otherwise.</summary>
|
| 383 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 384 |
+
public bool Equals(uint3x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); }
|
| 385 |
+
|
| 386 |
+
/// <summary>Returns true if the uint3x2 is equal to a given uint3x2, false otherwise.</summary>
|
| 387 |
+
public override bool Equals(object o) { return Equals((uint3x2)o); }
|
| 388 |
+
|
| 389 |
+
|
| 390 |
+
/// <summary>Returns a hash code for the uint3x2.</summary>
|
| 391 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 392 |
+
public override int GetHashCode() { return (int)math.hash(this); }
|
| 393 |
+
|
| 394 |
+
|
| 395 |
+
/// <summary>Returns a string representation of the uint3x2.</summary>
|
| 396 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 397 |
+
public override string ToString()
|
| 398 |
+
{
|
| 399 |
+
return string.Format("uint3x2({0}, {1}, {2}, {3}, {4}, {5})", c0.x, c1.x, c0.y, c1.y, c0.z, c1.z);
|
| 400 |
+
}
|
| 401 |
+
|
| 402 |
+
/// <summary>Returns a string representation of the uint3x2 using a specified format and culture-specific format information.</summary>
|
| 403 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 404 |
+
public string ToString(string format, IFormatProvider formatProvider)
|
| 405 |
+
{
|
| 406 |
+
return string.Format("uint3x2({0}, {1}, {2}, {3}, {4}, {5})", c0.x.ToString(format, formatProvider), c1.x.ToString(format, formatProvider), c0.y.ToString(format, formatProvider), c1.y.ToString(format, formatProvider), c0.z.ToString(format, formatProvider), c1.z.ToString(format, formatProvider));
|
| 407 |
+
}
|
| 408 |
+
|
| 409 |
+
}
|
| 410 |
+
|
| 411 |
+
public static partial class math
|
| 412 |
+
{
|
| 413 |
+
/// <summary>Returns a uint3x2 matrix constructed from two uint3 vectors.</summary>
|
| 414 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 415 |
+
public static uint3x2 uint3x2(uint3 c0, uint3 c1) { return new uint3x2(c0, c1); }
|
| 416 |
+
|
| 417 |
+
/// <summary>Returns a uint3x2 matrix constructed from from 6 uint values given in row-major order.</summary>
|
| 418 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 419 |
+
public static uint3x2 uint3x2(uint m00, uint m01,
|
| 420 |
+
uint m10, uint m11,
|
| 421 |
+
uint m20, uint m21)
|
| 422 |
+
{
|
| 423 |
+
return new uint3x2(m00, m01,
|
| 424 |
+
m10, m11,
|
| 425 |
+
m20, m21);
|
| 426 |
+
}
|
| 427 |
+
|
| 428 |
+
/// <summary>Returns a uint3x2 matrix constructed from a single uint value by assigning it to every component.</summary>
|
| 429 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 430 |
+
public static uint3x2 uint3x2(uint v) { return new uint3x2(v); }
|
| 431 |
+
|
| 432 |
+
/// <summary>Returns a uint3x2 matrix constructed from a single bool value by converting it to uint and assigning it to every component.</summary>
|
| 433 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 434 |
+
public static uint3x2 uint3x2(bool v) { return new uint3x2(v); }
|
| 435 |
+
|
| 436 |
+
/// <summary>Return a uint3x2 matrix constructed from a bool3x2 matrix by componentwise conversion.</summary>
|
| 437 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 438 |
+
public static uint3x2 uint3x2(bool3x2 v) { return new uint3x2(v); }
|
| 439 |
+
|
| 440 |
+
/// <summary>Returns a uint3x2 matrix constructed from a single int value by converting it to uint and assigning it to every component.</summary>
|
| 441 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 442 |
+
public static uint3x2 uint3x2(int v) { return new uint3x2(v); }
|
| 443 |
+
|
| 444 |
+
/// <summary>Return a uint3x2 matrix constructed from a int3x2 matrix by componentwise conversion.</summary>
|
| 445 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 446 |
+
public static uint3x2 uint3x2(int3x2 v) { return new uint3x2(v); }
|
| 447 |
+
|
| 448 |
+
/// <summary>Returns a uint3x2 matrix constructed from a single float value by converting it to uint and assigning it to every component.</summary>
|
| 449 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 450 |
+
public static uint3x2 uint3x2(float v) { return new uint3x2(v); }
|
| 451 |
+
|
| 452 |
+
/// <summary>Return a uint3x2 matrix constructed from a float3x2 matrix by componentwise conversion.</summary>
|
| 453 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 454 |
+
public static uint3x2 uint3x2(float3x2 v) { return new uint3x2(v); }
|
| 455 |
+
|
| 456 |
+
/// <summary>Returns a uint3x2 matrix constructed from a single double value by converting it to uint and assigning it to every component.</summary>
|
| 457 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 458 |
+
public static uint3x2 uint3x2(double v) { return new uint3x2(v); }
|
| 459 |
+
|
| 460 |
+
/// <summary>Return a uint3x2 matrix constructed from a double3x2 matrix by componentwise conversion.</summary>
|
| 461 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 462 |
+
public static uint3x2 uint3x2(double3x2 v) { return new uint3x2(v); }
|
| 463 |
+
|
| 464 |
+
/// <summary>Return the uint2x3 transpose of a uint3x2 matrix.</summary>
|
| 465 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 466 |
+
public static uint2x3 transpose(uint3x2 v)
|
| 467 |
+
{
|
| 468 |
+
return uint2x3(
|
| 469 |
+
v.c0.x, v.c0.y, v.c0.z,
|
| 470 |
+
v.c1.x, v.c1.y, v.c1.z);
|
| 471 |
+
}
|
| 472 |
+
|
| 473 |
+
/// <summary>Returns a uint hash code of a uint3x2 vector.</summary>
|
| 474 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 475 |
+
public static uint hash(uint3x2 v)
|
| 476 |
+
{
|
| 477 |
+
return csum(v.c0 * uint3(0x515D90F5u, 0xEC9F68F3u, 0xF9EA92D5u) +
|
| 478 |
+
v.c1 * uint3(0xC2FAFCB9u, 0x616E9CA1u, 0xC5C5394Bu)) + 0xCAE78587u;
|
| 479 |
+
}
|
| 480 |
+
|
| 481 |
+
/// <summary>
|
| 482 |
+
/// Returns a uint3 vector hash code of a uint3x2 vector.
|
| 483 |
+
/// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash
|
| 484 |
+
/// that are only reduced to a narrow uint hash at the very end instead of at every step.
|
| 485 |
+
/// </summary>
|
| 486 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 487 |
+
public static uint3 hashwide(uint3x2 v)
|
| 488 |
+
{
|
| 489 |
+
return (v.c0 * uint3(0x7A1541C9u, 0xF83BD927u, 0x6A243BCBu) +
|
| 490 |
+
v.c1 * uint3(0x509B84C9u, 0x91D13847u, 0x52F7230Fu)) + 0xCF286E83u;
|
| 491 |
+
}
|
| 492 |
+
|
| 493 |
+
}
|
| 494 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint3x2.gen.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 7b284ac5d8ece4e8cbadac0249c18c4c
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint3x3.gen.cs
ADDED
|
@@ -0,0 +1,512 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//------------------------------------------------------------------------------
|
| 2 |
+
// <auto-generated>
|
| 3 |
+
// This code was generated by a tool.
|
| 4 |
+
//
|
| 5 |
+
// Changes to this file may cause incorrect behavior and will be lost if
|
| 6 |
+
// the code is regenerated.
|
| 7 |
+
// </auto-generated>
|
| 8 |
+
//------------------------------------------------------------------------------
|
| 9 |
+
using System;
|
| 10 |
+
using System.Runtime.CompilerServices;
|
| 11 |
+
|
| 12 |
+
#pragma warning disable 0660, 0661
|
| 13 |
+
|
| 14 |
+
namespace Unity.Mathematics
|
| 15 |
+
{
|
| 16 |
+
[System.Serializable]
|
| 17 |
+
public partial struct uint3x3 : System.IEquatable<uint3x3>, IFormattable
|
| 18 |
+
{
|
| 19 |
+
public uint3 c0;
|
| 20 |
+
public uint3 c1;
|
| 21 |
+
public uint3 c2;
|
| 22 |
+
|
| 23 |
+
/// <summary>uint3x3 identity transform.</summary>
|
| 24 |
+
public static readonly uint3x3 identity = new uint3x3(1u, 0u, 0u, 0u, 1u, 0u, 0u, 0u, 1u);
|
| 25 |
+
|
| 26 |
+
/// <summary>uint3x3 zero value.</summary>
|
| 27 |
+
public static readonly uint3x3 zero;
|
| 28 |
+
|
| 29 |
+
/// <summary>Constructs a uint3x3 matrix from three uint3 vectors.</summary>
|
| 30 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 31 |
+
public uint3x3(uint3 c0, uint3 c1, uint3 c2)
|
| 32 |
+
{
|
| 33 |
+
this.c0 = c0;
|
| 34 |
+
this.c1 = c1;
|
| 35 |
+
this.c2 = c2;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
/// <summary>Constructs a uint3x3 matrix from 9 uint values given in row-major order.</summary>
|
| 39 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 40 |
+
public uint3x3(uint m00, uint m01, uint m02,
|
| 41 |
+
uint m10, uint m11, uint m12,
|
| 42 |
+
uint m20, uint m21, uint m22)
|
| 43 |
+
{
|
| 44 |
+
this.c0 = new uint3(m00, m10, m20);
|
| 45 |
+
this.c1 = new uint3(m01, m11, m21);
|
| 46 |
+
this.c2 = new uint3(m02, m12, m22);
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
/// <summary>Constructs a uint3x3 matrix from a single uint value by assigning it to every component.</summary>
|
| 50 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 51 |
+
public uint3x3(uint v)
|
| 52 |
+
{
|
| 53 |
+
this.c0 = v;
|
| 54 |
+
this.c1 = v;
|
| 55 |
+
this.c2 = v;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
/// <summary>Constructs a uint3x3 matrix from a single bool value by converting it to uint and assigning it to every component.</summary>
|
| 59 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 60 |
+
public uint3x3(bool v)
|
| 61 |
+
{
|
| 62 |
+
this.c0 = math.select(new uint3(0u), new uint3(1u), v);
|
| 63 |
+
this.c1 = math.select(new uint3(0u), new uint3(1u), v);
|
| 64 |
+
this.c2 = math.select(new uint3(0u), new uint3(1u), v);
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
/// <summary>Constructs a uint3x3 matrix from a bool3x3 matrix by componentwise conversion.</summary>
|
| 68 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 69 |
+
public uint3x3(bool3x3 v)
|
| 70 |
+
{
|
| 71 |
+
this.c0 = math.select(new uint3(0u), new uint3(1u), v.c0);
|
| 72 |
+
this.c1 = math.select(new uint3(0u), new uint3(1u), v.c1);
|
| 73 |
+
this.c2 = math.select(new uint3(0u), new uint3(1u), v.c2);
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
/// <summary>Constructs a uint3x3 matrix from a single int value by converting it to uint and assigning it to every component.</summary>
|
| 77 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 78 |
+
public uint3x3(int v)
|
| 79 |
+
{
|
| 80 |
+
this.c0 = (uint3)v;
|
| 81 |
+
this.c1 = (uint3)v;
|
| 82 |
+
this.c2 = (uint3)v;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
/// <summary>Constructs a uint3x3 matrix from a int3x3 matrix by componentwise conversion.</summary>
|
| 86 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 87 |
+
public uint3x3(int3x3 v)
|
| 88 |
+
{
|
| 89 |
+
this.c0 = (uint3)v.c0;
|
| 90 |
+
this.c1 = (uint3)v.c1;
|
| 91 |
+
this.c2 = (uint3)v.c2;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
/// <summary>Constructs a uint3x3 matrix from a single float value by converting it to uint and assigning it to every component.</summary>
|
| 95 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 96 |
+
public uint3x3(float v)
|
| 97 |
+
{
|
| 98 |
+
this.c0 = (uint3)v;
|
| 99 |
+
this.c1 = (uint3)v;
|
| 100 |
+
this.c2 = (uint3)v;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
/// <summary>Constructs a uint3x3 matrix from a float3x3 matrix by componentwise conversion.</summary>
|
| 104 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 105 |
+
public uint3x3(float3x3 v)
|
| 106 |
+
{
|
| 107 |
+
this.c0 = (uint3)v.c0;
|
| 108 |
+
this.c1 = (uint3)v.c1;
|
| 109 |
+
this.c2 = (uint3)v.c2;
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
/// <summary>Constructs a uint3x3 matrix from a single double value by converting it to uint and assigning it to every component.</summary>
|
| 113 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 114 |
+
public uint3x3(double v)
|
| 115 |
+
{
|
| 116 |
+
this.c0 = (uint3)v;
|
| 117 |
+
this.c1 = (uint3)v;
|
| 118 |
+
this.c2 = (uint3)v;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
/// <summary>Constructs a uint3x3 matrix from a double3x3 matrix by componentwise conversion.</summary>
|
| 122 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 123 |
+
public uint3x3(double3x3 v)
|
| 124 |
+
{
|
| 125 |
+
this.c0 = (uint3)v.c0;
|
| 126 |
+
this.c1 = (uint3)v.c1;
|
| 127 |
+
this.c2 = (uint3)v.c2;
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
/// <summary>Implicitly converts a single uint value to a uint3x3 matrix by assigning it to every component.</summary>
|
| 132 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 133 |
+
public static implicit operator uint3x3(uint v) { return new uint3x3(v); }
|
| 134 |
+
|
| 135 |
+
/// <summary>Explicitly converts a single bool value to a uint3x3 matrix by converting it to uint and assigning it to every component.</summary>
|
| 136 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 137 |
+
public static explicit operator uint3x3(bool v) { return new uint3x3(v); }
|
| 138 |
+
|
| 139 |
+
/// <summary>Explicitly converts a bool3x3 matrix to a uint3x3 matrix by componentwise conversion.</summary>
|
| 140 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 141 |
+
public static explicit operator uint3x3(bool3x3 v) { return new uint3x3(v); }
|
| 142 |
+
|
| 143 |
+
/// <summary>Explicitly converts a single int value to a uint3x3 matrix by converting it to uint and assigning it to every component.</summary>
|
| 144 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 145 |
+
public static explicit operator uint3x3(int v) { return new uint3x3(v); }
|
| 146 |
+
|
| 147 |
+
/// <summary>Explicitly converts a int3x3 matrix to a uint3x3 matrix by componentwise conversion.</summary>
|
| 148 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 149 |
+
public static explicit operator uint3x3(int3x3 v) { return new uint3x3(v); }
|
| 150 |
+
|
| 151 |
+
/// <summary>Explicitly converts a single float value to a uint3x3 matrix by converting it to uint and assigning it to every component.</summary>
|
| 152 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 153 |
+
public static explicit operator uint3x3(float v) { return new uint3x3(v); }
|
| 154 |
+
|
| 155 |
+
/// <summary>Explicitly converts a float3x3 matrix to a uint3x3 matrix by componentwise conversion.</summary>
|
| 156 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 157 |
+
public static explicit operator uint3x3(float3x3 v) { return new uint3x3(v); }
|
| 158 |
+
|
| 159 |
+
/// <summary>Explicitly converts a single double value to a uint3x3 matrix by converting it to uint and assigning it to every component.</summary>
|
| 160 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 161 |
+
public static explicit operator uint3x3(double v) { return new uint3x3(v); }
|
| 162 |
+
|
| 163 |
+
/// <summary>Explicitly converts a double3x3 matrix to a uint3x3 matrix by componentwise conversion.</summary>
|
| 164 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 165 |
+
public static explicit operator uint3x3(double3x3 v) { return new uint3x3(v); }
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
/// <summary>Returns the result of a componentwise multiplication operation on two uint3x3 matrices.</summary>
|
| 169 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 170 |
+
public static uint3x3 operator * (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); }
|
| 171 |
+
|
| 172 |
+
/// <summary>Returns the result of a componentwise multiplication operation on a uint3x3 matrix and a uint value.</summary>
|
| 173 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 174 |
+
public static uint3x3 operator * (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); }
|
| 175 |
+
|
| 176 |
+
/// <summary>Returns the result of a componentwise multiplication operation on a uint value and a uint3x3 matrix.</summary>
|
| 177 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 178 |
+
public static uint3x3 operator * (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); }
|
| 179 |
+
|
| 180 |
+
|
| 181 |
+
/// <summary>Returns the result of a componentwise addition operation on two uint3x3 matrices.</summary>
|
| 182 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 183 |
+
public static uint3x3 operator + (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); }
|
| 184 |
+
|
| 185 |
+
/// <summary>Returns the result of a componentwise addition operation on a uint3x3 matrix and a uint value.</summary>
|
| 186 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 187 |
+
public static uint3x3 operator + (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); }
|
| 188 |
+
|
| 189 |
+
/// <summary>Returns the result of a componentwise addition operation on a uint value and a uint3x3 matrix.</summary>
|
| 190 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 191 |
+
public static uint3x3 operator + (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); }
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
/// <summary>Returns the result of a componentwise subtraction operation on two uint3x3 matrices.</summary>
|
| 195 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 196 |
+
public static uint3x3 operator - (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); }
|
| 197 |
+
|
| 198 |
+
/// <summary>Returns the result of a componentwise subtraction operation on a uint3x3 matrix and a uint value.</summary>
|
| 199 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 200 |
+
public static uint3x3 operator - (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); }
|
| 201 |
+
|
| 202 |
+
/// <summary>Returns the result of a componentwise subtraction operation on a uint value and a uint3x3 matrix.</summary>
|
| 203 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 204 |
+
public static uint3x3 operator - (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); }
|
| 205 |
+
|
| 206 |
+
|
| 207 |
+
/// <summary>Returns the result of a componentwise division operation on two uint3x3 matrices.</summary>
|
| 208 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 209 |
+
public static uint3x3 operator / (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); }
|
| 210 |
+
|
| 211 |
+
/// <summary>Returns the result of a componentwise division operation on a uint3x3 matrix and a uint value.</summary>
|
| 212 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 213 |
+
public static uint3x3 operator / (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); }
|
| 214 |
+
|
| 215 |
+
/// <summary>Returns the result of a componentwise division operation on a uint value and a uint3x3 matrix.</summary>
|
| 216 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 217 |
+
public static uint3x3 operator / (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); }
|
| 218 |
+
|
| 219 |
+
|
| 220 |
+
/// <summary>Returns the result of a componentwise modulus operation on two uint3x3 matrices.</summary>
|
| 221 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 222 |
+
public static uint3x3 operator % (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); }
|
| 223 |
+
|
| 224 |
+
/// <summary>Returns the result of a componentwise modulus operation on a uint3x3 matrix and a uint value.</summary>
|
| 225 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 226 |
+
public static uint3x3 operator % (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); }
|
| 227 |
+
|
| 228 |
+
/// <summary>Returns the result of a componentwise modulus operation on a uint value and a uint3x3 matrix.</summary>
|
| 229 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 230 |
+
public static uint3x3 operator % (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); }
|
| 231 |
+
|
| 232 |
+
|
| 233 |
+
/// <summary>Returns the result of a componentwise increment operation on a uint3x3 matrix.</summary>
|
| 234 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 235 |
+
public static uint3x3 operator ++ (uint3x3 val) { return new uint3x3 (++val.c0, ++val.c1, ++val.c2); }
|
| 236 |
+
|
| 237 |
+
|
| 238 |
+
/// <summary>Returns the result of a componentwise decrement operation on a uint3x3 matrix.</summary>
|
| 239 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 240 |
+
public static uint3x3 operator -- (uint3x3 val) { return new uint3x3 (--val.c0, --val.c1, --val.c2); }
|
| 241 |
+
|
| 242 |
+
|
| 243 |
+
/// <summary>Returns the result of a componentwise less than operation on two uint3x3 matrices.</summary>
|
| 244 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 245 |
+
public static bool3x3 operator < (uint3x3 lhs, uint3x3 rhs) { return new bool3x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); }
|
| 246 |
+
|
| 247 |
+
/// <summary>Returns the result of a componentwise less than operation on a uint3x3 matrix and a uint value.</summary>
|
| 248 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 249 |
+
public static bool3x3 operator < (uint3x3 lhs, uint rhs) { return new bool3x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); }
|
| 250 |
+
|
| 251 |
+
/// <summary>Returns the result of a componentwise less than operation on a uint value and a uint3x3 matrix.</summary>
|
| 252 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 253 |
+
public static bool3x3 operator < (uint lhs, uint3x3 rhs) { return new bool3x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); }
|
| 254 |
+
|
| 255 |
+
|
| 256 |
+
/// <summary>Returns the result of a componentwise less or equal operation on two uint3x3 matrices.</summary>
|
| 257 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 258 |
+
public static bool3x3 operator <= (uint3x3 lhs, uint3x3 rhs) { return new bool3x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); }
|
| 259 |
+
|
| 260 |
+
/// <summary>Returns the result of a componentwise less or equal operation on a uint3x3 matrix and a uint value.</summary>
|
| 261 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 262 |
+
public static bool3x3 operator <= (uint3x3 lhs, uint rhs) { return new bool3x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); }
|
| 263 |
+
|
| 264 |
+
/// <summary>Returns the result of a componentwise less or equal operation on a uint value and a uint3x3 matrix.</summary>
|
| 265 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 266 |
+
public static bool3x3 operator <= (uint lhs, uint3x3 rhs) { return new bool3x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); }
|
| 267 |
+
|
| 268 |
+
|
| 269 |
+
/// <summary>Returns the result of a componentwise greater than operation on two uint3x3 matrices.</summary>
|
| 270 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 271 |
+
public static bool3x3 operator > (uint3x3 lhs, uint3x3 rhs) { return new bool3x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); }
|
| 272 |
+
|
| 273 |
+
/// <summary>Returns the result of a componentwise greater than operation on a uint3x3 matrix and a uint value.</summary>
|
| 274 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 275 |
+
public static bool3x3 operator > (uint3x3 lhs, uint rhs) { return new bool3x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); }
|
| 276 |
+
|
| 277 |
+
/// <summary>Returns the result of a componentwise greater than operation on a uint value and a uint3x3 matrix.</summary>
|
| 278 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 279 |
+
public static bool3x3 operator > (uint lhs, uint3x3 rhs) { return new bool3x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); }
|
| 280 |
+
|
| 281 |
+
|
| 282 |
+
/// <summary>Returns the result of a componentwise greater or equal operation on two uint3x3 matrices.</summary>
|
| 283 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 284 |
+
public static bool3x3 operator >= (uint3x3 lhs, uint3x3 rhs) { return new bool3x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); }
|
| 285 |
+
|
| 286 |
+
/// <summary>Returns the result of a componentwise greater or equal operation on a uint3x3 matrix and a uint value.</summary>
|
| 287 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 288 |
+
public static bool3x3 operator >= (uint3x3 lhs, uint rhs) { return new bool3x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); }
|
| 289 |
+
|
| 290 |
+
/// <summary>Returns the result of a componentwise greater or equal operation on a uint value and a uint3x3 matrix.</summary>
|
| 291 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 292 |
+
public static bool3x3 operator >= (uint lhs, uint3x3 rhs) { return new bool3x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); }
|
| 293 |
+
|
| 294 |
+
|
| 295 |
+
/// <summary>Returns the result of a componentwise unary minus operation on a uint3x3 matrix.</summary>
|
| 296 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 297 |
+
public static uint3x3 operator - (uint3x3 val) { return new uint3x3 (-val.c0, -val.c1, -val.c2); }
|
| 298 |
+
|
| 299 |
+
|
| 300 |
+
/// <summary>Returns the result of a componentwise unary plus operation on a uint3x3 matrix.</summary>
|
| 301 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 302 |
+
public static uint3x3 operator + (uint3x3 val) { return new uint3x3 (+val.c0, +val.c1, +val.c2); }
|
| 303 |
+
|
| 304 |
+
|
| 305 |
+
/// <summary>Returns the result of a componentwise left shift operation on a uint3x3 matrix by a number of bits specified by a single int.</summary>
|
| 306 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 307 |
+
public static uint3x3 operator << (uint3x3 x, int n) { return new uint3x3 (x.c0 << n, x.c1 << n, x.c2 << n); }
|
| 308 |
+
|
| 309 |
+
/// <summary>Returns the result of a componentwise right shift operation on a uint3x3 matrix by a number of bits specified by a single int.</summary>
|
| 310 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 311 |
+
public static uint3x3 operator >> (uint3x3 x, int n) { return new uint3x3 (x.c0 >> n, x.c1 >> n, x.c2 >> n); }
|
| 312 |
+
|
| 313 |
+
/// <summary>Returns the result of a componentwise equality operation on two uint3x3 matrices.</summary>
|
| 314 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 315 |
+
public static bool3x3 operator == (uint3x3 lhs, uint3x3 rhs) { return new bool3x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); }
|
| 316 |
+
|
| 317 |
+
/// <summary>Returns the result of a componentwise equality operation on a uint3x3 matrix and a uint value.</summary>
|
| 318 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 319 |
+
public static bool3x3 operator == (uint3x3 lhs, uint rhs) { return new bool3x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); }
|
| 320 |
+
|
| 321 |
+
/// <summary>Returns the result of a componentwise equality operation on a uint value and a uint3x3 matrix.</summary>
|
| 322 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 323 |
+
public static bool3x3 operator == (uint lhs, uint3x3 rhs) { return new bool3x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); }
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
/// <summary>Returns the result of a componentwise not equal operation on two uint3x3 matrices.</summary>
|
| 327 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 328 |
+
public static bool3x3 operator != (uint3x3 lhs, uint3x3 rhs) { return new bool3x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); }
|
| 329 |
+
|
| 330 |
+
/// <summary>Returns the result of a componentwise not equal operation on a uint3x3 matrix and a uint value.</summary>
|
| 331 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 332 |
+
public static bool3x3 operator != (uint3x3 lhs, uint rhs) { return new bool3x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); }
|
| 333 |
+
|
| 334 |
+
/// <summary>Returns the result of a componentwise not equal operation on a uint value and a uint3x3 matrix.</summary>
|
| 335 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 336 |
+
public static bool3x3 operator != (uint lhs, uint3x3 rhs) { return new bool3x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); }
|
| 337 |
+
|
| 338 |
+
|
| 339 |
+
/// <summary>Returns the result of a componentwise bitwise not operation on a uint3x3 matrix.</summary>
|
| 340 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 341 |
+
public static uint3x3 operator ~ (uint3x3 val) { return new uint3x3 (~val.c0, ~val.c1, ~val.c2); }
|
| 342 |
+
|
| 343 |
+
|
| 344 |
+
/// <summary>Returns the result of a componentwise bitwise and operation on two uint3x3 matrices.</summary>
|
| 345 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 346 |
+
public static uint3x3 operator & (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); }
|
| 347 |
+
|
| 348 |
+
/// <summary>Returns the result of a componentwise bitwise and operation on a uint3x3 matrix and a uint value.</summary>
|
| 349 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 350 |
+
public static uint3x3 operator & (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); }
|
| 351 |
+
|
| 352 |
+
/// <summary>Returns the result of a componentwise bitwise and operation on a uint value and a uint3x3 matrix.</summary>
|
| 353 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 354 |
+
public static uint3x3 operator & (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); }
|
| 355 |
+
|
| 356 |
+
|
| 357 |
+
/// <summary>Returns the result of a componentwise bitwise or operation on two uint3x3 matrices.</summary>
|
| 358 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 359 |
+
public static uint3x3 operator | (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); }
|
| 360 |
+
|
| 361 |
+
/// <summary>Returns the result of a componentwise bitwise or operation on a uint3x3 matrix and a uint value.</summary>
|
| 362 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 363 |
+
public static uint3x3 operator | (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); }
|
| 364 |
+
|
| 365 |
+
/// <summary>Returns the result of a componentwise bitwise or operation on a uint value and a uint3x3 matrix.</summary>
|
| 366 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 367 |
+
public static uint3x3 operator | (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); }
|
| 368 |
+
|
| 369 |
+
|
| 370 |
+
/// <summary>Returns the result of a componentwise bitwise exclusive or operation on two uint3x3 matrices.</summary>
|
| 371 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 372 |
+
public static uint3x3 operator ^ (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); }
|
| 373 |
+
|
| 374 |
+
/// <summary>Returns the result of a componentwise bitwise exclusive or operation on a uint3x3 matrix and a uint value.</summary>
|
| 375 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 376 |
+
public static uint3x3 operator ^ (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); }
|
| 377 |
+
|
| 378 |
+
/// <summary>Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint3x3 matrix.</summary>
|
| 379 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 380 |
+
public static uint3x3 operator ^ (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); }
|
| 381 |
+
|
| 382 |
+
|
| 383 |
+
|
| 384 |
+
/// <summary>Returns the uint3 element at a specified index.</summary>
|
| 385 |
+
unsafe public ref uint3 this[int index]
|
| 386 |
+
{
|
| 387 |
+
get
|
| 388 |
+
{
|
| 389 |
+
#if ENABLE_UNITY_COLLECTIONS_CHECKS
|
| 390 |
+
if ((uint)index >= 3)
|
| 391 |
+
throw new System.ArgumentException("index must be between[0...2]");
|
| 392 |
+
#endif
|
| 393 |
+
fixed (uint3x3* array = &this) { return ref ((uint3*)array)[index]; }
|
| 394 |
+
}
|
| 395 |
+
}
|
| 396 |
+
|
| 397 |
+
/// <summary>Returns true if the uint3x3 is equal to a given uint3x3, false otherwise.</summary>
|
| 398 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 399 |
+
public bool Equals(uint3x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); }
|
| 400 |
+
|
| 401 |
+
/// <summary>Returns true if the uint3x3 is equal to a given uint3x3, false otherwise.</summary>
|
| 402 |
+
public override bool Equals(object o) { return Equals((uint3x3)o); }
|
| 403 |
+
|
| 404 |
+
|
| 405 |
+
/// <summary>Returns a hash code for the uint3x3.</summary>
|
| 406 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 407 |
+
public override int GetHashCode() { return (int)math.hash(this); }
|
| 408 |
+
|
| 409 |
+
|
| 410 |
+
/// <summary>Returns a string representation of the uint3x3.</summary>
|
| 411 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 412 |
+
public override string ToString()
|
| 413 |
+
{
|
| 414 |
+
return string.Format("uint3x3({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8})", c0.x, c1.x, c2.x, c0.y, c1.y, c2.y, c0.z, c1.z, c2.z);
|
| 415 |
+
}
|
| 416 |
+
|
| 417 |
+
/// <summary>Returns a string representation of the uint3x3 using a specified format and culture-specific format information.</summary>
|
| 418 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 419 |
+
public string ToString(string format, IFormatProvider formatProvider)
|
| 420 |
+
{
|
| 421 |
+
return string.Format("uint3x3({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8})", c0.x.ToString(format, formatProvider), c1.x.ToString(format, formatProvider), c2.x.ToString(format, formatProvider), c0.y.ToString(format, formatProvider), c1.y.ToString(format, formatProvider), c2.y.ToString(format, formatProvider), c0.z.ToString(format, formatProvider), c1.z.ToString(format, formatProvider), c2.z.ToString(format, formatProvider));
|
| 422 |
+
}
|
| 423 |
+
|
| 424 |
+
}
|
| 425 |
+
|
| 426 |
+
public static partial class math
|
| 427 |
+
{
|
| 428 |
+
/// <summary>Returns a uint3x3 matrix constructed from three uint3 vectors.</summary>
|
| 429 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 430 |
+
public static uint3x3 uint3x3(uint3 c0, uint3 c1, uint3 c2) { return new uint3x3(c0, c1, c2); }
|
| 431 |
+
|
| 432 |
+
/// <summary>Returns a uint3x3 matrix constructed from from 9 uint values given in row-major order.</summary>
|
| 433 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 434 |
+
public static uint3x3 uint3x3(uint m00, uint m01, uint m02,
|
| 435 |
+
uint m10, uint m11, uint m12,
|
| 436 |
+
uint m20, uint m21, uint m22)
|
| 437 |
+
{
|
| 438 |
+
return new uint3x3(m00, m01, m02,
|
| 439 |
+
m10, m11, m12,
|
| 440 |
+
m20, m21, m22);
|
| 441 |
+
}
|
| 442 |
+
|
| 443 |
+
/// <summary>Returns a uint3x3 matrix constructed from a single uint value by assigning it to every component.</summary>
|
| 444 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 445 |
+
public static uint3x3 uint3x3(uint v) { return new uint3x3(v); }
|
| 446 |
+
|
| 447 |
+
/// <summary>Returns a uint3x3 matrix constructed from a single bool value by converting it to uint and assigning it to every component.</summary>
|
| 448 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 449 |
+
public static uint3x3 uint3x3(bool v) { return new uint3x3(v); }
|
| 450 |
+
|
| 451 |
+
/// <summary>Return a uint3x3 matrix constructed from a bool3x3 matrix by componentwise conversion.</summary>
|
| 452 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 453 |
+
public static uint3x3 uint3x3(bool3x3 v) { return new uint3x3(v); }
|
| 454 |
+
|
| 455 |
+
/// <summary>Returns a uint3x3 matrix constructed from a single int value by converting it to uint and assigning it to every component.</summary>
|
| 456 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 457 |
+
public static uint3x3 uint3x3(int v) { return new uint3x3(v); }
|
| 458 |
+
|
| 459 |
+
/// <summary>Return a uint3x3 matrix constructed from a int3x3 matrix by componentwise conversion.</summary>
|
| 460 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 461 |
+
public static uint3x3 uint3x3(int3x3 v) { return new uint3x3(v); }
|
| 462 |
+
|
| 463 |
+
/// <summary>Returns a uint3x3 matrix constructed from a single float value by converting it to uint and assigning it to every component.</summary>
|
| 464 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 465 |
+
public static uint3x3 uint3x3(float v) { return new uint3x3(v); }
|
| 466 |
+
|
| 467 |
+
/// <summary>Return a uint3x3 matrix constructed from a float3x3 matrix by componentwise conversion.</summary>
|
| 468 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 469 |
+
public static uint3x3 uint3x3(float3x3 v) { return new uint3x3(v); }
|
| 470 |
+
|
| 471 |
+
/// <summary>Returns a uint3x3 matrix constructed from a single double value by converting it to uint and assigning it to every component.</summary>
|
| 472 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 473 |
+
public static uint3x3 uint3x3(double v) { return new uint3x3(v); }
|
| 474 |
+
|
| 475 |
+
/// <summary>Return a uint3x3 matrix constructed from a double3x3 matrix by componentwise conversion.</summary>
|
| 476 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 477 |
+
public static uint3x3 uint3x3(double3x3 v) { return new uint3x3(v); }
|
| 478 |
+
|
| 479 |
+
/// <summary>Return the uint3x3 transpose of a uint3x3 matrix.</summary>
|
| 480 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 481 |
+
public static uint3x3 transpose(uint3x3 v)
|
| 482 |
+
{
|
| 483 |
+
return uint3x3(
|
| 484 |
+
v.c0.x, v.c0.y, v.c0.z,
|
| 485 |
+
v.c1.x, v.c1.y, v.c1.z,
|
| 486 |
+
v.c2.x, v.c2.y, v.c2.z);
|
| 487 |
+
}
|
| 488 |
+
|
| 489 |
+
/// <summary>Returns a uint hash code of a uint3x3 vector.</summary>
|
| 490 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 491 |
+
public static uint hash(uint3x3 v)
|
| 492 |
+
{
|
| 493 |
+
return csum(v.c0 * uint3(0xAC60D0C3u, 0x9263662Fu, 0xE69626FFu) +
|
| 494 |
+
v.c1 * uint3(0xBD010EEBu, 0x9CEDE1D1u, 0x43BE0B51u) +
|
| 495 |
+
v.c2 * uint3(0xAF836EE1u, 0xB130C137u, 0x54834775u)) + 0x7C022221u;
|
| 496 |
+
}
|
| 497 |
+
|
| 498 |
+
/// <summary>
|
| 499 |
+
/// Returns a uint3 vector hash code of a uint3x3 vector.
|
| 500 |
+
/// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash
|
| 501 |
+
/// that are only reduced to a narrow uint hash at the very end instead of at every step.
|
| 502 |
+
/// </summary>
|
| 503 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 504 |
+
public static uint3 hashwide(uint3x3 v)
|
| 505 |
+
{
|
| 506 |
+
return (v.c0 * uint3(0xA2D00EDFu, 0xA8977779u, 0x9F1C739Bu) +
|
| 507 |
+
v.c1 * uint3(0x4B1BD187u, 0x9DF50593u, 0xF18EEB85u) +
|
| 508 |
+
v.c2 * uint3(0x9E19BFC3u, 0x8196B06Fu, 0xD24EFA19u)) + 0x7D8048BBu;
|
| 509 |
+
}
|
| 510 |
+
|
| 511 |
+
}
|
| 512 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint3x3.gen.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: c1262616ca00349c28426545d8525266
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint3x4.gen.cs
ADDED
|
@@ -0,0 +1,524 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//------------------------------------------------------------------------------
|
| 2 |
+
// <auto-generated>
|
| 3 |
+
// This code was generated by a tool.
|
| 4 |
+
//
|
| 5 |
+
// Changes to this file may cause incorrect behavior and will be lost if
|
| 6 |
+
// the code is regenerated.
|
| 7 |
+
// </auto-generated>
|
| 8 |
+
//------------------------------------------------------------------------------
|
| 9 |
+
using System;
|
| 10 |
+
using System.Runtime.CompilerServices;
|
| 11 |
+
|
| 12 |
+
#pragma warning disable 0660, 0661
|
| 13 |
+
|
| 14 |
+
namespace Unity.Mathematics
|
| 15 |
+
{
|
| 16 |
+
[System.Serializable]
|
| 17 |
+
public partial struct uint3x4 : System.IEquatable<uint3x4>, IFormattable
|
| 18 |
+
{
|
| 19 |
+
public uint3 c0;
|
| 20 |
+
public uint3 c1;
|
| 21 |
+
public uint3 c2;
|
| 22 |
+
public uint3 c3;
|
| 23 |
+
|
| 24 |
+
/// <summary>uint3x4 zero value.</summary>
|
| 25 |
+
public static readonly uint3x4 zero;
|
| 26 |
+
|
| 27 |
+
/// <summary>Constructs a uint3x4 matrix from four uint3 vectors.</summary>
|
| 28 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 29 |
+
public uint3x4(uint3 c0, uint3 c1, uint3 c2, uint3 c3)
|
| 30 |
+
{
|
| 31 |
+
this.c0 = c0;
|
| 32 |
+
this.c1 = c1;
|
| 33 |
+
this.c2 = c2;
|
| 34 |
+
this.c3 = c3;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
/// <summary>Constructs a uint3x4 matrix from 12 uint values given in row-major order.</summary>
|
| 38 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 39 |
+
public uint3x4(uint m00, uint m01, uint m02, uint m03,
|
| 40 |
+
uint m10, uint m11, uint m12, uint m13,
|
| 41 |
+
uint m20, uint m21, uint m22, uint m23)
|
| 42 |
+
{
|
| 43 |
+
this.c0 = new uint3(m00, m10, m20);
|
| 44 |
+
this.c1 = new uint3(m01, m11, m21);
|
| 45 |
+
this.c2 = new uint3(m02, m12, m22);
|
| 46 |
+
this.c3 = new uint3(m03, m13, m23);
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
/// <summary>Constructs a uint3x4 matrix from a single uint value by assigning it to every component.</summary>
|
| 50 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 51 |
+
public uint3x4(uint v)
|
| 52 |
+
{
|
| 53 |
+
this.c0 = v;
|
| 54 |
+
this.c1 = v;
|
| 55 |
+
this.c2 = v;
|
| 56 |
+
this.c3 = v;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
/// <summary>Constructs a uint3x4 matrix from a single bool value by converting it to uint and assigning it to every component.</summary>
|
| 60 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 61 |
+
public uint3x4(bool v)
|
| 62 |
+
{
|
| 63 |
+
this.c0 = math.select(new uint3(0u), new uint3(1u), v);
|
| 64 |
+
this.c1 = math.select(new uint3(0u), new uint3(1u), v);
|
| 65 |
+
this.c2 = math.select(new uint3(0u), new uint3(1u), v);
|
| 66 |
+
this.c3 = math.select(new uint3(0u), new uint3(1u), v);
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
/// <summary>Constructs a uint3x4 matrix from a bool3x4 matrix by componentwise conversion.</summary>
|
| 70 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 71 |
+
public uint3x4(bool3x4 v)
|
| 72 |
+
{
|
| 73 |
+
this.c0 = math.select(new uint3(0u), new uint3(1u), v.c0);
|
| 74 |
+
this.c1 = math.select(new uint3(0u), new uint3(1u), v.c1);
|
| 75 |
+
this.c2 = math.select(new uint3(0u), new uint3(1u), v.c2);
|
| 76 |
+
this.c3 = math.select(new uint3(0u), new uint3(1u), v.c3);
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
/// <summary>Constructs a uint3x4 matrix from a single int value by converting it to uint and assigning it to every component.</summary>
|
| 80 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 81 |
+
public uint3x4(int v)
|
| 82 |
+
{
|
| 83 |
+
this.c0 = (uint3)v;
|
| 84 |
+
this.c1 = (uint3)v;
|
| 85 |
+
this.c2 = (uint3)v;
|
| 86 |
+
this.c3 = (uint3)v;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
/// <summary>Constructs a uint3x4 matrix from a int3x4 matrix by componentwise conversion.</summary>
|
| 90 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 91 |
+
public uint3x4(int3x4 v)
|
| 92 |
+
{
|
| 93 |
+
this.c0 = (uint3)v.c0;
|
| 94 |
+
this.c1 = (uint3)v.c1;
|
| 95 |
+
this.c2 = (uint3)v.c2;
|
| 96 |
+
this.c3 = (uint3)v.c3;
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
/// <summary>Constructs a uint3x4 matrix from a single float value by converting it to uint and assigning it to every component.</summary>
|
| 100 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 101 |
+
public uint3x4(float v)
|
| 102 |
+
{
|
| 103 |
+
this.c0 = (uint3)v;
|
| 104 |
+
this.c1 = (uint3)v;
|
| 105 |
+
this.c2 = (uint3)v;
|
| 106 |
+
this.c3 = (uint3)v;
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
/// <summary>Constructs a uint3x4 matrix from a float3x4 matrix by componentwise conversion.</summary>
|
| 110 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 111 |
+
public uint3x4(float3x4 v)
|
| 112 |
+
{
|
| 113 |
+
this.c0 = (uint3)v.c0;
|
| 114 |
+
this.c1 = (uint3)v.c1;
|
| 115 |
+
this.c2 = (uint3)v.c2;
|
| 116 |
+
this.c3 = (uint3)v.c3;
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
/// <summary>Constructs a uint3x4 matrix from a single double value by converting it to uint and assigning it to every component.</summary>
|
| 120 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 121 |
+
public uint3x4(double v)
|
| 122 |
+
{
|
| 123 |
+
this.c0 = (uint3)v;
|
| 124 |
+
this.c1 = (uint3)v;
|
| 125 |
+
this.c2 = (uint3)v;
|
| 126 |
+
this.c3 = (uint3)v;
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
/// <summary>Constructs a uint3x4 matrix from a double3x4 matrix by componentwise conversion.</summary>
|
| 130 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 131 |
+
public uint3x4(double3x4 v)
|
| 132 |
+
{
|
| 133 |
+
this.c0 = (uint3)v.c0;
|
| 134 |
+
this.c1 = (uint3)v.c1;
|
| 135 |
+
this.c2 = (uint3)v.c2;
|
| 136 |
+
this.c3 = (uint3)v.c3;
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
/// <summary>Implicitly converts a single uint value to a uint3x4 matrix by assigning it to every component.</summary>
|
| 141 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 142 |
+
public static implicit operator uint3x4(uint v) { return new uint3x4(v); }
|
| 143 |
+
|
| 144 |
+
/// <summary>Explicitly converts a single bool value to a uint3x4 matrix by converting it to uint and assigning it to every component.</summary>
|
| 145 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 146 |
+
public static explicit operator uint3x4(bool v) { return new uint3x4(v); }
|
| 147 |
+
|
| 148 |
+
/// <summary>Explicitly converts a bool3x4 matrix to a uint3x4 matrix by componentwise conversion.</summary>
|
| 149 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 150 |
+
public static explicit operator uint3x4(bool3x4 v) { return new uint3x4(v); }
|
| 151 |
+
|
| 152 |
+
/// <summary>Explicitly converts a single int value to a uint3x4 matrix by converting it to uint and assigning it to every component.</summary>
|
| 153 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 154 |
+
public static explicit operator uint3x4(int v) { return new uint3x4(v); }
|
| 155 |
+
|
| 156 |
+
/// <summary>Explicitly converts a int3x4 matrix to a uint3x4 matrix by componentwise conversion.</summary>
|
| 157 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 158 |
+
public static explicit operator uint3x4(int3x4 v) { return new uint3x4(v); }
|
| 159 |
+
|
| 160 |
+
/// <summary>Explicitly converts a single float value to a uint3x4 matrix by converting it to uint and assigning it to every component.</summary>
|
| 161 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 162 |
+
public static explicit operator uint3x4(float v) { return new uint3x4(v); }
|
| 163 |
+
|
| 164 |
+
/// <summary>Explicitly converts a float3x4 matrix to a uint3x4 matrix by componentwise conversion.</summary>
|
| 165 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 166 |
+
public static explicit operator uint3x4(float3x4 v) { return new uint3x4(v); }
|
| 167 |
+
|
| 168 |
+
/// <summary>Explicitly converts a single double value to a uint3x4 matrix by converting it to uint and assigning it to every component.</summary>
|
| 169 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 170 |
+
public static explicit operator uint3x4(double v) { return new uint3x4(v); }
|
| 171 |
+
|
| 172 |
+
/// <summary>Explicitly converts a double3x4 matrix to a uint3x4 matrix by componentwise conversion.</summary>
|
| 173 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 174 |
+
public static explicit operator uint3x4(double3x4 v) { return new uint3x4(v); }
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
/// <summary>Returns the result of a componentwise multiplication operation on two uint3x4 matrices.</summary>
|
| 178 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 179 |
+
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); }
|
| 180 |
+
|
| 181 |
+
/// <summary>Returns the result of a componentwise multiplication operation on a uint3x4 matrix and a uint value.</summary>
|
| 182 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 183 |
+
public static uint3x4 operator * (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); }
|
| 184 |
+
|
| 185 |
+
/// <summary>Returns the result of a componentwise multiplication operation on a uint value and a uint3x4 matrix.</summary>
|
| 186 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 187 |
+
public static uint3x4 operator * (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); }
|
| 188 |
+
|
| 189 |
+
|
| 190 |
+
/// <summary>Returns the result of a componentwise addition operation on two uint3x4 matrices.</summary>
|
| 191 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 192 |
+
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); }
|
| 193 |
+
|
| 194 |
+
/// <summary>Returns the result of a componentwise addition operation on a uint3x4 matrix and a uint value.</summary>
|
| 195 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 196 |
+
public static uint3x4 operator + (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); }
|
| 197 |
+
|
| 198 |
+
/// <summary>Returns the result of a componentwise addition operation on a uint value and a uint3x4 matrix.</summary>
|
| 199 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 200 |
+
public static uint3x4 operator + (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); }
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
/// <summary>Returns the result of a componentwise subtraction operation on two uint3x4 matrices.</summary>
|
| 204 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 205 |
+
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); }
|
| 206 |
+
|
| 207 |
+
/// <summary>Returns the result of a componentwise subtraction operation on a uint3x4 matrix and a uint value.</summary>
|
| 208 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 209 |
+
public static uint3x4 operator - (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); }
|
| 210 |
+
|
| 211 |
+
/// <summary>Returns the result of a componentwise subtraction operation on a uint value and a uint3x4 matrix.</summary>
|
| 212 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 213 |
+
public static uint3x4 operator - (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); }
|
| 214 |
+
|
| 215 |
+
|
| 216 |
+
/// <summary>Returns the result of a componentwise division operation on two uint3x4 matrices.</summary>
|
| 217 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 218 |
+
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); }
|
| 219 |
+
|
| 220 |
+
/// <summary>Returns the result of a componentwise division operation on a uint3x4 matrix and a uint value.</summary>
|
| 221 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 222 |
+
public static uint3x4 operator / (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); }
|
| 223 |
+
|
| 224 |
+
/// <summary>Returns the result of a componentwise division operation on a uint value and a uint3x4 matrix.</summary>
|
| 225 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 226 |
+
public static uint3x4 operator / (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); }
|
| 227 |
+
|
| 228 |
+
|
| 229 |
+
/// <summary>Returns the result of a componentwise modulus operation on two uint3x4 matrices.</summary>
|
| 230 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 231 |
+
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); }
|
| 232 |
+
|
| 233 |
+
/// <summary>Returns the result of a componentwise modulus operation on a uint3x4 matrix and a uint value.</summary>
|
| 234 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 235 |
+
public static uint3x4 operator % (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); }
|
| 236 |
+
|
| 237 |
+
/// <summary>Returns the result of a componentwise modulus operation on a uint value and a uint3x4 matrix.</summary>
|
| 238 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 239 |
+
public static uint3x4 operator % (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); }
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
/// <summary>Returns the result of a componentwise increment operation on a uint3x4 matrix.</summary>
|
| 243 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 244 |
+
public static uint3x4 operator ++ (uint3x4 val) { return new uint3x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); }
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
/// <summary>Returns the result of a componentwise decrement operation on a uint3x4 matrix.</summary>
|
| 248 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 249 |
+
public static uint3x4 operator -- (uint3x4 val) { return new uint3x4 (--val.c0, --val.c1, --val.c2, --val.c3); }
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
/// <summary>Returns the result of a componentwise less than operation on two uint3x4 matrices.</summary>
|
| 253 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 254 |
+
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); }
|
| 255 |
+
|
| 256 |
+
/// <summary>Returns the result of a componentwise less than operation on a uint3x4 matrix and a uint value.</summary>
|
| 257 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 258 |
+
public static bool3x4 operator < (uint3x4 lhs, uint rhs) { return new bool3x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); }
|
| 259 |
+
|
| 260 |
+
/// <summary>Returns the result of a componentwise less than operation on a uint value and a uint3x4 matrix.</summary>
|
| 261 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 262 |
+
public static bool3x4 operator < (uint lhs, uint3x4 rhs) { return new bool3x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); }
|
| 263 |
+
|
| 264 |
+
|
| 265 |
+
/// <summary>Returns the result of a componentwise less or equal operation on two uint3x4 matrices.</summary>
|
| 266 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 267 |
+
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); }
|
| 268 |
+
|
| 269 |
+
/// <summary>Returns the result of a componentwise less or equal operation on a uint3x4 matrix and a uint value.</summary>
|
| 270 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 271 |
+
public static bool3x4 operator <= (uint3x4 lhs, uint rhs) { return new bool3x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); }
|
| 272 |
+
|
| 273 |
+
/// <summary>Returns the result of a componentwise less or equal operation on a uint value and a uint3x4 matrix.</summary>
|
| 274 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 275 |
+
public static bool3x4 operator <= (uint lhs, uint3x4 rhs) { return new bool3x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); }
|
| 276 |
+
|
| 277 |
+
|
| 278 |
+
/// <summary>Returns the result of a componentwise greater than operation on two uint3x4 matrices.</summary>
|
| 279 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 280 |
+
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); }
|
| 281 |
+
|
| 282 |
+
/// <summary>Returns the result of a componentwise greater than operation on a uint3x4 matrix and a uint value.</summary>
|
| 283 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 284 |
+
public static bool3x4 operator > (uint3x4 lhs, uint rhs) { return new bool3x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); }
|
| 285 |
+
|
| 286 |
+
/// <summary>Returns the result of a componentwise greater than operation on a uint value and a uint3x4 matrix.</summary>
|
| 287 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 288 |
+
public static bool3x4 operator > (uint lhs, uint3x4 rhs) { return new bool3x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); }
|
| 289 |
+
|
| 290 |
+
|
| 291 |
+
/// <summary>Returns the result of a componentwise greater or equal operation on two uint3x4 matrices.</summary>
|
| 292 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 293 |
+
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); }
|
| 294 |
+
|
| 295 |
+
/// <summary>Returns the result of a componentwise greater or equal operation on a uint3x4 matrix and a uint value.</summary>
|
| 296 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 297 |
+
public static bool3x4 operator >= (uint3x4 lhs, uint rhs) { return new bool3x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); }
|
| 298 |
+
|
| 299 |
+
/// <summary>Returns the result of a componentwise greater or equal operation on a uint value and a uint3x4 matrix.</summary>
|
| 300 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 301 |
+
public static bool3x4 operator >= (uint lhs, uint3x4 rhs) { return new bool3x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); }
|
| 302 |
+
|
| 303 |
+
|
| 304 |
+
/// <summary>Returns the result of a componentwise unary minus operation on a uint3x4 matrix.</summary>
|
| 305 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 306 |
+
public static uint3x4 operator - (uint3x4 val) { return new uint3x4 (-val.c0, -val.c1, -val.c2, -val.c3); }
|
| 307 |
+
|
| 308 |
+
|
| 309 |
+
/// <summary>Returns the result of a componentwise unary plus operation on a uint3x4 matrix.</summary>
|
| 310 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 311 |
+
public static uint3x4 operator + (uint3x4 val) { return new uint3x4 (+val.c0, +val.c1, +val.c2, +val.c3); }
|
| 312 |
+
|
| 313 |
+
|
| 314 |
+
/// <summary>Returns the result of a componentwise left shift operation on a uint3x4 matrix by a number of bits specified by a single int.</summary>
|
| 315 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 316 |
+
public static uint3x4 operator << (uint3x4 x, int n) { return new uint3x4 (x.c0 << n, x.c1 << n, x.c2 << n, x.c3 << n); }
|
| 317 |
+
|
| 318 |
+
/// <summary>Returns the result of a componentwise right shift operation on a uint3x4 matrix by a number of bits specified by a single int.</summary>
|
| 319 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 320 |
+
public static uint3x4 operator >> (uint3x4 x, int n) { return new uint3x4 (x.c0 >> n, x.c1 >> n, x.c2 >> n, x.c3 >> n); }
|
| 321 |
+
|
| 322 |
+
/// <summary>Returns the result of a componentwise equality operation on two uint3x4 matrices.</summary>
|
| 323 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 324 |
+
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); }
|
| 325 |
+
|
| 326 |
+
/// <summary>Returns the result of a componentwise equality operation on a uint3x4 matrix and a uint value.</summary>
|
| 327 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 328 |
+
public static bool3x4 operator == (uint3x4 lhs, uint rhs) { return new bool3x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); }
|
| 329 |
+
|
| 330 |
+
/// <summary>Returns the result of a componentwise equality operation on a uint value and a uint3x4 matrix.</summary>
|
| 331 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 332 |
+
public static bool3x4 operator == (uint lhs, uint3x4 rhs) { return new bool3x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); }
|
| 333 |
+
|
| 334 |
+
|
| 335 |
+
/// <summary>Returns the result of a componentwise not equal operation on two uint3x4 matrices.</summary>
|
| 336 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 337 |
+
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); }
|
| 338 |
+
|
| 339 |
+
/// <summary>Returns the result of a componentwise not equal operation on a uint3x4 matrix and a uint value.</summary>
|
| 340 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 341 |
+
public static bool3x4 operator != (uint3x4 lhs, uint rhs) { return new bool3x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); }
|
| 342 |
+
|
| 343 |
+
/// <summary>Returns the result of a componentwise not equal operation on a uint value and a uint3x4 matrix.</summary>
|
| 344 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 345 |
+
public static bool3x4 operator != (uint lhs, uint3x4 rhs) { return new bool3x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); }
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
/// <summary>Returns the result of a componentwise bitwise not operation on a uint3x4 matrix.</summary>
|
| 349 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 350 |
+
public static uint3x4 operator ~ (uint3x4 val) { return new uint3x4 (~val.c0, ~val.c1, ~val.c2, ~val.c3); }
|
| 351 |
+
|
| 352 |
+
|
| 353 |
+
/// <summary>Returns the result of a componentwise bitwise and operation on two uint3x4 matrices.</summary>
|
| 354 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 355 |
+
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); }
|
| 356 |
+
|
| 357 |
+
/// <summary>Returns the result of a componentwise bitwise and operation on a uint3x4 matrix and a uint value.</summary>
|
| 358 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 359 |
+
public static uint3x4 operator & (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); }
|
| 360 |
+
|
| 361 |
+
/// <summary>Returns the result of a componentwise bitwise and operation on a uint value and a uint3x4 matrix.</summary>
|
| 362 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 363 |
+
public static uint3x4 operator & (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); }
|
| 364 |
+
|
| 365 |
+
|
| 366 |
+
/// <summary>Returns the result of a componentwise bitwise or operation on two uint3x4 matrices.</summary>
|
| 367 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 368 |
+
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); }
|
| 369 |
+
|
| 370 |
+
/// <summary>Returns the result of a componentwise bitwise or operation on a uint3x4 matrix and a uint value.</summary>
|
| 371 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 372 |
+
public static uint3x4 operator | (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); }
|
| 373 |
+
|
| 374 |
+
/// <summary>Returns the result of a componentwise bitwise or operation on a uint value and a uint3x4 matrix.</summary>
|
| 375 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 376 |
+
public static uint3x4 operator | (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); }
|
| 377 |
+
|
| 378 |
+
|
| 379 |
+
/// <summary>Returns the result of a componentwise bitwise exclusive or operation on two uint3x4 matrices.</summary>
|
| 380 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 381 |
+
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); }
|
| 382 |
+
|
| 383 |
+
/// <summary>Returns the result of a componentwise bitwise exclusive or operation on a uint3x4 matrix and a uint value.</summary>
|
| 384 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 385 |
+
public static uint3x4 operator ^ (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); }
|
| 386 |
+
|
| 387 |
+
/// <summary>Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint3x4 matrix.</summary>
|
| 388 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 389 |
+
public static uint3x4 operator ^ (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); }
|
| 390 |
+
|
| 391 |
+
|
| 392 |
+
|
| 393 |
+
/// <summary>Returns the uint3 element at a specified index.</summary>
|
| 394 |
+
unsafe public ref uint3 this[int index]
|
| 395 |
+
{
|
| 396 |
+
get
|
| 397 |
+
{
|
| 398 |
+
#if ENABLE_UNITY_COLLECTIONS_CHECKS
|
| 399 |
+
if ((uint)index >= 4)
|
| 400 |
+
throw new System.ArgumentException("index must be between[0...3]");
|
| 401 |
+
#endif
|
| 402 |
+
fixed (uint3x4* array = &this) { return ref ((uint3*)array)[index]; }
|
| 403 |
+
}
|
| 404 |
+
}
|
| 405 |
+
|
| 406 |
+
/// <summary>Returns true if the uint3x4 is equal to a given uint3x4, false otherwise.</summary>
|
| 407 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 408 |
+
public bool Equals(uint3x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); }
|
| 409 |
+
|
| 410 |
+
/// <summary>Returns true if the uint3x4 is equal to a given uint3x4, false otherwise.</summary>
|
| 411 |
+
public override bool Equals(object o) { return Equals((uint3x4)o); }
|
| 412 |
+
|
| 413 |
+
|
| 414 |
+
/// <summary>Returns a hash code for the uint3x4.</summary>
|
| 415 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 416 |
+
public override int GetHashCode() { return (int)math.hash(this); }
|
| 417 |
+
|
| 418 |
+
|
| 419 |
+
/// <summary>Returns a string representation of the uint3x4.</summary>
|
| 420 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 421 |
+
public override string ToString()
|
| 422 |
+
{
|
| 423 |
+
return string.Format("uint3x4({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}, {11})", c0.x, c1.x, c2.x, c3.x, c0.y, c1.y, c2.y, c3.y, c0.z, c1.z, c2.z, c3.z);
|
| 424 |
+
}
|
| 425 |
+
|
| 426 |
+
/// <summary>Returns a string representation of the uint3x4 using a specified format and culture-specific format information.</summary>
|
| 427 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 428 |
+
public string ToString(string format, IFormatProvider formatProvider)
|
| 429 |
+
{
|
| 430 |
+
return string.Format("uint3x4({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}, {11})", c0.x.ToString(format, formatProvider), c1.x.ToString(format, formatProvider), c2.x.ToString(format, formatProvider), c3.x.ToString(format, formatProvider), c0.y.ToString(format, formatProvider), c1.y.ToString(format, formatProvider), c2.y.ToString(format, formatProvider), c3.y.ToString(format, formatProvider), c0.z.ToString(format, formatProvider), c1.z.ToString(format, formatProvider), c2.z.ToString(format, formatProvider), c3.z.ToString(format, formatProvider));
|
| 431 |
+
}
|
| 432 |
+
|
| 433 |
+
}
|
| 434 |
+
|
| 435 |
+
public static partial class math
|
| 436 |
+
{
|
| 437 |
+
/// <summary>Returns a uint3x4 matrix constructed from four uint3 vectors.</summary>
|
| 438 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 439 |
+
public static uint3x4 uint3x4(uint3 c0, uint3 c1, uint3 c2, uint3 c3) { return new uint3x4(c0, c1, c2, c3); }
|
| 440 |
+
|
| 441 |
+
/// <summary>Returns a uint3x4 matrix constructed from from 12 uint values given in row-major order.</summary>
|
| 442 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 443 |
+
public static uint3x4 uint3x4(uint m00, uint m01, uint m02, uint m03,
|
| 444 |
+
uint m10, uint m11, uint m12, uint m13,
|
| 445 |
+
uint m20, uint m21, uint m22, uint m23)
|
| 446 |
+
{
|
| 447 |
+
return new uint3x4(m00, m01, m02, m03,
|
| 448 |
+
m10, m11, m12, m13,
|
| 449 |
+
m20, m21, m22, m23);
|
| 450 |
+
}
|
| 451 |
+
|
| 452 |
+
/// <summary>Returns a uint3x4 matrix constructed from a single uint value by assigning it to every component.</summary>
|
| 453 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 454 |
+
public static uint3x4 uint3x4(uint v) { return new uint3x4(v); }
|
| 455 |
+
|
| 456 |
+
/// <summary>Returns a uint3x4 matrix constructed from a single bool value by converting it to uint and assigning it to every component.</summary>
|
| 457 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 458 |
+
public static uint3x4 uint3x4(bool v) { return new uint3x4(v); }
|
| 459 |
+
|
| 460 |
+
/// <summary>Return a uint3x4 matrix constructed from a bool3x4 matrix by componentwise conversion.</summary>
|
| 461 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 462 |
+
public static uint3x4 uint3x4(bool3x4 v) { return new uint3x4(v); }
|
| 463 |
+
|
| 464 |
+
/// <summary>Returns a uint3x4 matrix constructed from a single int value by converting it to uint and assigning it to every component.</summary>
|
| 465 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 466 |
+
public static uint3x4 uint3x4(int v) { return new uint3x4(v); }
|
| 467 |
+
|
| 468 |
+
/// <summary>Return a uint3x4 matrix constructed from a int3x4 matrix by componentwise conversion.</summary>
|
| 469 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 470 |
+
public static uint3x4 uint3x4(int3x4 v) { return new uint3x4(v); }
|
| 471 |
+
|
| 472 |
+
/// <summary>Returns a uint3x4 matrix constructed from a single float value by converting it to uint and assigning it to every component.</summary>
|
| 473 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 474 |
+
public static uint3x4 uint3x4(float v) { return new uint3x4(v); }
|
| 475 |
+
|
| 476 |
+
/// <summary>Return a uint3x4 matrix constructed from a float3x4 matrix by componentwise conversion.</summary>
|
| 477 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 478 |
+
public static uint3x4 uint3x4(float3x4 v) { return new uint3x4(v); }
|
| 479 |
+
|
| 480 |
+
/// <summary>Returns a uint3x4 matrix constructed from a single double value by converting it to uint and assigning it to every component.</summary>
|
| 481 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 482 |
+
public static uint3x4 uint3x4(double v) { return new uint3x4(v); }
|
| 483 |
+
|
| 484 |
+
/// <summary>Return a uint3x4 matrix constructed from a double3x4 matrix by componentwise conversion.</summary>
|
| 485 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 486 |
+
public static uint3x4 uint3x4(double3x4 v) { return new uint3x4(v); }
|
| 487 |
+
|
| 488 |
+
/// <summary>Return the uint4x3 transpose of a uint3x4 matrix.</summary>
|
| 489 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 490 |
+
public static uint4x3 transpose(uint3x4 v)
|
| 491 |
+
{
|
| 492 |
+
return uint4x3(
|
| 493 |
+
v.c0.x, v.c0.y, v.c0.z,
|
| 494 |
+
v.c1.x, v.c1.y, v.c1.z,
|
| 495 |
+
v.c2.x, v.c2.y, v.c2.z,
|
| 496 |
+
v.c3.x, v.c3.y, v.c3.z);
|
| 497 |
+
}
|
| 498 |
+
|
| 499 |
+
/// <summary>Returns a uint hash code of a uint3x4 vector.</summary>
|
| 500 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 501 |
+
public static uint hash(uint3x4 v)
|
| 502 |
+
{
|
| 503 |
+
return csum(v.c0 * uint3(0xD1224537u, 0xE99ED6F3u, 0x48125549u) +
|
| 504 |
+
v.c1 * uint3(0xEEE2123Bu, 0xE3AD9FE5u, 0xCE1CF8BFu) +
|
| 505 |
+
v.c2 * uint3(0x7BE39F3Bu, 0xFAB9913Fu, 0xB4501269u) +
|
| 506 |
+
v.c3 * uint3(0xE04B89FDu, 0xDB3DE101u, 0x7B6D1B4Bu)) + 0x58399E77u;
|
| 507 |
+
}
|
| 508 |
+
|
| 509 |
+
/// <summary>
|
| 510 |
+
/// Returns a uint3 vector hash code of a uint3x4 vector.
|
| 511 |
+
/// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash
|
| 512 |
+
/// that are only reduced to a narrow uint hash at the very end instead of at every step.
|
| 513 |
+
/// </summary>
|
| 514 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 515 |
+
public static uint3 hashwide(uint3x4 v)
|
| 516 |
+
{
|
| 517 |
+
return (v.c0 * uint3(0x5EAC29C9u, 0xFC6014F9u, 0x6BF6693Fu) +
|
| 518 |
+
v.c1 * uint3(0x9D1B1D9Bu, 0xF842F5C1u, 0xA47EC335u) +
|
| 519 |
+
v.c2 * uint3(0xA477DF57u, 0xC4B1493Fu, 0xBA0966D3u) +
|
| 520 |
+
v.c3 * uint3(0xAFBEE253u, 0x5B419C01u, 0x515D90F5u)) + 0xEC9F68F3u;
|
| 521 |
+
}
|
| 522 |
+
|
| 523 |
+
}
|
| 524 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint3x4.gen.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: b26cb334c782240eb950a56e23e0378c
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint4.gen.cs
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint4.gen.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 9fdee5e687d86ef488fb8ebda7eb849b
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint4x2.gen.cs
ADDED
|
@@ -0,0 +1,497 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//------------------------------------------------------------------------------
|
| 2 |
+
// <auto-generated>
|
| 3 |
+
// This code was generated by a tool.
|
| 4 |
+
//
|
| 5 |
+
// Changes to this file may cause incorrect behavior and will be lost if
|
| 6 |
+
// the code is regenerated.
|
| 7 |
+
// </auto-generated>
|
| 8 |
+
//------------------------------------------------------------------------------
|
| 9 |
+
using System;
|
| 10 |
+
using System.Runtime.CompilerServices;
|
| 11 |
+
|
| 12 |
+
#pragma warning disable 0660, 0661
|
| 13 |
+
|
| 14 |
+
namespace Unity.Mathematics
|
| 15 |
+
{
|
| 16 |
+
[System.Serializable]
|
| 17 |
+
public partial struct uint4x2 : System.IEquatable<uint4x2>, IFormattable
|
| 18 |
+
{
|
| 19 |
+
public uint4 c0;
|
| 20 |
+
public uint4 c1;
|
| 21 |
+
|
| 22 |
+
/// <summary>uint4x2 zero value.</summary>
|
| 23 |
+
public static readonly uint4x2 zero;
|
| 24 |
+
|
| 25 |
+
/// <summary>Constructs a uint4x2 matrix from two uint4 vectors.</summary>
|
| 26 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 27 |
+
public uint4x2(uint4 c0, uint4 c1)
|
| 28 |
+
{
|
| 29 |
+
this.c0 = c0;
|
| 30 |
+
this.c1 = c1;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
/// <summary>Constructs a uint4x2 matrix from 8 uint values given in row-major order.</summary>
|
| 34 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 35 |
+
public uint4x2(uint m00, uint m01,
|
| 36 |
+
uint m10, uint m11,
|
| 37 |
+
uint m20, uint m21,
|
| 38 |
+
uint m30, uint m31)
|
| 39 |
+
{
|
| 40 |
+
this.c0 = new uint4(m00, m10, m20, m30);
|
| 41 |
+
this.c1 = new uint4(m01, m11, m21, m31);
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
/// <summary>Constructs a uint4x2 matrix from a single uint value by assigning it to every component.</summary>
|
| 45 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 46 |
+
public uint4x2(uint v)
|
| 47 |
+
{
|
| 48 |
+
this.c0 = v;
|
| 49 |
+
this.c1 = v;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
/// <summary>Constructs a uint4x2 matrix from a single bool value by converting it to uint and assigning it to every component.</summary>
|
| 53 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 54 |
+
public uint4x2(bool v)
|
| 55 |
+
{
|
| 56 |
+
this.c0 = math.select(new uint4(0u), new uint4(1u), v);
|
| 57 |
+
this.c1 = math.select(new uint4(0u), new uint4(1u), v);
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
/// <summary>Constructs a uint4x2 matrix from a bool4x2 matrix by componentwise conversion.</summary>
|
| 61 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 62 |
+
public uint4x2(bool4x2 v)
|
| 63 |
+
{
|
| 64 |
+
this.c0 = math.select(new uint4(0u), new uint4(1u), v.c0);
|
| 65 |
+
this.c1 = math.select(new uint4(0u), new uint4(1u), v.c1);
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
/// <summary>Constructs a uint4x2 matrix from a single int value by converting it to uint and assigning it to every component.</summary>
|
| 69 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 70 |
+
public uint4x2(int v)
|
| 71 |
+
{
|
| 72 |
+
this.c0 = (uint4)v;
|
| 73 |
+
this.c1 = (uint4)v;
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
/// <summary>Constructs a uint4x2 matrix from a int4x2 matrix by componentwise conversion.</summary>
|
| 77 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 78 |
+
public uint4x2(int4x2 v)
|
| 79 |
+
{
|
| 80 |
+
this.c0 = (uint4)v.c0;
|
| 81 |
+
this.c1 = (uint4)v.c1;
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
/// <summary>Constructs a uint4x2 matrix from a single float value by converting it to uint and assigning it to every component.</summary>
|
| 85 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 86 |
+
public uint4x2(float v)
|
| 87 |
+
{
|
| 88 |
+
this.c0 = (uint4)v;
|
| 89 |
+
this.c1 = (uint4)v;
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
/// <summary>Constructs a uint4x2 matrix from a float4x2 matrix by componentwise conversion.</summary>
|
| 93 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 94 |
+
public uint4x2(float4x2 v)
|
| 95 |
+
{
|
| 96 |
+
this.c0 = (uint4)v.c0;
|
| 97 |
+
this.c1 = (uint4)v.c1;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
/// <summary>Constructs a uint4x2 matrix from a single double value by converting it to uint and assigning it to every component.</summary>
|
| 101 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 102 |
+
public uint4x2(double v)
|
| 103 |
+
{
|
| 104 |
+
this.c0 = (uint4)v;
|
| 105 |
+
this.c1 = (uint4)v;
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
/// <summary>Constructs a uint4x2 matrix from a double4x2 matrix by componentwise conversion.</summary>
|
| 109 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 110 |
+
public uint4x2(double4x2 v)
|
| 111 |
+
{
|
| 112 |
+
this.c0 = (uint4)v.c0;
|
| 113 |
+
this.c1 = (uint4)v.c1;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
/// <summary>Implicitly converts a single uint value to a uint4x2 matrix by assigning it to every component.</summary>
|
| 118 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 119 |
+
public static implicit operator uint4x2(uint v) { return new uint4x2(v); }
|
| 120 |
+
|
| 121 |
+
/// <summary>Explicitly converts a single bool value to a uint4x2 matrix by converting it to uint and assigning it to every component.</summary>
|
| 122 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 123 |
+
public static explicit operator uint4x2(bool v) { return new uint4x2(v); }
|
| 124 |
+
|
| 125 |
+
/// <summary>Explicitly converts a bool4x2 matrix to a uint4x2 matrix by componentwise conversion.</summary>
|
| 126 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 127 |
+
public static explicit operator uint4x2(bool4x2 v) { return new uint4x2(v); }
|
| 128 |
+
|
| 129 |
+
/// <summary>Explicitly converts a single int value to a uint4x2 matrix by converting it to uint and assigning it to every component.</summary>
|
| 130 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 131 |
+
public static explicit operator uint4x2(int v) { return new uint4x2(v); }
|
| 132 |
+
|
| 133 |
+
/// <summary>Explicitly converts a int4x2 matrix to a uint4x2 matrix by componentwise conversion.</summary>
|
| 134 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 135 |
+
public static explicit operator uint4x2(int4x2 v) { return new uint4x2(v); }
|
| 136 |
+
|
| 137 |
+
/// <summary>Explicitly converts a single float value to a uint4x2 matrix by converting it to uint and assigning it to every component.</summary>
|
| 138 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 139 |
+
public static explicit operator uint4x2(float v) { return new uint4x2(v); }
|
| 140 |
+
|
| 141 |
+
/// <summary>Explicitly converts a float4x2 matrix to a uint4x2 matrix by componentwise conversion.</summary>
|
| 142 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 143 |
+
public static explicit operator uint4x2(float4x2 v) { return new uint4x2(v); }
|
| 144 |
+
|
| 145 |
+
/// <summary>Explicitly converts a single double value to a uint4x2 matrix by converting it to uint and assigning it to every component.</summary>
|
| 146 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 147 |
+
public static explicit operator uint4x2(double v) { return new uint4x2(v); }
|
| 148 |
+
|
| 149 |
+
/// <summary>Explicitly converts a double4x2 matrix to a uint4x2 matrix by componentwise conversion.</summary>
|
| 150 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 151 |
+
public static explicit operator uint4x2(double4x2 v) { return new uint4x2(v); }
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
/// <summary>Returns the result of a componentwise multiplication operation on two uint4x2 matrices.</summary>
|
| 155 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 156 |
+
public static uint4x2 operator * (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); }
|
| 157 |
+
|
| 158 |
+
/// <summary>Returns the result of a componentwise multiplication operation on a uint4x2 matrix and a uint value.</summary>
|
| 159 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 160 |
+
public static uint4x2 operator * (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 * rhs, lhs.c1 * rhs); }
|
| 161 |
+
|
| 162 |
+
/// <summary>Returns the result of a componentwise multiplication operation on a uint value and a uint4x2 matrix.</summary>
|
| 163 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 164 |
+
public static uint4x2 operator * (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs * rhs.c0, lhs * rhs.c1); }
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
/// <summary>Returns the result of a componentwise addition operation on two uint4x2 matrices.</summary>
|
| 168 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 169 |
+
public static uint4x2 operator + (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); }
|
| 170 |
+
|
| 171 |
+
/// <summary>Returns the result of a componentwise addition operation on a uint4x2 matrix and a uint value.</summary>
|
| 172 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 173 |
+
public static uint4x2 operator + (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 + rhs, lhs.c1 + rhs); }
|
| 174 |
+
|
| 175 |
+
/// <summary>Returns the result of a componentwise addition operation on a uint value and a uint4x2 matrix.</summary>
|
| 176 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 177 |
+
public static uint4x2 operator + (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs + rhs.c0, lhs + rhs.c1); }
|
| 178 |
+
|
| 179 |
+
|
| 180 |
+
/// <summary>Returns the result of a componentwise subtraction operation on two uint4x2 matrices.</summary>
|
| 181 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 182 |
+
public static uint4x2 operator - (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); }
|
| 183 |
+
|
| 184 |
+
/// <summary>Returns the result of a componentwise subtraction operation on a uint4x2 matrix and a uint value.</summary>
|
| 185 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 186 |
+
public static uint4x2 operator - (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 - rhs, lhs.c1 - rhs); }
|
| 187 |
+
|
| 188 |
+
/// <summary>Returns the result of a componentwise subtraction operation on a uint value and a uint4x2 matrix.</summary>
|
| 189 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 190 |
+
public static uint4x2 operator - (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs - rhs.c0, lhs - rhs.c1); }
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
/// <summary>Returns the result of a componentwise division operation on two uint4x2 matrices.</summary>
|
| 194 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 195 |
+
public static uint4x2 operator / (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); }
|
| 196 |
+
|
| 197 |
+
/// <summary>Returns the result of a componentwise division operation on a uint4x2 matrix and a uint value.</summary>
|
| 198 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 199 |
+
public static uint4x2 operator / (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 / rhs, lhs.c1 / rhs); }
|
| 200 |
+
|
| 201 |
+
/// <summary>Returns the result of a componentwise division operation on a uint value and a uint4x2 matrix.</summary>
|
| 202 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 203 |
+
public static uint4x2 operator / (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs / rhs.c0, lhs / rhs.c1); }
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
/// <summary>Returns the result of a componentwise modulus operation on two uint4x2 matrices.</summary>
|
| 207 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 208 |
+
public static uint4x2 operator % (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); }
|
| 209 |
+
|
| 210 |
+
/// <summary>Returns the result of a componentwise modulus operation on a uint4x2 matrix and a uint value.</summary>
|
| 211 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 212 |
+
public static uint4x2 operator % (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 % rhs, lhs.c1 % rhs); }
|
| 213 |
+
|
| 214 |
+
/// <summary>Returns the result of a componentwise modulus operation on a uint value and a uint4x2 matrix.</summary>
|
| 215 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 216 |
+
public static uint4x2 operator % (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs % rhs.c0, lhs % rhs.c1); }
|
| 217 |
+
|
| 218 |
+
|
| 219 |
+
/// <summary>Returns the result of a componentwise increment operation on a uint4x2 matrix.</summary>
|
| 220 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 221 |
+
public static uint4x2 operator ++ (uint4x2 val) { return new uint4x2 (++val.c0, ++val.c1); }
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
/// <summary>Returns the result of a componentwise decrement operation on a uint4x2 matrix.</summary>
|
| 225 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 226 |
+
public static uint4x2 operator -- (uint4x2 val) { return new uint4x2 (--val.c0, --val.c1); }
|
| 227 |
+
|
| 228 |
+
|
| 229 |
+
/// <summary>Returns the result of a componentwise less than operation on two uint4x2 matrices.</summary>
|
| 230 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 231 |
+
public static bool4x2 operator < (uint4x2 lhs, uint4x2 rhs) { return new bool4x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); }
|
| 232 |
+
|
| 233 |
+
/// <summary>Returns the result of a componentwise less than operation on a uint4x2 matrix and a uint value.</summary>
|
| 234 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 235 |
+
public static bool4x2 operator < (uint4x2 lhs, uint rhs) { return new bool4x2 (lhs.c0 < rhs, lhs.c1 < rhs); }
|
| 236 |
+
|
| 237 |
+
/// <summary>Returns the result of a componentwise less than operation on a uint value and a uint4x2 matrix.</summary>
|
| 238 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 239 |
+
public static bool4x2 operator < (uint lhs, uint4x2 rhs) { return new bool4x2 (lhs < rhs.c0, lhs < rhs.c1); }
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
/// <summary>Returns the result of a componentwise less or equal operation on two uint4x2 matrices.</summary>
|
| 243 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 244 |
+
public static bool4x2 operator <= (uint4x2 lhs, uint4x2 rhs) { return new bool4x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); }
|
| 245 |
+
|
| 246 |
+
/// <summary>Returns the result of a componentwise less or equal operation on a uint4x2 matrix and a uint value.</summary>
|
| 247 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 248 |
+
public static bool4x2 operator <= (uint4x2 lhs, uint rhs) { return new bool4x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); }
|
| 249 |
+
|
| 250 |
+
/// <summary>Returns the result of a componentwise less or equal operation on a uint value and a uint4x2 matrix.</summary>
|
| 251 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 252 |
+
public static bool4x2 operator <= (uint lhs, uint4x2 rhs) { return new bool4x2 (lhs <= rhs.c0, lhs <= rhs.c1); }
|
| 253 |
+
|
| 254 |
+
|
| 255 |
+
/// <summary>Returns the result of a componentwise greater than operation on two uint4x2 matrices.</summary>
|
| 256 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 257 |
+
public static bool4x2 operator > (uint4x2 lhs, uint4x2 rhs) { return new bool4x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); }
|
| 258 |
+
|
| 259 |
+
/// <summary>Returns the result of a componentwise greater than operation on a uint4x2 matrix and a uint value.</summary>
|
| 260 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 261 |
+
public static bool4x2 operator > (uint4x2 lhs, uint rhs) { return new bool4x2 (lhs.c0 > rhs, lhs.c1 > rhs); }
|
| 262 |
+
|
| 263 |
+
/// <summary>Returns the result of a componentwise greater than operation on a uint value and a uint4x2 matrix.</summary>
|
| 264 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 265 |
+
public static bool4x2 operator > (uint lhs, uint4x2 rhs) { return new bool4x2 (lhs > rhs.c0, lhs > rhs.c1); }
|
| 266 |
+
|
| 267 |
+
|
| 268 |
+
/// <summary>Returns the result of a componentwise greater or equal operation on two uint4x2 matrices.</summary>
|
| 269 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 270 |
+
public static bool4x2 operator >= (uint4x2 lhs, uint4x2 rhs) { return new bool4x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); }
|
| 271 |
+
|
| 272 |
+
/// <summary>Returns the result of a componentwise greater or equal operation on a uint4x2 matrix and a uint value.</summary>
|
| 273 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 274 |
+
public static bool4x2 operator >= (uint4x2 lhs, uint rhs) { return new bool4x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); }
|
| 275 |
+
|
| 276 |
+
/// <summary>Returns the result of a componentwise greater or equal operation on a uint value and a uint4x2 matrix.</summary>
|
| 277 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 278 |
+
public static bool4x2 operator >= (uint lhs, uint4x2 rhs) { return new bool4x2 (lhs >= rhs.c0, lhs >= rhs.c1); }
|
| 279 |
+
|
| 280 |
+
|
| 281 |
+
/// <summary>Returns the result of a componentwise unary minus operation on a uint4x2 matrix.</summary>
|
| 282 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 283 |
+
public static uint4x2 operator - (uint4x2 val) { return new uint4x2 (-val.c0, -val.c1); }
|
| 284 |
+
|
| 285 |
+
|
| 286 |
+
/// <summary>Returns the result of a componentwise unary plus operation on a uint4x2 matrix.</summary>
|
| 287 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 288 |
+
public static uint4x2 operator + (uint4x2 val) { return new uint4x2 (+val.c0, +val.c1); }
|
| 289 |
+
|
| 290 |
+
|
| 291 |
+
/// <summary>Returns the result of a componentwise left shift operation on a uint4x2 matrix by a number of bits specified by a single int.</summary>
|
| 292 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 293 |
+
public static uint4x2 operator << (uint4x2 x, int n) { return new uint4x2 (x.c0 << n, x.c1 << n); }
|
| 294 |
+
|
| 295 |
+
/// <summary>Returns the result of a componentwise right shift operation on a uint4x2 matrix by a number of bits specified by a single int.</summary>
|
| 296 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 297 |
+
public static uint4x2 operator >> (uint4x2 x, int n) { return new uint4x2 (x.c0 >> n, x.c1 >> n); }
|
| 298 |
+
|
| 299 |
+
/// <summary>Returns the result of a componentwise equality operation on two uint4x2 matrices.</summary>
|
| 300 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 301 |
+
public static bool4x2 operator == (uint4x2 lhs, uint4x2 rhs) { return new bool4x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); }
|
| 302 |
+
|
| 303 |
+
/// <summary>Returns the result of a componentwise equality operation on a uint4x2 matrix and a uint value.</summary>
|
| 304 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 305 |
+
public static bool4x2 operator == (uint4x2 lhs, uint rhs) { return new bool4x2 (lhs.c0 == rhs, lhs.c1 == rhs); }
|
| 306 |
+
|
| 307 |
+
/// <summary>Returns the result of a componentwise equality operation on a uint value and a uint4x2 matrix.</summary>
|
| 308 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 309 |
+
public static bool4x2 operator == (uint lhs, uint4x2 rhs) { return new bool4x2 (lhs == rhs.c0, lhs == rhs.c1); }
|
| 310 |
+
|
| 311 |
+
|
| 312 |
+
/// <summary>Returns the result of a componentwise not equal operation on two uint4x2 matrices.</summary>
|
| 313 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 314 |
+
public static bool4x2 operator != (uint4x2 lhs, uint4x2 rhs) { return new bool4x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); }
|
| 315 |
+
|
| 316 |
+
/// <summary>Returns the result of a componentwise not equal operation on a uint4x2 matrix and a uint value.</summary>
|
| 317 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 318 |
+
public static bool4x2 operator != (uint4x2 lhs, uint rhs) { return new bool4x2 (lhs.c0 != rhs, lhs.c1 != rhs); }
|
| 319 |
+
|
| 320 |
+
/// <summary>Returns the result of a componentwise not equal operation on a uint value and a uint4x2 matrix.</summary>
|
| 321 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 322 |
+
public static bool4x2 operator != (uint lhs, uint4x2 rhs) { return new bool4x2 (lhs != rhs.c0, lhs != rhs.c1); }
|
| 323 |
+
|
| 324 |
+
|
| 325 |
+
/// <summary>Returns the result of a componentwise bitwise not operation on a uint4x2 matrix.</summary>
|
| 326 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 327 |
+
public static uint4x2 operator ~ (uint4x2 val) { return new uint4x2 (~val.c0, ~val.c1); }
|
| 328 |
+
|
| 329 |
+
|
| 330 |
+
/// <summary>Returns the result of a componentwise bitwise and operation on two uint4x2 matrices.</summary>
|
| 331 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 332 |
+
public static uint4x2 operator & (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); }
|
| 333 |
+
|
| 334 |
+
/// <summary>Returns the result of a componentwise bitwise and operation on a uint4x2 matrix and a uint value.</summary>
|
| 335 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 336 |
+
public static uint4x2 operator & (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 & rhs, lhs.c1 & rhs); }
|
| 337 |
+
|
| 338 |
+
/// <summary>Returns the result of a componentwise bitwise and operation on a uint value and a uint4x2 matrix.</summary>
|
| 339 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 340 |
+
public static uint4x2 operator & (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs & rhs.c0, lhs & rhs.c1); }
|
| 341 |
+
|
| 342 |
+
|
| 343 |
+
/// <summary>Returns the result of a componentwise bitwise or operation on two uint4x2 matrices.</summary>
|
| 344 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 345 |
+
public static uint4x2 operator | (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); }
|
| 346 |
+
|
| 347 |
+
/// <summary>Returns the result of a componentwise bitwise or operation on a uint4x2 matrix and a uint value.</summary>
|
| 348 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 349 |
+
public static uint4x2 operator | (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 | rhs, lhs.c1 | rhs); }
|
| 350 |
+
|
| 351 |
+
/// <summary>Returns the result of a componentwise bitwise or operation on a uint value and a uint4x2 matrix.</summary>
|
| 352 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 353 |
+
public static uint4x2 operator | (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs | rhs.c0, lhs | rhs.c1); }
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
/// <summary>Returns the result of a componentwise bitwise exclusive or operation on two uint4x2 matrices.</summary>
|
| 357 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 358 |
+
public static uint4x2 operator ^ (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); }
|
| 359 |
+
|
| 360 |
+
/// <summary>Returns the result of a componentwise bitwise exclusive or operation on a uint4x2 matrix and a uint value.</summary>
|
| 361 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 362 |
+
public static uint4x2 operator ^ (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); }
|
| 363 |
+
|
| 364 |
+
/// <summary>Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint4x2 matrix.</summary>
|
| 365 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 366 |
+
public static uint4x2 operator ^ (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); }
|
| 367 |
+
|
| 368 |
+
|
| 369 |
+
|
| 370 |
+
/// <summary>Returns the uint4 element at a specified index.</summary>
|
| 371 |
+
unsafe public ref uint4 this[int index]
|
| 372 |
+
{
|
| 373 |
+
get
|
| 374 |
+
{
|
| 375 |
+
#if ENABLE_UNITY_COLLECTIONS_CHECKS
|
| 376 |
+
if ((uint)index >= 2)
|
| 377 |
+
throw new System.ArgumentException("index must be between[0...1]");
|
| 378 |
+
#endif
|
| 379 |
+
fixed (uint4x2* array = &this) { return ref ((uint4*)array)[index]; }
|
| 380 |
+
}
|
| 381 |
+
}
|
| 382 |
+
|
| 383 |
+
/// <summary>Returns true if the uint4x2 is equal to a given uint4x2, false otherwise.</summary>
|
| 384 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 385 |
+
public bool Equals(uint4x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); }
|
| 386 |
+
|
| 387 |
+
/// <summary>Returns true if the uint4x2 is equal to a given uint4x2, false otherwise.</summary>
|
| 388 |
+
public override bool Equals(object o) { return Equals((uint4x2)o); }
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
/// <summary>Returns a hash code for the uint4x2.</summary>
|
| 392 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 393 |
+
public override int GetHashCode() { return (int)math.hash(this); }
|
| 394 |
+
|
| 395 |
+
|
| 396 |
+
/// <summary>Returns a string representation of the uint4x2.</summary>
|
| 397 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 398 |
+
public override string ToString()
|
| 399 |
+
{
|
| 400 |
+
return string.Format("uint4x2({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7})", c0.x, c1.x, c0.y, c1.y, c0.z, c1.z, c0.w, c1.w);
|
| 401 |
+
}
|
| 402 |
+
|
| 403 |
+
/// <summary>Returns a string representation of the uint4x2 using a specified format and culture-specific format information.</summary>
|
| 404 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 405 |
+
public string ToString(string format, IFormatProvider formatProvider)
|
| 406 |
+
{
|
| 407 |
+
return string.Format("uint4x2({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7})", c0.x.ToString(format, formatProvider), c1.x.ToString(format, formatProvider), c0.y.ToString(format, formatProvider), c1.y.ToString(format, formatProvider), c0.z.ToString(format, formatProvider), c1.z.ToString(format, formatProvider), c0.w.ToString(format, formatProvider), c1.w.ToString(format, formatProvider));
|
| 408 |
+
}
|
| 409 |
+
|
| 410 |
+
}
|
| 411 |
+
|
| 412 |
+
public static partial class math
|
| 413 |
+
{
|
| 414 |
+
/// <summary>Returns a uint4x2 matrix constructed from two uint4 vectors.</summary>
|
| 415 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 416 |
+
public static uint4x2 uint4x2(uint4 c0, uint4 c1) { return new uint4x2(c0, c1); }
|
| 417 |
+
|
| 418 |
+
/// <summary>Returns a uint4x2 matrix constructed from from 8 uint values given in row-major order.</summary>
|
| 419 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 420 |
+
public static uint4x2 uint4x2(uint m00, uint m01,
|
| 421 |
+
uint m10, uint m11,
|
| 422 |
+
uint m20, uint m21,
|
| 423 |
+
uint m30, uint m31)
|
| 424 |
+
{
|
| 425 |
+
return new uint4x2(m00, m01,
|
| 426 |
+
m10, m11,
|
| 427 |
+
m20, m21,
|
| 428 |
+
m30, m31);
|
| 429 |
+
}
|
| 430 |
+
|
| 431 |
+
/// <summary>Returns a uint4x2 matrix constructed from a single uint value by assigning it to every component.</summary>
|
| 432 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 433 |
+
public static uint4x2 uint4x2(uint v) { return new uint4x2(v); }
|
| 434 |
+
|
| 435 |
+
/// <summary>Returns a uint4x2 matrix constructed from a single bool value by converting it to uint and assigning it to every component.</summary>
|
| 436 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 437 |
+
public static uint4x2 uint4x2(bool v) { return new uint4x2(v); }
|
| 438 |
+
|
| 439 |
+
/// <summary>Return a uint4x2 matrix constructed from a bool4x2 matrix by componentwise conversion.</summary>
|
| 440 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 441 |
+
public static uint4x2 uint4x2(bool4x2 v) { return new uint4x2(v); }
|
| 442 |
+
|
| 443 |
+
/// <summary>Returns a uint4x2 matrix constructed from a single int value by converting it to uint and assigning it to every component.</summary>
|
| 444 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 445 |
+
public static uint4x2 uint4x2(int v) { return new uint4x2(v); }
|
| 446 |
+
|
| 447 |
+
/// <summary>Return a uint4x2 matrix constructed from a int4x2 matrix by componentwise conversion.</summary>
|
| 448 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 449 |
+
public static uint4x2 uint4x2(int4x2 v) { return new uint4x2(v); }
|
| 450 |
+
|
| 451 |
+
/// <summary>Returns a uint4x2 matrix constructed from a single float value by converting it to uint and assigning it to every component.</summary>
|
| 452 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 453 |
+
public static uint4x2 uint4x2(float v) { return new uint4x2(v); }
|
| 454 |
+
|
| 455 |
+
/// <summary>Return a uint4x2 matrix constructed from a float4x2 matrix by componentwise conversion.</summary>
|
| 456 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 457 |
+
public static uint4x2 uint4x2(float4x2 v) { return new uint4x2(v); }
|
| 458 |
+
|
| 459 |
+
/// <summary>Returns a uint4x2 matrix constructed from a single double value by converting it to uint and assigning it to every component.</summary>
|
| 460 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 461 |
+
public static uint4x2 uint4x2(double v) { return new uint4x2(v); }
|
| 462 |
+
|
| 463 |
+
/// <summary>Return a uint4x2 matrix constructed from a double4x2 matrix by componentwise conversion.</summary>
|
| 464 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 465 |
+
public static uint4x2 uint4x2(double4x2 v) { return new uint4x2(v); }
|
| 466 |
+
|
| 467 |
+
/// <summary>Return the uint2x4 transpose of a uint4x2 matrix.</summary>
|
| 468 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 469 |
+
public static uint2x4 transpose(uint4x2 v)
|
| 470 |
+
{
|
| 471 |
+
return uint2x4(
|
| 472 |
+
v.c0.x, v.c0.y, v.c0.z, v.c0.w,
|
| 473 |
+
v.c1.x, v.c1.y, v.c1.z, v.c1.w);
|
| 474 |
+
}
|
| 475 |
+
|
| 476 |
+
/// <summary>Returns a uint hash code of a uint4x2 vector.</summary>
|
| 477 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 478 |
+
public static uint hash(uint4x2 v)
|
| 479 |
+
{
|
| 480 |
+
return csum(v.c0 * uint4(0xFA3A3285u, 0xAD55999Du, 0xDCDD5341u, 0x94DDD769u) +
|
| 481 |
+
v.c1 * uint4(0xA1E92D39u, 0x4583C801u, 0x9536A0F5u, 0xAF816615u)) + 0x9AF8D62Du;
|
| 482 |
+
}
|
| 483 |
+
|
| 484 |
+
/// <summary>
|
| 485 |
+
/// Returns a uint4 vector hash code of a uint4x2 vector.
|
| 486 |
+
/// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash
|
| 487 |
+
/// that are only reduced to a narrow uint hash at the very end instead of at every step.
|
| 488 |
+
/// </summary>
|
| 489 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 490 |
+
public static uint4 hashwide(uint4x2 v)
|
| 491 |
+
{
|
| 492 |
+
return (v.c0 * uint4(0xE3600729u, 0x5F17300Du, 0x670D6809u, 0x7AF32C49u) +
|
| 493 |
+
v.c1 * uint4(0xAE131389u, 0x5D1B165Bu, 0x87096CD7u, 0x4C7F6DD1u)) + 0x4822A3E9u;
|
| 494 |
+
}
|
| 495 |
+
|
| 496 |
+
}
|
| 497 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint4x2.gen.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 793eda612f42a4089bcfd0be1ece0a6d
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint4x3.gen.cs
ADDED
|
@@ -0,0 +1,512 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//------------------------------------------------------------------------------
|
| 2 |
+
// <auto-generated>
|
| 3 |
+
// This code was generated by a tool.
|
| 4 |
+
//
|
| 5 |
+
// Changes to this file may cause incorrect behavior and will be lost if
|
| 6 |
+
// the code is regenerated.
|
| 7 |
+
// </auto-generated>
|
| 8 |
+
//------------------------------------------------------------------------------
|
| 9 |
+
using System;
|
| 10 |
+
using System.Runtime.CompilerServices;
|
| 11 |
+
|
| 12 |
+
#pragma warning disable 0660, 0661
|
| 13 |
+
|
| 14 |
+
namespace Unity.Mathematics
|
| 15 |
+
{
|
| 16 |
+
[System.Serializable]
|
| 17 |
+
public partial struct uint4x3 : System.IEquatable<uint4x3>, IFormattable
|
| 18 |
+
{
|
| 19 |
+
public uint4 c0;
|
| 20 |
+
public uint4 c1;
|
| 21 |
+
public uint4 c2;
|
| 22 |
+
|
| 23 |
+
/// <summary>uint4x3 zero value.</summary>
|
| 24 |
+
public static readonly uint4x3 zero;
|
| 25 |
+
|
| 26 |
+
/// <summary>Constructs a uint4x3 matrix from three uint4 vectors.</summary>
|
| 27 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 28 |
+
public uint4x3(uint4 c0, uint4 c1, uint4 c2)
|
| 29 |
+
{
|
| 30 |
+
this.c0 = c0;
|
| 31 |
+
this.c1 = c1;
|
| 32 |
+
this.c2 = c2;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
/// <summary>Constructs a uint4x3 matrix from 12 uint values given in row-major order.</summary>
|
| 36 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 37 |
+
public uint4x3(uint m00, uint m01, uint m02,
|
| 38 |
+
uint m10, uint m11, uint m12,
|
| 39 |
+
uint m20, uint m21, uint m22,
|
| 40 |
+
uint m30, uint m31, uint m32)
|
| 41 |
+
{
|
| 42 |
+
this.c0 = new uint4(m00, m10, m20, m30);
|
| 43 |
+
this.c1 = new uint4(m01, m11, m21, m31);
|
| 44 |
+
this.c2 = new uint4(m02, m12, m22, m32);
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
/// <summary>Constructs a uint4x3 matrix from a single uint value by assigning it to every component.</summary>
|
| 48 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 49 |
+
public uint4x3(uint v)
|
| 50 |
+
{
|
| 51 |
+
this.c0 = v;
|
| 52 |
+
this.c1 = v;
|
| 53 |
+
this.c2 = v;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
/// <summary>Constructs a uint4x3 matrix from a single bool value by converting it to uint and assigning it to every component.</summary>
|
| 57 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 58 |
+
public uint4x3(bool v)
|
| 59 |
+
{
|
| 60 |
+
this.c0 = math.select(new uint4(0u), new uint4(1u), v);
|
| 61 |
+
this.c1 = math.select(new uint4(0u), new uint4(1u), v);
|
| 62 |
+
this.c2 = math.select(new uint4(0u), new uint4(1u), v);
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
/// <summary>Constructs a uint4x3 matrix from a bool4x3 matrix by componentwise conversion.</summary>
|
| 66 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 67 |
+
public uint4x3(bool4x3 v)
|
| 68 |
+
{
|
| 69 |
+
this.c0 = math.select(new uint4(0u), new uint4(1u), v.c0);
|
| 70 |
+
this.c1 = math.select(new uint4(0u), new uint4(1u), v.c1);
|
| 71 |
+
this.c2 = math.select(new uint4(0u), new uint4(1u), v.c2);
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
/// <summary>Constructs a uint4x3 matrix from a single int value by converting it to uint and assigning it to every component.</summary>
|
| 75 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 76 |
+
public uint4x3(int v)
|
| 77 |
+
{
|
| 78 |
+
this.c0 = (uint4)v;
|
| 79 |
+
this.c1 = (uint4)v;
|
| 80 |
+
this.c2 = (uint4)v;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
/// <summary>Constructs a uint4x3 matrix from a int4x3 matrix by componentwise conversion.</summary>
|
| 84 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 85 |
+
public uint4x3(int4x3 v)
|
| 86 |
+
{
|
| 87 |
+
this.c0 = (uint4)v.c0;
|
| 88 |
+
this.c1 = (uint4)v.c1;
|
| 89 |
+
this.c2 = (uint4)v.c2;
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
/// <summary>Constructs a uint4x3 matrix from a single float value by converting it to uint and assigning it to every component.</summary>
|
| 93 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 94 |
+
public uint4x3(float v)
|
| 95 |
+
{
|
| 96 |
+
this.c0 = (uint4)v;
|
| 97 |
+
this.c1 = (uint4)v;
|
| 98 |
+
this.c2 = (uint4)v;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
/// <summary>Constructs a uint4x3 matrix from a float4x3 matrix by componentwise conversion.</summary>
|
| 102 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 103 |
+
public uint4x3(float4x3 v)
|
| 104 |
+
{
|
| 105 |
+
this.c0 = (uint4)v.c0;
|
| 106 |
+
this.c1 = (uint4)v.c1;
|
| 107 |
+
this.c2 = (uint4)v.c2;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
/// <summary>Constructs a uint4x3 matrix from a single double value by converting it to uint and assigning it to every component.</summary>
|
| 111 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 112 |
+
public uint4x3(double v)
|
| 113 |
+
{
|
| 114 |
+
this.c0 = (uint4)v;
|
| 115 |
+
this.c1 = (uint4)v;
|
| 116 |
+
this.c2 = (uint4)v;
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
/// <summary>Constructs a uint4x3 matrix from a double4x3 matrix by componentwise conversion.</summary>
|
| 120 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 121 |
+
public uint4x3(double4x3 v)
|
| 122 |
+
{
|
| 123 |
+
this.c0 = (uint4)v.c0;
|
| 124 |
+
this.c1 = (uint4)v.c1;
|
| 125 |
+
this.c2 = (uint4)v.c2;
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
/// <summary>Implicitly converts a single uint value to a uint4x3 matrix by assigning it to every component.</summary>
|
| 130 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 131 |
+
public static implicit operator uint4x3(uint v) { return new uint4x3(v); }
|
| 132 |
+
|
| 133 |
+
/// <summary>Explicitly converts a single bool value to a uint4x3 matrix by converting it to uint and assigning it to every component.</summary>
|
| 134 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 135 |
+
public static explicit operator uint4x3(bool v) { return new uint4x3(v); }
|
| 136 |
+
|
| 137 |
+
/// <summary>Explicitly converts a bool4x3 matrix to a uint4x3 matrix by componentwise conversion.</summary>
|
| 138 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 139 |
+
public static explicit operator uint4x3(bool4x3 v) { return new uint4x3(v); }
|
| 140 |
+
|
| 141 |
+
/// <summary>Explicitly converts a single int value to a uint4x3 matrix by converting it to uint and assigning it to every component.</summary>
|
| 142 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 143 |
+
public static explicit operator uint4x3(int v) { return new uint4x3(v); }
|
| 144 |
+
|
| 145 |
+
/// <summary>Explicitly converts a int4x3 matrix to a uint4x3 matrix by componentwise conversion.</summary>
|
| 146 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 147 |
+
public static explicit operator uint4x3(int4x3 v) { return new uint4x3(v); }
|
| 148 |
+
|
| 149 |
+
/// <summary>Explicitly converts a single float value to a uint4x3 matrix by converting it to uint and assigning it to every component.</summary>
|
| 150 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 151 |
+
public static explicit operator uint4x3(float v) { return new uint4x3(v); }
|
| 152 |
+
|
| 153 |
+
/// <summary>Explicitly converts a float4x3 matrix to a uint4x3 matrix by componentwise conversion.</summary>
|
| 154 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 155 |
+
public static explicit operator uint4x3(float4x3 v) { return new uint4x3(v); }
|
| 156 |
+
|
| 157 |
+
/// <summary>Explicitly converts a single double value to a uint4x3 matrix by converting it to uint and assigning it to every component.</summary>
|
| 158 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 159 |
+
public static explicit operator uint4x3(double v) { return new uint4x3(v); }
|
| 160 |
+
|
| 161 |
+
/// <summary>Explicitly converts a double4x3 matrix to a uint4x3 matrix by componentwise conversion.</summary>
|
| 162 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 163 |
+
public static explicit operator uint4x3(double4x3 v) { return new uint4x3(v); }
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
/// <summary>Returns the result of a componentwise multiplication operation on two uint4x3 matrices.</summary>
|
| 167 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 168 |
+
public static uint4x3 operator * (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); }
|
| 169 |
+
|
| 170 |
+
/// <summary>Returns the result of a componentwise multiplication operation on a uint4x3 matrix and a uint value.</summary>
|
| 171 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 172 |
+
public static uint4x3 operator * (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); }
|
| 173 |
+
|
| 174 |
+
/// <summary>Returns the result of a componentwise multiplication operation on a uint value and a uint4x3 matrix.</summary>
|
| 175 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 176 |
+
public static uint4x3 operator * (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); }
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
/// <summary>Returns the result of a componentwise addition operation on two uint4x3 matrices.</summary>
|
| 180 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 181 |
+
public static uint4x3 operator + (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); }
|
| 182 |
+
|
| 183 |
+
/// <summary>Returns the result of a componentwise addition operation on a uint4x3 matrix and a uint value.</summary>
|
| 184 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 185 |
+
public static uint4x3 operator + (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); }
|
| 186 |
+
|
| 187 |
+
/// <summary>Returns the result of a componentwise addition operation on a uint value and a uint4x3 matrix.</summary>
|
| 188 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 189 |
+
public static uint4x3 operator + (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); }
|
| 190 |
+
|
| 191 |
+
|
| 192 |
+
/// <summary>Returns the result of a componentwise subtraction operation on two uint4x3 matrices.</summary>
|
| 193 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 194 |
+
public static uint4x3 operator - (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); }
|
| 195 |
+
|
| 196 |
+
/// <summary>Returns the result of a componentwise subtraction operation on a uint4x3 matrix and a uint value.</summary>
|
| 197 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 198 |
+
public static uint4x3 operator - (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); }
|
| 199 |
+
|
| 200 |
+
/// <summary>Returns the result of a componentwise subtraction operation on a uint value and a uint4x3 matrix.</summary>
|
| 201 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 202 |
+
public static uint4x3 operator - (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); }
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
/// <summary>Returns the result of a componentwise division operation on two uint4x3 matrices.</summary>
|
| 206 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 207 |
+
public static uint4x3 operator / (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); }
|
| 208 |
+
|
| 209 |
+
/// <summary>Returns the result of a componentwise division operation on a uint4x3 matrix and a uint value.</summary>
|
| 210 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 211 |
+
public static uint4x3 operator / (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); }
|
| 212 |
+
|
| 213 |
+
/// <summary>Returns the result of a componentwise division operation on a uint value and a uint4x3 matrix.</summary>
|
| 214 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 215 |
+
public static uint4x3 operator / (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); }
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
/// <summary>Returns the result of a componentwise modulus operation on two uint4x3 matrices.</summary>
|
| 219 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 220 |
+
public static uint4x3 operator % (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); }
|
| 221 |
+
|
| 222 |
+
/// <summary>Returns the result of a componentwise modulus operation on a uint4x3 matrix and a uint value.</summary>
|
| 223 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 224 |
+
public static uint4x3 operator % (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); }
|
| 225 |
+
|
| 226 |
+
/// <summary>Returns the result of a componentwise modulus operation on a uint value and a uint4x3 matrix.</summary>
|
| 227 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 228 |
+
public static uint4x3 operator % (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); }
|
| 229 |
+
|
| 230 |
+
|
| 231 |
+
/// <summary>Returns the result of a componentwise increment operation on a uint4x3 matrix.</summary>
|
| 232 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 233 |
+
public static uint4x3 operator ++ (uint4x3 val) { return new uint4x3 (++val.c0, ++val.c1, ++val.c2); }
|
| 234 |
+
|
| 235 |
+
|
| 236 |
+
/// <summary>Returns the result of a componentwise decrement operation on a uint4x3 matrix.</summary>
|
| 237 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 238 |
+
public static uint4x3 operator -- (uint4x3 val) { return new uint4x3 (--val.c0, --val.c1, --val.c2); }
|
| 239 |
+
|
| 240 |
+
|
| 241 |
+
/// <summary>Returns the result of a componentwise less than operation on two uint4x3 matrices.</summary>
|
| 242 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 243 |
+
public static bool4x3 operator < (uint4x3 lhs, uint4x3 rhs) { return new bool4x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); }
|
| 244 |
+
|
| 245 |
+
/// <summary>Returns the result of a componentwise less than operation on a uint4x3 matrix and a uint value.</summary>
|
| 246 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 247 |
+
public static bool4x3 operator < (uint4x3 lhs, uint rhs) { return new bool4x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); }
|
| 248 |
+
|
| 249 |
+
/// <summary>Returns the result of a componentwise less than operation on a uint value and a uint4x3 matrix.</summary>
|
| 250 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 251 |
+
public static bool4x3 operator < (uint lhs, uint4x3 rhs) { return new bool4x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); }
|
| 252 |
+
|
| 253 |
+
|
| 254 |
+
/// <summary>Returns the result of a componentwise less or equal operation on two uint4x3 matrices.</summary>
|
| 255 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 256 |
+
public static bool4x3 operator <= (uint4x3 lhs, uint4x3 rhs) { return new bool4x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); }
|
| 257 |
+
|
| 258 |
+
/// <summary>Returns the result of a componentwise less or equal operation on a uint4x3 matrix and a uint value.</summary>
|
| 259 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 260 |
+
public static bool4x3 operator <= (uint4x3 lhs, uint rhs) { return new bool4x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); }
|
| 261 |
+
|
| 262 |
+
/// <summary>Returns the result of a componentwise less or equal operation on a uint value and a uint4x3 matrix.</summary>
|
| 263 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 264 |
+
public static bool4x3 operator <= (uint lhs, uint4x3 rhs) { return new bool4x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); }
|
| 265 |
+
|
| 266 |
+
|
| 267 |
+
/// <summary>Returns the result of a componentwise greater than operation on two uint4x3 matrices.</summary>
|
| 268 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 269 |
+
public static bool4x3 operator > (uint4x3 lhs, uint4x3 rhs) { return new bool4x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); }
|
| 270 |
+
|
| 271 |
+
/// <summary>Returns the result of a componentwise greater than operation on a uint4x3 matrix and a uint value.</summary>
|
| 272 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 273 |
+
public static bool4x3 operator > (uint4x3 lhs, uint rhs) { return new bool4x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); }
|
| 274 |
+
|
| 275 |
+
/// <summary>Returns the result of a componentwise greater than operation on a uint value and a uint4x3 matrix.</summary>
|
| 276 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 277 |
+
public static bool4x3 operator > (uint lhs, uint4x3 rhs) { return new bool4x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); }
|
| 278 |
+
|
| 279 |
+
|
| 280 |
+
/// <summary>Returns the result of a componentwise greater or equal operation on two uint4x3 matrices.</summary>
|
| 281 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 282 |
+
public static bool4x3 operator >= (uint4x3 lhs, uint4x3 rhs) { return new bool4x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); }
|
| 283 |
+
|
| 284 |
+
/// <summary>Returns the result of a componentwise greater or equal operation on a uint4x3 matrix and a uint value.</summary>
|
| 285 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 286 |
+
public static bool4x3 operator >= (uint4x3 lhs, uint rhs) { return new bool4x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); }
|
| 287 |
+
|
| 288 |
+
/// <summary>Returns the result of a componentwise greater or equal operation on a uint value and a uint4x3 matrix.</summary>
|
| 289 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 290 |
+
public static bool4x3 operator >= (uint lhs, uint4x3 rhs) { return new bool4x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); }
|
| 291 |
+
|
| 292 |
+
|
| 293 |
+
/// <summary>Returns the result of a componentwise unary minus operation on a uint4x3 matrix.</summary>
|
| 294 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 295 |
+
public static uint4x3 operator - (uint4x3 val) { return new uint4x3 (-val.c0, -val.c1, -val.c2); }
|
| 296 |
+
|
| 297 |
+
|
| 298 |
+
/// <summary>Returns the result of a componentwise unary plus operation on a uint4x3 matrix.</summary>
|
| 299 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 300 |
+
public static uint4x3 operator + (uint4x3 val) { return new uint4x3 (+val.c0, +val.c1, +val.c2); }
|
| 301 |
+
|
| 302 |
+
|
| 303 |
+
/// <summary>Returns the result of a componentwise left shift operation on a uint4x3 matrix by a number of bits specified by a single int.</summary>
|
| 304 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 305 |
+
public static uint4x3 operator << (uint4x3 x, int n) { return new uint4x3 (x.c0 << n, x.c1 << n, x.c2 << n); }
|
| 306 |
+
|
| 307 |
+
/// <summary>Returns the result of a componentwise right shift operation on a uint4x3 matrix by a number of bits specified by a single int.</summary>
|
| 308 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 309 |
+
public static uint4x3 operator >> (uint4x3 x, int n) { return new uint4x3 (x.c0 >> n, x.c1 >> n, x.c2 >> n); }
|
| 310 |
+
|
| 311 |
+
/// <summary>Returns the result of a componentwise equality operation on two uint4x3 matrices.</summary>
|
| 312 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 313 |
+
public static bool4x3 operator == (uint4x3 lhs, uint4x3 rhs) { return new bool4x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); }
|
| 314 |
+
|
| 315 |
+
/// <summary>Returns the result of a componentwise equality operation on a uint4x3 matrix and a uint value.</summary>
|
| 316 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 317 |
+
public static bool4x3 operator == (uint4x3 lhs, uint rhs) { return new bool4x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); }
|
| 318 |
+
|
| 319 |
+
/// <summary>Returns the result of a componentwise equality operation on a uint value and a uint4x3 matrix.</summary>
|
| 320 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 321 |
+
public static bool4x3 operator == (uint lhs, uint4x3 rhs) { return new bool4x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); }
|
| 322 |
+
|
| 323 |
+
|
| 324 |
+
/// <summary>Returns the result of a componentwise not equal operation on two uint4x3 matrices.</summary>
|
| 325 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 326 |
+
public static bool4x3 operator != (uint4x3 lhs, uint4x3 rhs) { return new bool4x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); }
|
| 327 |
+
|
| 328 |
+
/// <summary>Returns the result of a componentwise not equal operation on a uint4x3 matrix and a uint value.</summary>
|
| 329 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 330 |
+
public static bool4x3 operator != (uint4x3 lhs, uint rhs) { return new bool4x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); }
|
| 331 |
+
|
| 332 |
+
/// <summary>Returns the result of a componentwise not equal operation on a uint value and a uint4x3 matrix.</summary>
|
| 333 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 334 |
+
public static bool4x3 operator != (uint lhs, uint4x3 rhs) { return new bool4x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); }
|
| 335 |
+
|
| 336 |
+
|
| 337 |
+
/// <summary>Returns the result of a componentwise bitwise not operation on a uint4x3 matrix.</summary>
|
| 338 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 339 |
+
public static uint4x3 operator ~ (uint4x3 val) { return new uint4x3 (~val.c0, ~val.c1, ~val.c2); }
|
| 340 |
+
|
| 341 |
+
|
| 342 |
+
/// <summary>Returns the result of a componentwise bitwise and operation on two uint4x3 matrices.</summary>
|
| 343 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 344 |
+
public static uint4x3 operator & (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); }
|
| 345 |
+
|
| 346 |
+
/// <summary>Returns the result of a componentwise bitwise and operation on a uint4x3 matrix and a uint value.</summary>
|
| 347 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 348 |
+
public static uint4x3 operator & (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); }
|
| 349 |
+
|
| 350 |
+
/// <summary>Returns the result of a componentwise bitwise and operation on a uint value and a uint4x3 matrix.</summary>
|
| 351 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 352 |
+
public static uint4x3 operator & (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); }
|
| 353 |
+
|
| 354 |
+
|
| 355 |
+
/// <summary>Returns the result of a componentwise bitwise or operation on two uint4x3 matrices.</summary>
|
| 356 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 357 |
+
public static uint4x3 operator | (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); }
|
| 358 |
+
|
| 359 |
+
/// <summary>Returns the result of a componentwise bitwise or operation on a uint4x3 matrix and a uint value.</summary>
|
| 360 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 361 |
+
public static uint4x3 operator | (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); }
|
| 362 |
+
|
| 363 |
+
/// <summary>Returns the result of a componentwise bitwise or operation on a uint value and a uint4x3 matrix.</summary>
|
| 364 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 365 |
+
public static uint4x3 operator | (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); }
|
| 366 |
+
|
| 367 |
+
|
| 368 |
+
/// <summary>Returns the result of a componentwise bitwise exclusive or operation on two uint4x3 matrices.</summary>
|
| 369 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 370 |
+
public static uint4x3 operator ^ (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); }
|
| 371 |
+
|
| 372 |
+
/// <summary>Returns the result of a componentwise bitwise exclusive or operation on a uint4x3 matrix and a uint value.</summary>
|
| 373 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 374 |
+
public static uint4x3 operator ^ (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); }
|
| 375 |
+
|
| 376 |
+
/// <summary>Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint4x3 matrix.</summary>
|
| 377 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 378 |
+
public static uint4x3 operator ^ (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); }
|
| 379 |
+
|
| 380 |
+
|
| 381 |
+
|
| 382 |
+
/// <summary>Returns the uint4 element at a specified index.</summary>
|
| 383 |
+
unsafe public ref uint4 this[int index]
|
| 384 |
+
{
|
| 385 |
+
get
|
| 386 |
+
{
|
| 387 |
+
#if ENABLE_UNITY_COLLECTIONS_CHECKS
|
| 388 |
+
if ((uint)index >= 3)
|
| 389 |
+
throw new System.ArgumentException("index must be between[0...2]");
|
| 390 |
+
#endif
|
| 391 |
+
fixed (uint4x3* array = &this) { return ref ((uint4*)array)[index]; }
|
| 392 |
+
}
|
| 393 |
+
}
|
| 394 |
+
|
| 395 |
+
/// <summary>Returns true if the uint4x3 is equal to a given uint4x3, false otherwise.</summary>
|
| 396 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 397 |
+
public bool Equals(uint4x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); }
|
| 398 |
+
|
| 399 |
+
/// <summary>Returns true if the uint4x3 is equal to a given uint4x3, false otherwise.</summary>
|
| 400 |
+
public override bool Equals(object o) { return Equals((uint4x3)o); }
|
| 401 |
+
|
| 402 |
+
|
| 403 |
+
/// <summary>Returns a hash code for the uint4x3.</summary>
|
| 404 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 405 |
+
public override int GetHashCode() { return (int)math.hash(this); }
|
| 406 |
+
|
| 407 |
+
|
| 408 |
+
/// <summary>Returns a string representation of the uint4x3.</summary>
|
| 409 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 410 |
+
public override string ToString()
|
| 411 |
+
{
|
| 412 |
+
return string.Format("uint4x3({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}, {11})", c0.x, c1.x, c2.x, c0.y, c1.y, c2.y, c0.z, c1.z, c2.z, c0.w, c1.w, c2.w);
|
| 413 |
+
}
|
| 414 |
+
|
| 415 |
+
/// <summary>Returns a string representation of the uint4x3 using a specified format and culture-specific format information.</summary>
|
| 416 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 417 |
+
public string ToString(string format, IFormatProvider formatProvider)
|
| 418 |
+
{
|
| 419 |
+
return string.Format("uint4x3({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}, {11})", c0.x.ToString(format, formatProvider), c1.x.ToString(format, formatProvider), c2.x.ToString(format, formatProvider), c0.y.ToString(format, formatProvider), c1.y.ToString(format, formatProvider), c2.y.ToString(format, formatProvider), c0.z.ToString(format, formatProvider), c1.z.ToString(format, formatProvider), c2.z.ToString(format, formatProvider), c0.w.ToString(format, formatProvider), c1.w.ToString(format, formatProvider), c2.w.ToString(format, formatProvider));
|
| 420 |
+
}
|
| 421 |
+
|
| 422 |
+
}
|
| 423 |
+
|
| 424 |
+
public static partial class math
|
| 425 |
+
{
|
| 426 |
+
/// <summary>Returns a uint4x3 matrix constructed from three uint4 vectors.</summary>
|
| 427 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 428 |
+
public static uint4x3 uint4x3(uint4 c0, uint4 c1, uint4 c2) { return new uint4x3(c0, c1, c2); }
|
| 429 |
+
|
| 430 |
+
/// <summary>Returns a uint4x3 matrix constructed from from 12 uint values given in row-major order.</summary>
|
| 431 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 432 |
+
public static uint4x3 uint4x3(uint m00, uint m01, uint m02,
|
| 433 |
+
uint m10, uint m11, uint m12,
|
| 434 |
+
uint m20, uint m21, uint m22,
|
| 435 |
+
uint m30, uint m31, uint m32)
|
| 436 |
+
{
|
| 437 |
+
return new uint4x3(m00, m01, m02,
|
| 438 |
+
m10, m11, m12,
|
| 439 |
+
m20, m21, m22,
|
| 440 |
+
m30, m31, m32);
|
| 441 |
+
}
|
| 442 |
+
|
| 443 |
+
/// <summary>Returns a uint4x3 matrix constructed from a single uint value by assigning it to every component.</summary>
|
| 444 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 445 |
+
public static uint4x3 uint4x3(uint v) { return new uint4x3(v); }
|
| 446 |
+
|
| 447 |
+
/// <summary>Returns a uint4x3 matrix constructed from a single bool value by converting it to uint and assigning it to every component.</summary>
|
| 448 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 449 |
+
public static uint4x3 uint4x3(bool v) { return new uint4x3(v); }
|
| 450 |
+
|
| 451 |
+
/// <summary>Return a uint4x3 matrix constructed from a bool4x3 matrix by componentwise conversion.</summary>
|
| 452 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 453 |
+
public static uint4x3 uint4x3(bool4x3 v) { return new uint4x3(v); }
|
| 454 |
+
|
| 455 |
+
/// <summary>Returns a uint4x3 matrix constructed from a single int value by converting it to uint and assigning it to every component.</summary>
|
| 456 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 457 |
+
public static uint4x3 uint4x3(int v) { return new uint4x3(v); }
|
| 458 |
+
|
| 459 |
+
/// <summary>Return a uint4x3 matrix constructed from a int4x3 matrix by componentwise conversion.</summary>
|
| 460 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 461 |
+
public static uint4x3 uint4x3(int4x3 v) { return new uint4x3(v); }
|
| 462 |
+
|
| 463 |
+
/// <summary>Returns a uint4x3 matrix constructed from a single float value by converting it to uint and assigning it to every component.</summary>
|
| 464 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 465 |
+
public static uint4x3 uint4x3(float v) { return new uint4x3(v); }
|
| 466 |
+
|
| 467 |
+
/// <summary>Return a uint4x3 matrix constructed from a float4x3 matrix by componentwise conversion.</summary>
|
| 468 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 469 |
+
public static uint4x3 uint4x3(float4x3 v) { return new uint4x3(v); }
|
| 470 |
+
|
| 471 |
+
/// <summary>Returns a uint4x3 matrix constructed from a single double value by converting it to uint and assigning it to every component.</summary>
|
| 472 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 473 |
+
public static uint4x3 uint4x3(double v) { return new uint4x3(v); }
|
| 474 |
+
|
| 475 |
+
/// <summary>Return a uint4x3 matrix constructed from a double4x3 matrix by componentwise conversion.</summary>
|
| 476 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 477 |
+
public static uint4x3 uint4x3(double4x3 v) { return new uint4x3(v); }
|
| 478 |
+
|
| 479 |
+
/// <summary>Return the uint3x4 transpose of a uint4x3 matrix.</summary>
|
| 480 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 481 |
+
public static uint3x4 transpose(uint4x3 v)
|
| 482 |
+
{
|
| 483 |
+
return uint3x4(
|
| 484 |
+
v.c0.x, v.c0.y, v.c0.z, v.c0.w,
|
| 485 |
+
v.c1.x, v.c1.y, v.c1.z, v.c1.w,
|
| 486 |
+
v.c2.x, v.c2.y, v.c2.z, v.c2.w);
|
| 487 |
+
}
|
| 488 |
+
|
| 489 |
+
/// <summary>Returns a uint hash code of a uint4x3 vector.</summary>
|
| 490 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 491 |
+
public static uint hash(uint4x3 v)
|
| 492 |
+
{
|
| 493 |
+
return csum(v.c0 * uint4(0xE7579997u, 0xEF7D56C7u, 0x66F38F0Bu, 0x624256A3u) +
|
| 494 |
+
v.c1 * uint4(0x5292ADE1u, 0xD2E590E5u, 0xF25BE857u, 0x9BC17CE7u) +
|
| 495 |
+
v.c2 * uint4(0xC8B86851u, 0x64095221u, 0xADF428FFu, 0xA3977109u)) + 0x745ED837u;
|
| 496 |
+
}
|
| 497 |
+
|
| 498 |
+
/// <summary>
|
| 499 |
+
/// Returns a uint4 vector hash code of a uint4x3 vector.
|
| 500 |
+
/// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash
|
| 501 |
+
/// that are only reduced to a narrow uint hash at the very end instead of at every step.
|
| 502 |
+
/// </summary>
|
| 503 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 504 |
+
public static uint4 hashwide(uint4x3 v)
|
| 505 |
+
{
|
| 506 |
+
return (v.c0 * uint4(0x9CDC88F5u, 0xFA62D721u, 0x7E4DB1CFu, 0x68EEE0F5u) +
|
| 507 |
+
v.c1 * uint4(0xBC3B0A59u, 0x816EFB5Du, 0xA24E82B7u, 0x45A22087u) +
|
| 508 |
+
v.c2 * uint4(0xFC104C3Bu, 0x5FFF6B19u, 0x5E6CBF3Bu, 0xB546F2A5u)) + 0xBBCF63E7u;
|
| 509 |
+
}
|
| 510 |
+
|
| 511 |
+
}
|
| 512 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint4x3.gen.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 8178bb4bab5354260979dd1f191c22ca
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint4x4.gen.cs
ADDED
|
@@ -0,0 +1,530 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//------------------------------------------------------------------------------
|
| 2 |
+
// <auto-generated>
|
| 3 |
+
// This code was generated by a tool.
|
| 4 |
+
//
|
| 5 |
+
// Changes to this file may cause incorrect behavior and will be lost if
|
| 6 |
+
// the code is regenerated.
|
| 7 |
+
// </auto-generated>
|
| 8 |
+
//------------------------------------------------------------------------------
|
| 9 |
+
using System;
|
| 10 |
+
using System.Runtime.CompilerServices;
|
| 11 |
+
|
| 12 |
+
#pragma warning disable 0660, 0661
|
| 13 |
+
|
| 14 |
+
namespace Unity.Mathematics
|
| 15 |
+
{
|
| 16 |
+
[System.Serializable]
|
| 17 |
+
public partial struct uint4x4 : System.IEquatable<uint4x4>, IFormattable
|
| 18 |
+
{
|
| 19 |
+
public uint4 c0;
|
| 20 |
+
public uint4 c1;
|
| 21 |
+
public uint4 c2;
|
| 22 |
+
public uint4 c3;
|
| 23 |
+
|
| 24 |
+
/// <summary>uint4x4 identity transform.</summary>
|
| 25 |
+
public static readonly uint4x4 identity = new uint4x4(1u, 0u, 0u, 0u, 0u, 1u, 0u, 0u, 0u, 0u, 1u, 0u, 0u, 0u, 0u, 1u);
|
| 26 |
+
|
| 27 |
+
/// <summary>uint4x4 zero value.</summary>
|
| 28 |
+
public static readonly uint4x4 zero;
|
| 29 |
+
|
| 30 |
+
/// <summary>Constructs a uint4x4 matrix from four uint4 vectors.</summary>
|
| 31 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 32 |
+
public uint4x4(uint4 c0, uint4 c1, uint4 c2, uint4 c3)
|
| 33 |
+
{
|
| 34 |
+
this.c0 = c0;
|
| 35 |
+
this.c1 = c1;
|
| 36 |
+
this.c2 = c2;
|
| 37 |
+
this.c3 = c3;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
/// <summary>Constructs a uint4x4 matrix from 16 uint values given in row-major order.</summary>
|
| 41 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 42 |
+
public uint4x4(uint m00, uint m01, uint m02, uint m03,
|
| 43 |
+
uint m10, uint m11, uint m12, uint m13,
|
| 44 |
+
uint m20, uint m21, uint m22, uint m23,
|
| 45 |
+
uint m30, uint m31, uint m32, uint m33)
|
| 46 |
+
{
|
| 47 |
+
this.c0 = new uint4(m00, m10, m20, m30);
|
| 48 |
+
this.c1 = new uint4(m01, m11, m21, m31);
|
| 49 |
+
this.c2 = new uint4(m02, m12, m22, m32);
|
| 50 |
+
this.c3 = new uint4(m03, m13, m23, m33);
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
/// <summary>Constructs a uint4x4 matrix from a single uint value by assigning it to every component.</summary>
|
| 54 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 55 |
+
public uint4x4(uint v)
|
| 56 |
+
{
|
| 57 |
+
this.c0 = v;
|
| 58 |
+
this.c1 = v;
|
| 59 |
+
this.c2 = v;
|
| 60 |
+
this.c3 = v;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
/// <summary>Constructs a uint4x4 matrix from a single bool value by converting it to uint and assigning it to every component.</summary>
|
| 64 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 65 |
+
public uint4x4(bool v)
|
| 66 |
+
{
|
| 67 |
+
this.c0 = math.select(new uint4(0u), new uint4(1u), v);
|
| 68 |
+
this.c1 = math.select(new uint4(0u), new uint4(1u), v);
|
| 69 |
+
this.c2 = math.select(new uint4(0u), new uint4(1u), v);
|
| 70 |
+
this.c3 = math.select(new uint4(0u), new uint4(1u), v);
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
/// <summary>Constructs a uint4x4 matrix from a bool4x4 matrix by componentwise conversion.</summary>
|
| 74 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 75 |
+
public uint4x4(bool4x4 v)
|
| 76 |
+
{
|
| 77 |
+
this.c0 = math.select(new uint4(0u), new uint4(1u), v.c0);
|
| 78 |
+
this.c1 = math.select(new uint4(0u), new uint4(1u), v.c1);
|
| 79 |
+
this.c2 = math.select(new uint4(0u), new uint4(1u), v.c2);
|
| 80 |
+
this.c3 = math.select(new uint4(0u), new uint4(1u), v.c3);
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
/// <summary>Constructs a uint4x4 matrix from a single int value by converting it to uint and assigning it to every component.</summary>
|
| 84 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 85 |
+
public uint4x4(int v)
|
| 86 |
+
{
|
| 87 |
+
this.c0 = (uint4)v;
|
| 88 |
+
this.c1 = (uint4)v;
|
| 89 |
+
this.c2 = (uint4)v;
|
| 90 |
+
this.c3 = (uint4)v;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
/// <summary>Constructs a uint4x4 matrix from a int4x4 matrix by componentwise conversion.</summary>
|
| 94 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 95 |
+
public uint4x4(int4x4 v)
|
| 96 |
+
{
|
| 97 |
+
this.c0 = (uint4)v.c0;
|
| 98 |
+
this.c1 = (uint4)v.c1;
|
| 99 |
+
this.c2 = (uint4)v.c2;
|
| 100 |
+
this.c3 = (uint4)v.c3;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
/// <summary>Constructs a uint4x4 matrix from a single float value by converting it to uint and assigning it to every component.</summary>
|
| 104 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 105 |
+
public uint4x4(float v)
|
| 106 |
+
{
|
| 107 |
+
this.c0 = (uint4)v;
|
| 108 |
+
this.c1 = (uint4)v;
|
| 109 |
+
this.c2 = (uint4)v;
|
| 110 |
+
this.c3 = (uint4)v;
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
/// <summary>Constructs a uint4x4 matrix from a float4x4 matrix by componentwise conversion.</summary>
|
| 114 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 115 |
+
public uint4x4(float4x4 v)
|
| 116 |
+
{
|
| 117 |
+
this.c0 = (uint4)v.c0;
|
| 118 |
+
this.c1 = (uint4)v.c1;
|
| 119 |
+
this.c2 = (uint4)v.c2;
|
| 120 |
+
this.c3 = (uint4)v.c3;
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
/// <summary>Constructs a uint4x4 matrix from a single double value by converting it to uint and assigning it to every component.</summary>
|
| 124 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 125 |
+
public uint4x4(double v)
|
| 126 |
+
{
|
| 127 |
+
this.c0 = (uint4)v;
|
| 128 |
+
this.c1 = (uint4)v;
|
| 129 |
+
this.c2 = (uint4)v;
|
| 130 |
+
this.c3 = (uint4)v;
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
/// <summary>Constructs a uint4x4 matrix from a double4x4 matrix by componentwise conversion.</summary>
|
| 134 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 135 |
+
public uint4x4(double4x4 v)
|
| 136 |
+
{
|
| 137 |
+
this.c0 = (uint4)v.c0;
|
| 138 |
+
this.c1 = (uint4)v.c1;
|
| 139 |
+
this.c2 = (uint4)v.c2;
|
| 140 |
+
this.c3 = (uint4)v.c3;
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
/// <summary>Implicitly converts a single uint value to a uint4x4 matrix by assigning it to every component.</summary>
|
| 145 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 146 |
+
public static implicit operator uint4x4(uint v) { return new uint4x4(v); }
|
| 147 |
+
|
| 148 |
+
/// <summary>Explicitly converts a single bool value to a uint4x4 matrix by converting it to uint and assigning it to every component.</summary>
|
| 149 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 150 |
+
public static explicit operator uint4x4(bool v) { return new uint4x4(v); }
|
| 151 |
+
|
| 152 |
+
/// <summary>Explicitly converts a bool4x4 matrix to a uint4x4 matrix by componentwise conversion.</summary>
|
| 153 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 154 |
+
public static explicit operator uint4x4(bool4x4 v) { return new uint4x4(v); }
|
| 155 |
+
|
| 156 |
+
/// <summary>Explicitly converts a single int value to a uint4x4 matrix by converting it to uint and assigning it to every component.</summary>
|
| 157 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 158 |
+
public static explicit operator uint4x4(int v) { return new uint4x4(v); }
|
| 159 |
+
|
| 160 |
+
/// <summary>Explicitly converts a int4x4 matrix to a uint4x4 matrix by componentwise conversion.</summary>
|
| 161 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 162 |
+
public static explicit operator uint4x4(int4x4 v) { return new uint4x4(v); }
|
| 163 |
+
|
| 164 |
+
/// <summary>Explicitly converts a single float value to a uint4x4 matrix by converting it to uint and assigning it to every component.</summary>
|
| 165 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 166 |
+
public static explicit operator uint4x4(float v) { return new uint4x4(v); }
|
| 167 |
+
|
| 168 |
+
/// <summary>Explicitly converts a float4x4 matrix to a uint4x4 matrix by componentwise conversion.</summary>
|
| 169 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 170 |
+
public static explicit operator uint4x4(float4x4 v) { return new uint4x4(v); }
|
| 171 |
+
|
| 172 |
+
/// <summary>Explicitly converts a single double value to a uint4x4 matrix by converting it to uint and assigning it to every component.</summary>
|
| 173 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 174 |
+
public static explicit operator uint4x4(double v) { return new uint4x4(v); }
|
| 175 |
+
|
| 176 |
+
/// <summary>Explicitly converts a double4x4 matrix to a uint4x4 matrix by componentwise conversion.</summary>
|
| 177 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 178 |
+
public static explicit operator uint4x4(double4x4 v) { return new uint4x4(v); }
|
| 179 |
+
|
| 180 |
+
|
| 181 |
+
/// <summary>Returns the result of a componentwise multiplication operation on two uint4x4 matrices.</summary>
|
| 182 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 183 |
+
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); }
|
| 184 |
+
|
| 185 |
+
/// <summary>Returns the result of a componentwise multiplication operation on a uint4x4 matrix and a uint value.</summary>
|
| 186 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 187 |
+
public static uint4x4 operator * (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); }
|
| 188 |
+
|
| 189 |
+
/// <summary>Returns the result of a componentwise multiplication operation on a uint value and a uint4x4 matrix.</summary>
|
| 190 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 191 |
+
public static uint4x4 operator * (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); }
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
/// <summary>Returns the result of a componentwise addition operation on two uint4x4 matrices.</summary>
|
| 195 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 196 |
+
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); }
|
| 197 |
+
|
| 198 |
+
/// <summary>Returns the result of a componentwise addition operation on a uint4x4 matrix and a uint value.</summary>
|
| 199 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 200 |
+
public static uint4x4 operator + (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); }
|
| 201 |
+
|
| 202 |
+
/// <summary>Returns the result of a componentwise addition operation on a uint value and a uint4x4 matrix.</summary>
|
| 203 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 204 |
+
public static uint4x4 operator + (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); }
|
| 205 |
+
|
| 206 |
+
|
| 207 |
+
/// <summary>Returns the result of a componentwise subtraction operation on two uint4x4 matrices.</summary>
|
| 208 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 209 |
+
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); }
|
| 210 |
+
|
| 211 |
+
/// <summary>Returns the result of a componentwise subtraction operation on a uint4x4 matrix and a uint value.</summary>
|
| 212 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 213 |
+
public static uint4x4 operator - (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); }
|
| 214 |
+
|
| 215 |
+
/// <summary>Returns the result of a componentwise subtraction operation on a uint value and a uint4x4 matrix.</summary>
|
| 216 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 217 |
+
public static uint4x4 operator - (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); }
|
| 218 |
+
|
| 219 |
+
|
| 220 |
+
/// <summary>Returns the result of a componentwise division operation on two uint4x4 matrices.</summary>
|
| 221 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 222 |
+
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); }
|
| 223 |
+
|
| 224 |
+
/// <summary>Returns the result of a componentwise division operation on a uint4x4 matrix and a uint value.</summary>
|
| 225 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 226 |
+
public static uint4x4 operator / (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); }
|
| 227 |
+
|
| 228 |
+
/// <summary>Returns the result of a componentwise division operation on a uint value and a uint4x4 matrix.</summary>
|
| 229 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 230 |
+
public static uint4x4 operator / (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); }
|
| 231 |
+
|
| 232 |
+
|
| 233 |
+
/// <summary>Returns the result of a componentwise modulus operation on two uint4x4 matrices.</summary>
|
| 234 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 235 |
+
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); }
|
| 236 |
+
|
| 237 |
+
/// <summary>Returns the result of a componentwise modulus operation on a uint4x4 matrix and a uint value.</summary>
|
| 238 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 239 |
+
public static uint4x4 operator % (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); }
|
| 240 |
+
|
| 241 |
+
/// <summary>Returns the result of a componentwise modulus operation on a uint value and a uint4x4 matrix.</summary>
|
| 242 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 243 |
+
public static uint4x4 operator % (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); }
|
| 244 |
+
|
| 245 |
+
|
| 246 |
+
/// <summary>Returns the result of a componentwise increment operation on a uint4x4 matrix.</summary>
|
| 247 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 248 |
+
public static uint4x4 operator ++ (uint4x4 val) { return new uint4x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); }
|
| 249 |
+
|
| 250 |
+
|
| 251 |
+
/// <summary>Returns the result of a componentwise decrement operation on a uint4x4 matrix.</summary>
|
| 252 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 253 |
+
public static uint4x4 operator -- (uint4x4 val) { return new uint4x4 (--val.c0, --val.c1, --val.c2, --val.c3); }
|
| 254 |
+
|
| 255 |
+
|
| 256 |
+
/// <summary>Returns the result of a componentwise less than operation on two uint4x4 matrices.</summary>
|
| 257 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 258 |
+
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); }
|
| 259 |
+
|
| 260 |
+
/// <summary>Returns the result of a componentwise less than operation on a uint4x4 matrix and a uint value.</summary>
|
| 261 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 262 |
+
public static bool4x4 operator < (uint4x4 lhs, uint rhs) { return new bool4x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); }
|
| 263 |
+
|
| 264 |
+
/// <summary>Returns the result of a componentwise less than operation on a uint value and a uint4x4 matrix.</summary>
|
| 265 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 266 |
+
public static bool4x4 operator < (uint lhs, uint4x4 rhs) { return new bool4x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); }
|
| 267 |
+
|
| 268 |
+
|
| 269 |
+
/// <summary>Returns the result of a componentwise less or equal operation on two uint4x4 matrices.</summary>
|
| 270 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 271 |
+
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); }
|
| 272 |
+
|
| 273 |
+
/// <summary>Returns the result of a componentwise less or equal operation on a uint4x4 matrix and a uint value.</summary>
|
| 274 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 275 |
+
public static bool4x4 operator <= (uint4x4 lhs, uint rhs) { return new bool4x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); }
|
| 276 |
+
|
| 277 |
+
/// <summary>Returns the result of a componentwise less or equal operation on a uint value and a uint4x4 matrix.</summary>
|
| 278 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 279 |
+
public static bool4x4 operator <= (uint lhs, uint4x4 rhs) { return new bool4x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); }
|
| 280 |
+
|
| 281 |
+
|
| 282 |
+
/// <summary>Returns the result of a componentwise greater than operation on two uint4x4 matrices.</summary>
|
| 283 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 284 |
+
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); }
|
| 285 |
+
|
| 286 |
+
/// <summary>Returns the result of a componentwise greater than operation on a uint4x4 matrix and a uint value.</summary>
|
| 287 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 288 |
+
public static bool4x4 operator > (uint4x4 lhs, uint rhs) { return new bool4x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); }
|
| 289 |
+
|
| 290 |
+
/// <summary>Returns the result of a componentwise greater than operation on a uint value and a uint4x4 matrix.</summary>
|
| 291 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 292 |
+
public static bool4x4 operator > (uint lhs, uint4x4 rhs) { return new bool4x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); }
|
| 293 |
+
|
| 294 |
+
|
| 295 |
+
/// <summary>Returns the result of a componentwise greater or equal operation on two uint4x4 matrices.</summary>
|
| 296 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 297 |
+
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); }
|
| 298 |
+
|
| 299 |
+
/// <summary>Returns the result of a componentwise greater or equal operation on a uint4x4 matrix and a uint value.</summary>
|
| 300 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 301 |
+
public static bool4x4 operator >= (uint4x4 lhs, uint rhs) { return new bool4x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); }
|
| 302 |
+
|
| 303 |
+
/// <summary>Returns the result of a componentwise greater or equal operation on a uint value and a uint4x4 matrix.</summary>
|
| 304 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 305 |
+
public static bool4x4 operator >= (uint lhs, uint4x4 rhs) { return new bool4x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); }
|
| 306 |
+
|
| 307 |
+
|
| 308 |
+
/// <summary>Returns the result of a componentwise unary minus operation on a uint4x4 matrix.</summary>
|
| 309 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 310 |
+
public static uint4x4 operator - (uint4x4 val) { return new uint4x4 (-val.c0, -val.c1, -val.c2, -val.c3); }
|
| 311 |
+
|
| 312 |
+
|
| 313 |
+
/// <summary>Returns the result of a componentwise unary plus operation on a uint4x4 matrix.</summary>
|
| 314 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 315 |
+
public static uint4x4 operator + (uint4x4 val) { return new uint4x4 (+val.c0, +val.c1, +val.c2, +val.c3); }
|
| 316 |
+
|
| 317 |
+
|
| 318 |
+
/// <summary>Returns the result of a componentwise left shift operation on a uint4x4 matrix by a number of bits specified by a single int.</summary>
|
| 319 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 320 |
+
public static uint4x4 operator << (uint4x4 x, int n) { return new uint4x4 (x.c0 << n, x.c1 << n, x.c2 << n, x.c3 << n); }
|
| 321 |
+
|
| 322 |
+
/// <summary>Returns the result of a componentwise right shift operation on a uint4x4 matrix by a number of bits specified by a single int.</summary>
|
| 323 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 324 |
+
public static uint4x4 operator >> (uint4x4 x, int n) { return new uint4x4 (x.c0 >> n, x.c1 >> n, x.c2 >> n, x.c3 >> n); }
|
| 325 |
+
|
| 326 |
+
/// <summary>Returns the result of a componentwise equality operation on two uint4x4 matrices.</summary>
|
| 327 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 328 |
+
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); }
|
| 329 |
+
|
| 330 |
+
/// <summary>Returns the result of a componentwise equality operation on a uint4x4 matrix and a uint value.</summary>
|
| 331 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 332 |
+
public static bool4x4 operator == (uint4x4 lhs, uint rhs) { return new bool4x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); }
|
| 333 |
+
|
| 334 |
+
/// <summary>Returns the result of a componentwise equality operation on a uint value and a uint4x4 matrix.</summary>
|
| 335 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 336 |
+
public static bool4x4 operator == (uint lhs, uint4x4 rhs) { return new bool4x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); }
|
| 337 |
+
|
| 338 |
+
|
| 339 |
+
/// <summary>Returns the result of a componentwise not equal operation on two uint4x4 matrices.</summary>
|
| 340 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 341 |
+
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); }
|
| 342 |
+
|
| 343 |
+
/// <summary>Returns the result of a componentwise not equal operation on a uint4x4 matrix and a uint value.</summary>
|
| 344 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 345 |
+
public static bool4x4 operator != (uint4x4 lhs, uint rhs) { return new bool4x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); }
|
| 346 |
+
|
| 347 |
+
/// <summary>Returns the result of a componentwise not equal operation on a uint value and a uint4x4 matrix.</summary>
|
| 348 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 349 |
+
public static bool4x4 operator != (uint lhs, uint4x4 rhs) { return new bool4x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); }
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
/// <summary>Returns the result of a componentwise bitwise not operation on a uint4x4 matrix.</summary>
|
| 353 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 354 |
+
public static uint4x4 operator ~ (uint4x4 val) { return new uint4x4 (~val.c0, ~val.c1, ~val.c2, ~val.c3); }
|
| 355 |
+
|
| 356 |
+
|
| 357 |
+
/// <summary>Returns the result of a componentwise bitwise and operation on two uint4x4 matrices.</summary>
|
| 358 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 359 |
+
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); }
|
| 360 |
+
|
| 361 |
+
/// <summary>Returns the result of a componentwise bitwise and operation on a uint4x4 matrix and a uint value.</summary>
|
| 362 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 363 |
+
public static uint4x4 operator & (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); }
|
| 364 |
+
|
| 365 |
+
/// <summary>Returns the result of a componentwise bitwise and operation on a uint value and a uint4x4 matrix.</summary>
|
| 366 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 367 |
+
public static uint4x4 operator & (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); }
|
| 368 |
+
|
| 369 |
+
|
| 370 |
+
/// <summary>Returns the result of a componentwise bitwise or operation on two uint4x4 matrices.</summary>
|
| 371 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 372 |
+
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); }
|
| 373 |
+
|
| 374 |
+
/// <summary>Returns the result of a componentwise bitwise or operation on a uint4x4 matrix and a uint value.</summary>
|
| 375 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 376 |
+
public static uint4x4 operator | (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); }
|
| 377 |
+
|
| 378 |
+
/// <summary>Returns the result of a componentwise bitwise or operation on a uint value and a uint4x4 matrix.</summary>
|
| 379 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 380 |
+
public static uint4x4 operator | (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); }
|
| 381 |
+
|
| 382 |
+
|
| 383 |
+
/// <summary>Returns the result of a componentwise bitwise exclusive or operation on two uint4x4 matrices.</summary>
|
| 384 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 385 |
+
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); }
|
| 386 |
+
|
| 387 |
+
/// <summary>Returns the result of a componentwise bitwise exclusive or operation on a uint4x4 matrix and a uint value.</summary>
|
| 388 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 389 |
+
public static uint4x4 operator ^ (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); }
|
| 390 |
+
|
| 391 |
+
/// <summary>Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint4x4 matrix.</summary>
|
| 392 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 393 |
+
public static uint4x4 operator ^ (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); }
|
| 394 |
+
|
| 395 |
+
|
| 396 |
+
|
| 397 |
+
/// <summary>Returns the uint4 element at a specified index.</summary>
|
| 398 |
+
unsafe public ref uint4 this[int index]
|
| 399 |
+
{
|
| 400 |
+
get
|
| 401 |
+
{
|
| 402 |
+
#if ENABLE_UNITY_COLLECTIONS_CHECKS
|
| 403 |
+
if ((uint)index >= 4)
|
| 404 |
+
throw new System.ArgumentException("index must be between[0...3]");
|
| 405 |
+
#endif
|
| 406 |
+
fixed (uint4x4* array = &this) { return ref ((uint4*)array)[index]; }
|
| 407 |
+
}
|
| 408 |
+
}
|
| 409 |
+
|
| 410 |
+
/// <summary>Returns true if the uint4x4 is equal to a given uint4x4, false otherwise.</summary>
|
| 411 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 412 |
+
public bool Equals(uint4x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); }
|
| 413 |
+
|
| 414 |
+
/// <summary>Returns true if the uint4x4 is equal to a given uint4x4, false otherwise.</summary>
|
| 415 |
+
public override bool Equals(object o) { return Equals((uint4x4)o); }
|
| 416 |
+
|
| 417 |
+
|
| 418 |
+
/// <summary>Returns a hash code for the uint4x4.</summary>
|
| 419 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 420 |
+
public override int GetHashCode() { return (int)math.hash(this); }
|
| 421 |
+
|
| 422 |
+
|
| 423 |
+
/// <summary>Returns a string representation of the uint4x4.</summary>
|
| 424 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 425 |
+
public override string ToString()
|
| 426 |
+
{
|
| 427 |
+
return string.Format("uint4x4({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}, {11}, {12}, {13}, {14}, {15})", c0.x, c1.x, c2.x, c3.x, c0.y, c1.y, c2.y, c3.y, c0.z, c1.z, c2.z, c3.z, c0.w, c1.w, c2.w, c3.w);
|
| 428 |
+
}
|
| 429 |
+
|
| 430 |
+
/// <summary>Returns a string representation of the uint4x4 using a specified format and culture-specific format information.</summary>
|
| 431 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 432 |
+
public string ToString(string format, IFormatProvider formatProvider)
|
| 433 |
+
{
|
| 434 |
+
return string.Format("uint4x4({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}, {11}, {12}, {13}, {14}, {15})", c0.x.ToString(format, formatProvider), c1.x.ToString(format, formatProvider), c2.x.ToString(format, formatProvider), c3.x.ToString(format, formatProvider), c0.y.ToString(format, formatProvider), c1.y.ToString(format, formatProvider), c2.y.ToString(format, formatProvider), c3.y.ToString(format, formatProvider), c0.z.ToString(format, formatProvider), c1.z.ToString(format, formatProvider), c2.z.ToString(format, formatProvider), c3.z.ToString(format, formatProvider), c0.w.ToString(format, formatProvider), c1.w.ToString(format, formatProvider), c2.w.ToString(format, formatProvider), c3.w.ToString(format, formatProvider));
|
| 435 |
+
}
|
| 436 |
+
|
| 437 |
+
}
|
| 438 |
+
|
| 439 |
+
public static partial class math
|
| 440 |
+
{
|
| 441 |
+
/// <summary>Returns a uint4x4 matrix constructed from four uint4 vectors.</summary>
|
| 442 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 443 |
+
public static uint4x4 uint4x4(uint4 c0, uint4 c1, uint4 c2, uint4 c3) { return new uint4x4(c0, c1, c2, c3); }
|
| 444 |
+
|
| 445 |
+
/// <summary>Returns a uint4x4 matrix constructed from from 16 uint values given in row-major order.</summary>
|
| 446 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 447 |
+
public static uint4x4 uint4x4(uint m00, uint m01, uint m02, uint m03,
|
| 448 |
+
uint m10, uint m11, uint m12, uint m13,
|
| 449 |
+
uint m20, uint m21, uint m22, uint m23,
|
| 450 |
+
uint m30, uint m31, uint m32, uint m33)
|
| 451 |
+
{
|
| 452 |
+
return new uint4x4(m00, m01, m02, m03,
|
| 453 |
+
m10, m11, m12, m13,
|
| 454 |
+
m20, m21, m22, m23,
|
| 455 |
+
m30, m31, m32, m33);
|
| 456 |
+
}
|
| 457 |
+
|
| 458 |
+
/// <summary>Returns a uint4x4 matrix constructed from a single uint value by assigning it to every component.</summary>
|
| 459 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 460 |
+
public static uint4x4 uint4x4(uint v) { return new uint4x4(v); }
|
| 461 |
+
|
| 462 |
+
/// <summary>Returns a uint4x4 matrix constructed from a single bool value by converting it to uint and assigning it to every component.</summary>
|
| 463 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 464 |
+
public static uint4x4 uint4x4(bool v) { return new uint4x4(v); }
|
| 465 |
+
|
| 466 |
+
/// <summary>Return a uint4x4 matrix constructed from a bool4x4 matrix by componentwise conversion.</summary>
|
| 467 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 468 |
+
public static uint4x4 uint4x4(bool4x4 v) { return new uint4x4(v); }
|
| 469 |
+
|
| 470 |
+
/// <summary>Returns a uint4x4 matrix constructed from a single int value by converting it to uint and assigning it to every component.</summary>
|
| 471 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 472 |
+
public static uint4x4 uint4x4(int v) { return new uint4x4(v); }
|
| 473 |
+
|
| 474 |
+
/// <summary>Return a uint4x4 matrix constructed from a int4x4 matrix by componentwise conversion.</summary>
|
| 475 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 476 |
+
public static uint4x4 uint4x4(int4x4 v) { return new uint4x4(v); }
|
| 477 |
+
|
| 478 |
+
/// <summary>Returns a uint4x4 matrix constructed from a single float value by converting it to uint and assigning it to every component.</summary>
|
| 479 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 480 |
+
public static uint4x4 uint4x4(float v) { return new uint4x4(v); }
|
| 481 |
+
|
| 482 |
+
/// <summary>Return a uint4x4 matrix constructed from a float4x4 matrix by componentwise conversion.</summary>
|
| 483 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 484 |
+
public static uint4x4 uint4x4(float4x4 v) { return new uint4x4(v); }
|
| 485 |
+
|
| 486 |
+
/// <summary>Returns a uint4x4 matrix constructed from a single double value by converting it to uint and assigning it to every component.</summary>
|
| 487 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 488 |
+
public static uint4x4 uint4x4(double v) { return new uint4x4(v); }
|
| 489 |
+
|
| 490 |
+
/// <summary>Return a uint4x4 matrix constructed from a double4x4 matrix by componentwise conversion.</summary>
|
| 491 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 492 |
+
public static uint4x4 uint4x4(double4x4 v) { return new uint4x4(v); }
|
| 493 |
+
|
| 494 |
+
/// <summary>Return the uint4x4 transpose of a uint4x4 matrix.</summary>
|
| 495 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 496 |
+
public static uint4x4 transpose(uint4x4 v)
|
| 497 |
+
{
|
| 498 |
+
return uint4x4(
|
| 499 |
+
v.c0.x, v.c0.y, v.c0.z, v.c0.w,
|
| 500 |
+
v.c1.x, v.c1.y, v.c1.z, v.c1.w,
|
| 501 |
+
v.c2.x, v.c2.y, v.c2.z, v.c2.w,
|
| 502 |
+
v.c3.x, v.c3.y, v.c3.z, v.c3.w);
|
| 503 |
+
}
|
| 504 |
+
|
| 505 |
+
/// <summary>Returns a uint hash code of a uint4x4 vector.</summary>
|
| 506 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 507 |
+
public static uint hash(uint4x4 v)
|
| 508 |
+
{
|
| 509 |
+
return csum(v.c0 * uint4(0x9C9F0823u, 0x5A9CA13Bu, 0xAFCDD5EFu, 0xA88D187Du) +
|
| 510 |
+
v.c1 * uint4(0xCF6EBA1Du, 0x9D88E5A1u, 0xEADF0775u, 0x747A9D7Bu) +
|
| 511 |
+
v.c2 * uint4(0x4111F799u, 0xB5F05AF1u, 0xFD80290Bu, 0x8B65ADB7u) +
|
| 512 |
+
v.c3 * uint4(0xDFF4F563u, 0x7069770Du, 0xD1224537u, 0xE99ED6F3u)) + 0x48125549u;
|
| 513 |
+
}
|
| 514 |
+
|
| 515 |
+
/// <summary>
|
| 516 |
+
/// Returns a uint4 vector hash code of a uint4x4 vector.
|
| 517 |
+
/// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash
|
| 518 |
+
/// that are only reduced to a narrow uint hash at the very end instead of at every step.
|
| 519 |
+
/// </summary>
|
| 520 |
+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
| 521 |
+
public static uint4 hashwide(uint4x4 v)
|
| 522 |
+
{
|
| 523 |
+
return (v.c0 * uint4(0xEEE2123Bu, 0xE3AD9FE5u, 0xCE1CF8BFu, 0x7BE39F3Bu) +
|
| 524 |
+
v.c1 * uint4(0xFAB9913Fu, 0xB4501269u, 0xE04B89FDu, 0xDB3DE101u) +
|
| 525 |
+
v.c2 * uint4(0x7B6D1B4Bu, 0x58399E77u, 0x5EAC29C9u, 0xFC6014F9u) +
|
| 526 |
+
v.c3 * uint4(0x6BF6693Fu, 0x9D1B1D9Bu, 0xF842F5C1u, 0xA47EC335u)) + 0xA477DF57u;
|
| 527 |
+
}
|
| 528 |
+
|
| 529 |
+
}
|
| 530 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.mathematics@1.1.0/Unity.Mathematics/uint4x4.gen.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 1878454c2f73547909bfcea105ffd941
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|