diff --git a/Aetheria.State/README.md b/Aetheria.State/README.md index 5c368eca9..5dae7875e 100644 --- a/Aetheria.State/README.md +++ b/Aetheria.State/README.md @@ -14,6 +14,13 @@ entity snapshots, item slots, weapon groups, action-bar bindings, and stat grids. Do not preserve `SavedGame` or `EntityPack` as opaque payloads in the new store; they are source shapes for migration, not portable state authority. +The Unity client no longer writes `PlayerSettings.msgpack`, `.loadout`, or +`.zone` files. Until `Aetheria.State` is available to Unity as a runtime Verse +package, player settings and loadout edits are session-local and run saving is +disabled. That is intentional: the missing runtime package is the owner gap, and +the old bespoke file formats must not keep acting as durable truth while the +state spine is being rebuilt. + Current rebuild notes: - `MessagePack` 3.1.4 is pulled transitively through CultLib and is currently diff --git a/Assets/Scripts/Gameplay/ActionGameManager.cs b/Assets/Scripts/Gameplay/ActionGameManager.cs index 079a6e704..de95d10b7 100644 --- a/Assets/Scripts/Gameplay/ActionGameManager.cs +++ b/Assets/Scripts/Gameplay/ActionGameManager.cs @@ -71,16 +71,13 @@ public class ActionGameManager : MonoBehaviour get { RegisterResolver.Register(); - return _playerSettings ??= File.Exists(_playerSettingsFilePath) - ? MessagePackSerializer.Deserialize(File.ReadAllBytes(_playerSettingsFilePath)) - : GetDefaultPlayerSettings(); + return _playerSettings ??= GetDefaultPlayerSettings(); } } - private static string _playerSettingsFilePath => Path.Combine(GameDataDirectory.FullName, "PlayerSettings.msgpack"); public static void SavePlayerSettings() { - File.WriteAllBytes(_playerSettingsFilePath, MessagePackSerializer.Serialize(_playerSettings)); + Debug.LogWarning("Player settings persistence belongs to the Verse state spine. The Unity client keeps settings in memory until Aetheria.State is available as a runtime package."); } private static PlayerSettings GetDefaultPlayerSettings() @@ -172,7 +169,6 @@ public class ActionGameManager : MonoBehaviour // private CinemachineFramingTransposer _transposer; // private CinemachineComposer _composer; - private DirectoryInfo _loadoutPath; private bool _paused; private float _time; private int _zoomLevelIndex; @@ -237,20 +233,17 @@ public class ActionGameManager : MonoBehaviour public void SaveLoadout(EntityPack pack) { - File.WriteAllBytes(Path.Combine(_loadoutPath.FullName, $"{pack.Name}.loadout"), MessagePackSerializer.Serialize(pack)); + Loadouts.RemoveAll(loadout => loadout.Name == pack.Name); + Loadouts.Add(pack); + Debug.LogWarning("Loadout persistence belongs to the Verse state spine. The Unity client keeps loadouts in memory until Aetheria.State is available as a runtime package."); } private void OnApplicationQuit() => SaveState(); public void SaveState() { - PlayerSettings.SavedRun = CurrentGalaxy == null ? null : new SavedGame(CurrentGalaxy, Zone, DockedEntity ?? CurrentEntity); - if(PlayerSettings.SavedRun != null) - { - PlayerSettings.SavedRun.IsTutorial = IsTutorial; - PlayerSettings.SavedRun.ActionBarBindings = _actionBarSlots.Select(slot => slot.Save()).ToArray(); - } - SavePlayerSettings(); + if (CurrentGalaxy != null) + Debug.LogWarning("Run persistence belongs to the Verse state spine. Legacy SavedGame serialization is disabled."); } private void OnDisable() @@ -277,10 +270,6 @@ public class ActionGameManager : MonoBehaviour // TODO: Process Stories - // _loadoutPath = GameDataDirectory.CreateSubdirectory("Loadouts"); - // Loadouts.AddRange(_loadoutPath.EnumerateFiles("*.loadout") - // .Select(fi => MessagePackSerializer.Deserialize(File.ReadAllBytes(fi.FullName)))); - #region Input Handling Input = new AetheriaInput(); @@ -751,47 +740,21 @@ public class ActionGameManager : MonoBehaviour { if (CurrentGalaxy != null) { - if (PlayerSettings.SavedRun == null) - { - SectorMap.QueueZoneReveal(CurrentGalaxy.Entrance.AdjacentZones.Prepend(CurrentGalaxy.Entrance)); - PopulateLevel(CurrentGalaxy.Entrance); - var loadoutGenerator = new LoadoutGenerator(ref ItemManager.Random, ItemManager, CurrentGalaxy, Zone.GalaxyZone, IsTutorial ? CurrentGalaxy.ResolveFaction(Settings.TutorialGenerationSettings.ProtagonistFaction) : null, 2); - var ship = EntitySerializer.Unpack( - ItemManager, - Zone, - loadoutGenerator.GenerateShipLoadout(data => string.IsNullOrEmpty(Settings.StartingHullName) || data.Name==Settings.StartingHullName ), - true); - // EntitySerializer.Unpack(ItemManager, Zone, Loadouts.First(x => x.Name == StarterShipTemplate), true); - ((Ship) ship).IsPlayerShip = true; - ship.Position = float3.zero; - ship.Zone = Zone; - Zone.Entities.Add(ship); - ship.Activate(); - BindToEntity(ship); - } - else - { - foreach(var group in CurrentGalaxy.DiscoveredZones - .GroupBy(dz=>dz.Distance[CurrentGalaxy.Entrance])) - SectorMap.QueueZoneReveal(group); - PopulateLevel(CurrentGalaxy.Zones[PlayerSettings.SavedRun.CurrentZone]); - var targetEntity = Zone.Entities[PlayerSettings.SavedRun.CurrentZoneEntity]; - if (targetEntity is OrbitalEntity orbitalEntity) - { - CurrentEntity = targetEntity.Children.First(c => c is Ship {IsPlayerShip: true}); - DoDock(orbitalEntity, orbitalEntity.DockingBays.First()); - } - else - { - //StartCoroutine(IntroCutscene(targetEntity as Ship)); - BindToEntity(targetEntity); - } - - for (var i = 0; i < _actionBarSlots.Count; i++) - { - _actionBarSlots[i].Restore(PlayerSettings.SavedRun.ActionBarBindings[i], CurrentEntity); - } - } + SectorMap.QueueZoneReveal(CurrentGalaxy.Entrance.AdjacentZones.Prepend(CurrentGalaxy.Entrance)); + PopulateLevel(CurrentGalaxy.Entrance); + var loadoutGenerator = new LoadoutGenerator(ref ItemManager.Random, ItemManager, CurrentGalaxy, Zone.GalaxyZone, IsTutorial ? CurrentGalaxy.ResolveFaction(Settings.TutorialGenerationSettings.ProtagonistFaction) : null, 2); + var ship = EntitySerializer.Unpack( + ItemManager, + Zone, + loadoutGenerator.GenerateShipLoadout(data => string.IsNullOrEmpty(Settings.StartingHullName) || data.Name==Settings.StartingHullName ), + true); + // EntitySerializer.Unpack(ItemManager, Zone, Loadouts.First(x => x.Name == StarterShipTemplate), true); + ((Ship) ship).IsPlayerShip = true; + ship.Position = float3.zero; + ship.Zone = Zone; + Zone.Entities.Add(ship); + ship.Activate(); + BindToEntity(ship); } } @@ -1139,8 +1102,10 @@ public class ActionGameManager : MonoBehaviour }); } - public void SaveZone(string name) => File.WriteAllBytes( - Path.Combine(_gameDataDirectory.FullName, $"{name}.zone"), MessagePackSerializer.Serialize(Zone.PackZone())); + public void SaveZone(string name) + { + Debug.LogWarning("Zone persistence belongs to the Verse state spine. Legacy .zone serialization is disabled."); + } // public void ToggleEditMode() // { diff --git a/Assets/Scripts/ServerShared/PlayerSettings.cs b/Assets/Scripts/ServerShared/PlayerSettings.cs index 6280b06b2..9e8dbf9a0 100644 --- a/Assets/Scripts/ServerShared/PlayerSettings.cs +++ b/Assets/Scripts/ServerShared/PlayerSettings.cs @@ -7,7 +7,6 @@ using MessagePack; public class PlayerSettings { [Key(0)] public string Name = "Anonymous"; - [Key(1)] public SavedGame SavedRun; [Key(2)] public bool TutorialPassed; [Key(3)] public Dictionary HashedStoryFiles = new Dictionary(); [Key(4)] public PlayerGameplaySettings GameplaySettings = new PlayerGameplaySettings(); @@ -77,4 +76,4 @@ public enum Quality Normal, High, Ultra -} \ No newline at end of file +} diff --git a/Assets/Scripts/UI/MainMenu.cs b/Assets/Scripts/UI/MainMenu.cs index 0c137b6a0..db0c0ec2e 100644 --- a/Assets/Scripts/UI/MainMenu.cs +++ b/Assets/Scripts/UI/MainMenu.cs @@ -93,19 +93,7 @@ public class MainMenu : MonoBehaviour _nextMenu.panel.Title.text = TitleSubtitle("aetheria", "terminus"); if (!InGame) { - if(ActionGameManager.PlayerSettings.SavedRun != null) - _nextMenu.panel.AddButton("Continue", - () => - { - ActionGameManager.IsTutorial = ActionGameManager.PlayerSettings.SavedRun.IsTutorial; - ActionGameManager.CurrentGalaxy = new Galaxy( - ActionGameManager.LegacyCultCache, - ActionGameManager.PlayerSettings.SavedRun, - Debug.Log); - SceneManager.LoadScene("ARPG"); - }); - else - _nextMenu.panel.AddButton("Continue", null); + _nextMenu.panel.AddButton("Continue", null); } _nextMenu.panel.AddButton("New Game", () => @@ -135,7 +123,6 @@ public class MainMenu : MonoBehaviour setState); Observable.NextFrame().Subscribe(_ => { - ActionGameManager.PlayerSettings.SavedRun = null; ActionGameManager.CurrentGalaxy = sector; SceneManager.LoadScene("ARPG"); }); @@ -164,7 +151,6 @@ public class MainMenu : MonoBehaviour setState); Observable.NextFrame().Subscribe(_ => { - ActionGameManager.PlayerSettings.SavedRun = null; ActionGameManager.CurrentGalaxy = sector; SceneManager.LoadScene("ARPG"); }); diff --git a/Economy.Shared/Economy.Shared.csproj b/Economy.Shared/Economy.Shared.csproj deleted file mode 100644 index ca803dae3..000000000 --- a/Economy.Shared/Economy.Shared.csproj +++ /dev/null @@ -1,18 +0,0 @@ - - - - netstandard2.0 - true - - - - - - - - - - - - - diff --git a/Economy.Shared/Unity.Mathematics/Noise/LICENSE b/Economy.Shared/Unity.Mathematics/Noise/LICENSE deleted file mode 100644 index fe03f28c7..000000000 --- a/Economy.Shared/Unity.Mathematics/Noise/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (C) 2011 by Ashima Arts (Simplex noise) -Copyright (C) 2011-2016 by Stefan Gustavson (Classic noise and others) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/Economy.Shared/Unity.Mathematics/Noise/README b/Economy.Shared/Unity.Mathematics/Noise/README deleted file mode 100644 index 68f441f2b..000000000 --- a/Economy.Shared/Unity.Mathematics/Noise/README +++ /dev/null @@ -1,16 +0,0 @@ -These files contain noise functions that are compatible with all -current versions of GLSL (1.20 and up), and all you need to use them -is provided in the source file. There is no external data, and no -setup procedure. Just cut and paste and call the function. - -GLSL has a very rudimentary linker, so some helper functions are -included in several of the files with the same name. If you want to -use more than one of these functions in the same shader, you may run -into problems with redefinition of the functions mod289() and permute(). -If that happens, just delete any superfluous definitions. - ------ - -Source: https://github.com/ashima/webgl-noise -Changes: - - 10 April 2018, Unity Technologies, Ported to HPC# diff --git a/Economy.Shared/Unity.Mathematics/Noise/cellular2D.cs b/Economy.Shared/Unity.Mathematics/Noise/cellular2D.cs deleted file mode 100644 index 564d414ed..000000000 --- a/Economy.Shared/Unity.Mathematics/Noise/cellular2D.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Cellular noise ("Worley noise") in 2D in GLSL. -// Copyright (c) Stefan Gustavson 2011-04-19. All rights reserved. -// This code is released under the conditions of the MIT license. -// See LICENSE file for details. -// https://github.com/stegu/webgl-noise - -using static Unity.Mathematics.math; - -namespace Unity.Mathematics -{ - public static partial class noise - { - // Cellular noise, returning F1 and F2 in a float2. - // Standard 3x3 search window for good F1 and F2 values - public static float2 cellular(float2 P) - { - const float K = 0.142857142857f; // 1/7 - const float Ko = 0.428571428571f; // 3/7 - const float jitter = 1.0f; // Less gives more regular pattern - - float2 Pi = mod289(floor(P)); - float2 Pf = frac(P); - float3 oi = float3(-1.0f, 0.0f, 1.0f); - float3 of = float3(-0.5f, 0.5f, 1.5f); - float3 px = permute(Pi.x + oi); - float3 p = permute(px.x + Pi.y + oi); // p11, p12, p13 - float3 ox = frac(p * K) - Ko; - float3 oy = mod7(floor(p * K)) * K - Ko; - float3 dx = Pf.x + 0.5f + jitter * ox; - float3 dy = Pf.y - of + jitter * oy; - float3 d1 = dx * dx + dy * dy; // d11, d12 and d13, squared - p = permute(px.y + Pi.y + oi); // p21, p22, p23 - ox = frac(p * K) - Ko; - oy = mod7(floor(p * K)) * K - Ko; - dx = Pf.x - 0.5f + jitter * ox; - dy = Pf.y - of + jitter * oy; - float3 d2 = dx * dx + dy * dy; // d21, d22 and d23, squared - p = permute(px.z + Pi.y + oi); // p31, p32, p33 - ox = frac(p * K) - Ko; - oy = mod7(floor(p * K)) * K - Ko; - dx = Pf.x - 1.5f + jitter * ox; - dy = Pf.y - of + jitter * oy; - float3 d3 = dx * dx + dy * dy; // d31, d32 and d33, squared - // Sort out the two smallest distances (F1, F2) - float3 d1a = min(d1, d2); - d2 = max(d1, d2); // Swap to keep candidates for F2 - d2 = min(d2, d3); // neither F1 nor F2 are now in d3 - d1 = min(d1a, d2); // F1 is now in d1 - d2 = max(d1a, d2); // Swap to keep candidates for F2 - d1.xy = (d1.x < d1.y) ? d1.xy : d1.yx; // Swap if smaller - d1.xz = (d1.x < d1.z) ? d1.xz : d1.zx; // F1 is in d1.x - d1.yz = min(d1.yz, d2.yz); // F2 is now not in d2.yz - d1.y = min(d1.y, d1.z); // nor in d1.z - d1.y = min(d1.y, d2.x); // F2 is in d1.y, we're done. - return sqrt(d1.xy); - } - } -} diff --git a/Economy.Shared/Unity.Mathematics/Noise/cellular2x2.cs b/Economy.Shared/Unity.Mathematics/Noise/cellular2x2.cs deleted file mode 100644 index 84d98b90f..000000000 --- a/Economy.Shared/Unity.Mathematics/Noise/cellular2x2.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Cellular noise ("Worley noise") in 2D in GLSL. -// Copyright (c) Stefan Gustavson 2011-04-19. All rights reserved. -// This code is released under the conditions of the MIT license. -// See LICENSE file for details. -// https://github.com/stegu/webgl-noise - -using static Unity.Mathematics.math; - -namespace Unity.Mathematics -{ - public static partial class noise - { - // Cellular noise, returning F1 and F2 in a float2. - // Speeded up by umath.sing 2x2 search window instead of 3x3, - // at the expense of some strong pattern artifacts. - // F2 is often wrong and has sharp discontinuities. - // If you need a smooth F2, use the slower 3x3 version. - // F1 is sometimes wrong, too, but OK for most purposes. - public static float2 cellular2x2(float2 P) - { - const float K = 0.142857142857f; // 1/7 - const float K2 = 0.0714285714285f; // K/2 - const float jitter = 0.8f; // jitter 1.0 makes F1 wrong more often - - float2 Pi = mod289(floor(P)); - float2 Pf = frac(P); - float4 Pfx = Pf.x + float4(-0.5f, -1.5f, -0.5f, -1.5f); - float4 Pfy = Pf.y + float4(-0.5f, -0.5f, -1.5f, -1.5f); - float4 p = permute(Pi.x + float4(0.0f, 1.0f, 0.0f, 1.0f)); - p = permute(p + Pi.y + float4(0.0f, 0.0f, 1.0f, 1.0f)); - float4 ox = mod7(p) * K + K2; - float4 oy = mod7(floor(p * K)) * K + K2; - float4 dx = Pfx + jitter * ox; - float4 dy = Pfy + jitter * oy; - float4 d = dx * dx + dy * dy; // d11, d12, d21 and d22, squared - // Sort out the two smallest distances - // Do it right and find both F1 and F2 - d.xy = (d.x < d.y) ? d.xy : d.yx; // Swap if smaller - d.xz = (d.x < d.z) ? d.xz : d.zx; - d.xw = (d.x < d.w) ? d.xw : d.wx; - d.y = min(d.y, d.z); - d.y = min(d.y, d.w); - return sqrt(d.xy); - } - } -} diff --git a/Economy.Shared/Unity.Mathematics/Noise/cellular2x2x2.cs b/Economy.Shared/Unity.Mathematics/Noise/cellular2x2x2.cs deleted file mode 100644 index fd1c4f836..000000000 --- a/Economy.Shared/Unity.Mathematics/Noise/cellular2x2x2.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Cellular noise ("Worley noise") in 3D in GLSL. -// Copyright (c) Stefan Gustavson 2011-04-19. All rights reserved. -// This code is released under the conditions of the MIT license. -// See LICENSE file for details. -// https://github.com/stegu/webgl-noise - -using static Unity.Mathematics.math; - -namespace Unity.Mathematics -{ - public static partial class noise - { - // Cellular noise, returning F1 and F2 in a float2. - // Speeded up by umath.sing 2x2x2 search window instead of 3x3x3, - // at the expense of some pattern artifacts. - // F2 is often wrong and has sharp discontinuities. - // If you need a good F2, use the slower 3x3x3 version. - public static float2 cellular2x2x2(float3 P) - { - const float K = 0.142857142857f; // 1/7 - const float Ko = 0.428571428571f; // 1/2-K/2 - const float K2 = 0.020408163265306f; // 1/(7*7) - const float Kz = 0.166666666667f; // 1/6 - const float Kzo = 0.416666666667f; // 1/2-1/6*2 - const float jitter = 0.8f; // smaller jitter gives less errors in F2 - - float3 Pi = mod289(floor(P)); - float3 Pf = frac(P); - float4 Pfx = Pf.x + float4(0.0f, -1.0f, 0.0f, -1.0f); - float4 Pfy = Pf.y + float4(0.0f, 0.0f, -1.0f, -1.0f); - float4 p = permute(Pi.x + float4(0.0f, 1.0f, 0.0f, 1.0f)); - p = permute(p + Pi.y + float4(0.0f, 0.0f, 1.0f, 1.0f)); - float4 p1 = permute(p + Pi.z); // z+0 - float4 p2 = permute(p + Pi.z + float4(1.0f,1.0f,1.0f,1.0f)); // z+1 - float4 ox1 = frac(p1 * K) - Ko; - float4 oy1 = mod7(floor(p1 * K)) * K - Ko; - float4 oz1 = floor(p1 * K2) * Kz - Kzo; // p1 < 289 guaranteed - float4 ox2 = frac(p2 * K) - Ko; - float4 oy2 = mod7(floor(p2 * K)) * K - Ko; - float4 oz2 = floor(p2 * K2) * Kz - Kzo; - float4 dx1 = Pfx + jitter * ox1; - float4 dy1 = Pfy + jitter * oy1; - float4 dz1 = Pf.z + jitter * oz1; - float4 dx2 = Pfx + jitter * ox2; - float4 dy2 = Pfy + jitter * oy2; - float4 dz2 = Pf.z - 1.0f + jitter * oz2; - float4 d1 = dx1 * dx1 + dy1 * dy1 + dz1 * dz1; // z+0 - float4 d2 = dx2 * dx2 + dy2 * dy2 + dz2 * dz2; // z+1 - - // Sort out the two smallest distances (F1, F2) - - // Do it right and sort out both F1 and F2 - float4 d = min(d1,d2); // F1 is now in d - d2 = max(d1,d2); // Make sure we keep all candidates for F2 - d.xy = (d.x < d.y) ? d.xy : d.yx; // Swap smallest to d.x - d.xz = (d.x < d.z) ? d.xz : d.zx; - d.xw = (d.x < d.w) ? d.xw : d.wx; // F1 is now in d.x - d.yzw = min(d.yzw, d2.yzw); // F2 now not in d2.yzw - d.y = min(d.y, d.z); // nor in d.z - d.y = min(d.y, d.w); // nor in d.w - d.y = min(d.y, d2.x); // F2 is now in d.y - return sqrt(d.xy); // F1 and F2 - } - } -} diff --git a/Economy.Shared/Unity.Mathematics/Noise/cellular3D.cs b/Economy.Shared/Unity.Mathematics/Noise/cellular3D.cs deleted file mode 100644 index 244000145..000000000 --- a/Economy.Shared/Unity.Mathematics/Noise/cellular3D.cs +++ /dev/null @@ -1,169 +0,0 @@ -// Cellular noise ("Worley noise") in 3D in GLSL. -// Copyright (c) Stefan Gustavson 2011-04-19. All rights reserved. -// This code is released under the conditions of the MIT license. -// See LICENSE file for details. -// https://github.com/stegu/webgl-noise - -using static Unity.Mathematics.math; - -namespace Unity.Mathematics -{ - public static partial class noise - { - // Cellular noise, returning F1 and F2 in a float2. - // 3x3x3 search region for good F2 everywhere, but a lot - // slower than the 2x2x2 version. - // The code below is a bit scary even to its author, - // but it has at least half decent performance on a - // math.modern GPU. In any case, it beats any software - // implementation of Worley noise hands down. - - public static float2 cellular(float3 P) - { - const float K = 0.142857142857f; // 1/7 - const float Ko = 0.428571428571f; // 1/2-K/2 - const float K2 = 0.020408163265306f; // 1/(7*7) - const float Kz = 0.166666666667f; // 1/6 - const float Kzo = 0.416666666667f; // 1/2-1/6*2 - const float jitter = 1.0f; // smaller jitter gives more regular pattern - - float3 Pi = mod289(floor(P)); - float3 Pf = frac(P) - 0.5f; - - float3 Pfx = Pf.x + float3(1.0f, 0.0f, -1.0f); - float3 Pfy = Pf.y + float3(1.0f, 0.0f, -1.0f); - float3 Pfz = Pf.z + float3(1.0f, 0.0f, -1.0f); - - float3 p = permute(Pi.x + float3(-1.0f, 0.0f, 1.0f)); - float3 p1 = permute(p + Pi.y - 1.0f); - float3 p2 = permute(p + Pi.y); - float3 p3 = permute(p + Pi.y + 1.0f); - - float3 p11 = permute(p1 + Pi.z - 1.0f); - float3 p12 = permute(p1 + Pi.z); - float3 p13 = permute(p1 + Pi.z + 1.0f); - - float3 p21 = permute(p2 + Pi.z - 1.0f); - float3 p22 = permute(p2 + Pi.z); - float3 p23 = permute(p2 + Pi.z + 1.0f); - - float3 p31 = permute(p3 + Pi.z - 1.0f); - float3 p32 = permute(p3 + Pi.z); - float3 p33 = permute(p3 + Pi.z + 1.0f); - - float3 ox11 = frac(p11 * K) - Ko; - float3 oy11 = mod7(floor(p11 * K)) * K - Ko; - float3 oz11 = floor(p11 * K2) * Kz - Kzo; // p11 < 289 guaranteed - - float3 ox12 = frac(p12 * K) - Ko; - float3 oy12 = mod7(floor(p12 * K)) * K - Ko; - float3 oz12 = floor(p12 * K2) * Kz - Kzo; - - float3 ox13 = frac(p13 * K) - Ko; - float3 oy13 = mod7(floor(p13 * K)) * K - Ko; - float3 oz13 = floor(p13 * K2) * Kz - Kzo; - - float3 ox21 = frac(p21 * K) - Ko; - float3 oy21 = mod7(floor(p21 * K)) * K - Ko; - float3 oz21 = floor(p21 * K2) * Kz - Kzo; - - float3 ox22 = frac(p22 * K) - Ko; - float3 oy22 = mod7(floor(p22 * K)) * K - Ko; - float3 oz22 = floor(p22 * K2) * Kz - Kzo; - - float3 ox23 = frac(p23 * K) - Ko; - float3 oy23 = mod7(floor(p23 * K)) * K - Ko; - float3 oz23 = floor(p23 * K2) * Kz - Kzo; - - float3 ox31 = frac(p31 * K) - Ko; - float3 oy31 = mod7(floor(p31 * K)) * K - Ko; - float3 oz31 = floor(p31 * K2) * Kz - Kzo; - - float3 ox32 = frac(p32 * K) - Ko; - float3 oy32 = mod7(floor(p32 * K)) * K - Ko; - float3 oz32 = floor(p32 * K2) * Kz - Kzo; - - float3 ox33 = frac(p33 * K) - Ko; - float3 oy33 = mod7(floor(p33 * K)) * K - Ko; - float3 oz33 = floor(p33 * K2) * Kz - Kzo; - - float3 dx11 = Pfx + jitter * ox11; - float3 dy11 = Pfy.x + jitter * oy11; - float3 dz11 = Pfz.x + jitter * oz11; - - float3 dx12 = Pfx + jitter * ox12; - float3 dy12 = Pfy.x + jitter * oy12; - float3 dz12 = Pfz.y + jitter * oz12; - - float3 dx13 = Pfx + jitter * ox13; - float3 dy13 = Pfy.x + jitter * oy13; - float3 dz13 = Pfz.z + jitter * oz13; - - float3 dx21 = Pfx + jitter * ox21; - float3 dy21 = Pfy.y + jitter * oy21; - float3 dz21 = Pfz.x + jitter * oz21; - - float3 dx22 = Pfx + jitter * ox22; - float3 dy22 = Pfy.y + jitter * oy22; - float3 dz22 = Pfz.y + jitter * oz22; - - float3 dx23 = Pfx + jitter * ox23; - float3 dy23 = Pfy.y + jitter * oy23; - float3 dz23 = Pfz.z + jitter * oz23; - - float3 dx31 = Pfx + jitter * ox31; - float3 dy31 = Pfy.z + jitter * oy31; - float3 dz31 = Pfz.x + jitter * oz31; - - float3 dx32 = Pfx + jitter * ox32; - float3 dy32 = Pfy.z + jitter * oy32; - float3 dz32 = Pfz.y + jitter * oz32; - - float3 dx33 = Pfx + jitter * ox33; - float3 dy33 = Pfy.z + jitter * oy33; - float3 dz33 = Pfz.z + jitter * oz33; - - float3 d11 = dx11 * dx11 + dy11 * dy11 + dz11 * dz11; - float3 d12 = dx12 * dx12 + dy12 * dy12 + dz12 * dz12; - float3 d13 = dx13 * dx13 + dy13 * dy13 + dz13 * dz13; - float3 d21 = dx21 * dx21 + dy21 * dy21 + dz21 * dz21; - float3 d22 = dx22 * dx22 + dy22 * dy22 + dz22 * dz22; - float3 d23 = dx23 * dx23 + dy23 * dy23 + dz23 * dz23; - float3 d31 = dx31 * dx31 + dy31 * dy31 + dz31 * dz31; - float3 d32 = dx32 * dx32 + dy32 * dy32 + dz32 * dz32; - float3 d33 = dx33 * dx33 + dy33 * dy33 + dz33 * dz33; - - // Sort out the two smallest distances (F1, F2) - // Do it right and sort out both F1 and F2 - float3 d1a = min(d11, d12); - d12 = max(d11, d12); - d11 = min(d1a, d13); // Smallest now not in d12 or d13 - d13 = max(d1a, d13); - d12 = min(d12, d13); // 2nd smallest now not in d13 - float3 d2a = min(d21, d22); - d22 = max(d21, d22); - d21 = min(d2a, d23); // Smallest now not in d22 or d23 - d23 = max(d2a, d23); - d22 = min(d22, d23); // 2nd smallest now not in d23 - float3 d3a = min(d31, d32); - d32 = max(d31, d32); - d31 = min(d3a, d33); // Smallest now not in d32 or d33 - d33 = max(d3a, d33); - d32 = min(d32, d33); // 2nd smallest now not in d33 - float3 da = min(d11, d21); - d21 = max(d11, d21); - d11 = min(da, d31); // Smallest now in d11 - d31 = max(da, d31); // 2nd smallest now not in d31 - d11.xy = (d11.x < d11.y) ? d11.xy : d11.yx; - d11.xz = (d11.x < d11.z) ? d11.xz : d11.zx; // d11.x now smallest - d12 = min(d12, d21); // 2nd smallest now not in d21 - d12 = min(d12, d22); // nor in d22 - d12 = min(d12, d31); // nor in d31 - d12 = min(d12, d32); // nor in d32 - d11.yz = min(d11.yz, d12.xy); // nor in d12.yz - d11.y = min(d11.y, d12.z); // Only two more to go - d11.y = min(d11.y, d11.z); // Done! (Phew!) - return sqrt(d11.xy); // F1, F2 - } - } -} diff --git a/Economy.Shared/Unity.Mathematics/Noise/classicnoise2D.cs b/Economy.Shared/Unity.Mathematics/Noise/classicnoise2D.cs deleted file mode 100644 index fa4712a82..000000000 --- a/Economy.Shared/Unity.Mathematics/Noise/classicnoise2D.cs +++ /dev/null @@ -1,102 +0,0 @@ -// -// GLSL textureless classic 2D noise "cnoise", -// with an RSL-style periodic variant "pnoise". -// Author: Stefan Gustavson (stefan.gustavson@liu.se) -// Version: 2011-08-22 -// -// Many thanks to Ian McEwan of Ashima Arts for the -// ideas for permutation and gradient selection. -// -// Copyright (c) 2011 Stefan Gustavson. All rights reserved. -// Distributed under the MIT license. See LICENSE file. -// https://github.com/stegu/webgl-noise -// - -using static Unity.Mathematics.math; - -namespace Unity.Mathematics -{ - public static partial class noise - { - // Classic Perlin noise - public static float cnoise(float2 P) - { - float4 Pi = floor(P.xyxy) + float4(0.0f, 0.0f, 1.0f, 1.0f); - float4 Pf = frac(P.xyxy) - float4(0.0f, 0.0f, 1.0f, 1.0f); - Pi = mod289(Pi); // To avoid truncation effects in permutation - float4 ix = Pi.xzxz; - float4 iy = Pi.yyww; - float4 fx = Pf.xzxz; - float4 fy = Pf.yyww; - - float4 i = permute(permute(ix) + iy); - - float4 gx = frac(i * (1.0f / 41.0f)) * 2.0f - 1.0f; - float4 gy = abs(gx) - 0.5f; - float4 tx = floor(gx + 0.5f); - gx = gx - tx; - - float2 g00 = float2(gx.x, gy.x); - float2 g10 = float2(gx.y, gy.y); - float2 g01 = float2(gx.z, gy.z); - float2 g11 = float2(gx.w, gy.w); - - float4 norm = taylorInvSqrt(float4(dot(g00, g00), dot(g01, g01), dot(g10, g10), dot(g11, g11))); - g00 *= norm.x; - g01 *= norm.y; - g10 *= norm.z; - g11 *= norm.w; - - float n00 = dot(g00, float2(fx.x, fy.x)); - float n10 = dot(g10, float2(fx.y, fy.y)); - float n01 = dot(g01, float2(fx.z, fy.z)); - float n11 = dot(g11, float2(fx.w, fy.w)); - - float2 fade_xy = fade(Pf.xy); - float2 n_x = lerp(float2(n00, n01), float2(n10, n11), fade_xy.x); - float n_xy = lerp(n_x.x, n_x.y, fade_xy.y); - return 2.3f * n_xy; - } - - // Classic Perlin noise, periodic variant - public static float pnoise(float2 P, float2 rep) - { - float4 Pi = floor(P.xyxy) + float4(0.0f, 0.0f, 1.0f, 1.0f); - float4 Pf = frac(P.xyxy) - float4(0.0f, 0.0f, 1.0f, 1.0f); - Pi = fmod(Pi, rep.xyxy); // To create noise with explicit period - Pi = mod289(Pi); // To avoid truncation effects in permutation - float4 ix = Pi.xzxz; - float4 iy = Pi.yyww; - float4 fx = Pf.xzxz; - float4 fy = Pf.yyww; - - float4 i = permute(permute(ix) + iy); - - float4 gx = frac(i * (1.0f / 41.0f)) * 2.0f - 1.0f; - float4 gy = abs(gx) - 0.5f; - float4 tx = floor(gx + 0.5f); - gx = gx - tx; - - float2 g00 = float2(gx.x, gy.x); - float2 g10 = float2(gx.y, gy.y); - float2 g01 = float2(gx.z, gy.z); - float2 g11 = float2(gx.w, gy.w); - - float4 norm = taylorInvSqrt(float4(dot(g00, g00), dot(g01, g01), dot(g10, g10), dot(g11, g11))); - g00 *= norm.x; - g01 *= norm.y; - g10 *= norm.z; - g11 *= norm.w; - - float n00 = dot(g00, float2(fx.x, fy.x)); - float n10 = dot(g10, float2(fx.y, fy.y)); - float n01 = dot(g01, float2(fx.z, fy.z)); - float n11 = dot(g11, float2(fx.w, fy.w)); - - float2 fade_xy = fade(Pf.xy); - float2 n_x = lerp(float2(n00, n01), float2(n10, n11), fade_xy.x); - float n_xy = lerp(n_x.x, n_x.y, fade_xy.y); - return 2.3f * n_xy; - } - } -} diff --git a/Economy.Shared/Unity.Mathematics/Noise/classicnoise3D.cs b/Economy.Shared/Unity.Mathematics/Noise/classicnoise3D.cs deleted file mode 100644 index 9015e6bb5..000000000 --- a/Economy.Shared/Unity.Mathematics/Noise/classicnoise3D.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -// GLSL textureless classic 3D noise "cnoise", -// with an RSL-style periodic variant "pnoise". -// Author: Stefan Gustavson (stefan.gustavson@liu.se) -// Version: 2011-10-11 -// -// Many thanks to Ian McEwan of Ashima Arts for the -// ideas for permutation and gradient selection. -// -// Copyright (c) 2011 Stefan Gustavson. All rights reserved. -// Distributed under the MIT license. See LICENSE file. -// https://github.com/stegu/webgl-noise -// - -using static Unity.Mathematics.math; - -namespace Unity.Mathematics -{ - public static partial class noise - { - // Classic Perlin noise - public static float cnoise(float3 P) - { - float3 Pi0 = floor(P); // Integer part for indexing - float3 Pi1 = Pi0 + float3(1.0f); // Integer part + 1 - Pi0 = mod289(Pi0); - Pi1 = mod289(Pi1); - float3 Pf0 = frac(P); // Fractional part for interpolation - float3 Pf1 = Pf0 - float3(1.0f); // Fractional part - 1.0 - float4 ix = float4(Pi0.x, Pi1.x, Pi0.x, Pi1.x); - float4 iy = float4(Pi0.yy, Pi1.yy); - float4 iz0 = Pi0.zzzz; - float4 iz1 = Pi1.zzzz; - - float4 ixy = permute(permute(ix) + iy); - float4 ixy0 = permute(ixy + iz0); - float4 ixy1 = permute(ixy + iz1); - - float4 gx0 = ixy0 * (1.0f / 7.0f); - float4 gy0 = frac(floor(gx0) * (1.0f / 7.0f)) - 0.5f; - gx0 = frac(gx0); - float4 gz0 = float4(0.5f) - abs(gx0) - abs(gy0); - float4 sz0 = step(gz0, float4(0.0f)); - gx0 -= sz0 * (step(0.0f, gx0) - 0.5f); - gy0 -= sz0 * (step(0.0f, gy0) - 0.5f); - - float4 gx1 = ixy1 * (1.0f / 7.0f); - float4 gy1 = frac(floor(gx1) * (1.0f / 7.0f)) - 0.5f; - gx1 = frac(gx1); - float4 gz1 = float4(0.5f) - abs(gx1) - abs(gy1); - float4 sz1 = step(gz1, float4(0.0f)); - gx1 -= sz1 * (step(0.0f, gx1) - 0.5f); - gy1 -= sz1 * (step(0.0f, gy1) - 0.5f); - - float3 g000 = float3(gx0.x, gy0.x, gz0.x); - float3 g100 = float3(gx0.y, gy0.y, gz0.y); - float3 g010 = float3(gx0.z, gy0.z, gz0.z); - float3 g110 = float3(gx0.w, gy0.w, gz0.w); - float3 g001 = float3(gx1.x, gy1.x, gz1.x); - float3 g101 = float3(gx1.y, gy1.y, gz1.y); - float3 g011 = float3(gx1.z, gy1.z, gz1.z); - float3 g111 = float3(gx1.w, gy1.w, gz1.w); - - float4 norm0 = taylorInvSqrt(float4(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110))); - g000 *= norm0.x; - g010 *= norm0.y; - g100 *= norm0.z; - g110 *= norm0.w; - float4 norm1 = taylorInvSqrt(float4(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111))); - g001 *= norm1.x; - g011 *= norm1.y; - g101 *= norm1.z; - g111 *= norm1.w; - - float n000 = dot(g000, Pf0); - float n100 = dot(g100, float3(Pf1.x, Pf0.yz)); - float n010 = dot(g010, float3(Pf0.x, Pf1.y, Pf0.z)); - float n110 = dot(g110, float3(Pf1.xy, Pf0.z)); - float n001 = dot(g001, float3(Pf0.xy, Pf1.z)); - float n101 = dot(g101, float3(Pf1.x, Pf0.y, Pf1.z)); - float n011 = dot(g011, float3(Pf0.x, Pf1.yz)); - float n111 = dot(g111, Pf1); - - float3 fade_xyz = fade(Pf0); - float4 n_z = lerp(float4(n000, n100, n010, n110), float4(n001, n101, n011, n111), fade_xyz.z); - float2 n_yz = lerp(n_z.xy, n_z.zw, fade_xyz.y); - float n_xyz = lerp(n_yz.x, n_yz.y, fade_xyz.x); - return 2.2f * n_xyz; - } - - // Classic Perlin noise, periodic variant - public static float pnoise(float3 P, float3 rep) - { - float3 Pi0 = fmod(floor(P), rep); // Integer part, math.modulo period - float3 Pi1 = fmod(Pi0 + float3(1.0f), rep); // Integer part + 1, math.mod period - Pi0 = mod289(Pi0); - Pi1 = mod289(Pi1); - float3 Pf0 = frac(P); // Fractional part for interpolation - float3 Pf1 = Pf0 - float3(1.0f); // Fractional part - 1.0 - float4 ix = float4(Pi0.x, Pi1.x, Pi0.x, Pi1.x); - float4 iy = float4(Pi0.yy, Pi1.yy); - float4 iz0 = Pi0.zzzz; - float4 iz1 = Pi1.zzzz; - - float4 ixy = permute(permute(ix) + iy); - float4 ixy0 = permute(ixy + iz0); - float4 ixy1 = permute(ixy + iz1); - - float4 gx0 = ixy0 * (1.0f / 7.0f); - float4 gy0 = frac(floor(gx0) * (1.0f / 7.0f)) - 0.5f; - gx0 = frac(gx0); - float4 gz0 = float4(0.5f) - abs(gx0) - abs(gy0); - float4 sz0 = step(gz0, float4(0.0f)); - gx0 -= sz0 * (step(0.0f, gx0) - 0.5f); - gy0 -= sz0 * (step(0.0f, gy0) - 0.5f); - - float4 gx1 = ixy1 * (1.0f / 7.0f); - float4 gy1 = frac(floor(gx1) * (1.0f / 7.0f)) - 0.5f; - gx1 = frac(gx1); - float4 gz1 = float4(0.5f) - abs(gx1) - abs(gy1); - float4 sz1 = step(gz1, float4(0.0f)); - gx1 -= sz1 * (step(0.0f, gx1) - 0.5f); - gy1 -= sz1 * (step(0.0f, gy1) - 0.5f); - - float3 g000 = float3(gx0.x, gy0.x, gz0.x); - float3 g100 = float3(gx0.y, gy0.y, gz0.y); - float3 g010 = float3(gx0.z, gy0.z, gz0.z); - float3 g110 = float3(gx0.w, gy0.w, gz0.w); - float3 g001 = float3(gx1.x, gy1.x, gz1.x); - float3 g101 = float3(gx1.y, gy1.y, gz1.y); - float3 g011 = float3(gx1.z, gy1.z, gz1.z); - float3 g111 = float3(gx1.w, gy1.w, gz1.w); - - float4 norm0 = taylorInvSqrt(float4(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110))); - g000 *= norm0.x; - g010 *= norm0.y; - g100 *= norm0.z; - g110 *= norm0.w; - float4 norm1 = taylorInvSqrt(float4(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111))); - g001 *= norm1.x; - g011 *= norm1.y; - g101 *= norm1.z; - g111 *= norm1.w; - - float n000 = dot(g000, Pf0); - float n100 = dot(g100, float3(Pf1.x, Pf0.yz)); - float n010 = dot(g010, float3(Pf0.x, Pf1.y, Pf0.z)); - float n110 = dot(g110, float3(Pf1.xy, Pf0.z)); - float n001 = dot(g001, float3(Pf0.xy, Pf1.z)); - float n101 = dot(g101, float3(Pf1.x, Pf0.y, Pf1.z)); - float n011 = dot(g011, float3(Pf0.x, Pf1.yz)); - float n111 = dot(g111, Pf1); - - float3 fade_xyz = fade(Pf0); - float4 n_z = lerp(float4(n000, n100, n010, n110), float4(n001, n101, n011, n111), fade_xyz.z); - float2 n_yz = lerp(n_z.xy, n_z.zw, fade_xyz.y); - float n_xyz = lerp(n_yz.x, n_yz.y, fade_xyz.x); - return 2.2f * n_xyz; - } - } -} diff --git a/Economy.Shared/Unity.Mathematics/Noise/classicnoise4D.cs b/Economy.Shared/Unity.Mathematics/Noise/classicnoise4D.cs deleted file mode 100644 index 57a9116b1..000000000 --- a/Economy.Shared/Unity.Mathematics/Noise/classicnoise4D.cs +++ /dev/null @@ -1,291 +0,0 @@ -// -// GLSL textureless classic 4D noise "cnoise", -// with an RSL-style periodic variant "pnoise". -// Author: Stefan Gustavson (stefan.gustavson@liu.se) -// Version: 2011-08-22 -// -// Many thanks to Ian McEwan of Ashima Arts for the -// ideas for permutation and gradient selection. -// -// Copyright (c) 2011 Stefan Gustavson. All rights reserved. -// Distributed under the MIT license. See LICENSE file. -// https://github.com/stegu/webgl-noise -// - -using static Unity.Mathematics.math; - -namespace Unity.Mathematics -{ - public static partial class noise - { - // Classic Perlin noise - public static float cnoise(float4 P) - { - float4 Pi0 = floor(P); // Integer part for indexing - float4 Pi1 = Pi0 + 1.0f; // Integer part + 1 - Pi0 = mod289(Pi0); - Pi1 = mod289(Pi1); - float4 Pf0 = frac(P); // Fractional part for interpolation - float4 Pf1 = Pf0 - 1.0f; // Fractional part - 1.0 - float4 ix = float4(Pi0.x, Pi1.x, Pi0.x, Pi1.x); - float4 iy = float4(Pi0.yy, Pi1.yy); - float4 iz0 = float4(Pi0.zzzz); - float4 iz1 = float4(Pi1.zzzz); - float4 iw0 = float4(Pi0.wwww); - float4 iw1 = float4(Pi1.wwww); - - float4 ixy = permute(permute(ix) + iy); - float4 ixy0 = permute(ixy + iz0); - float4 ixy1 = permute(ixy + iz1); - float4 ixy00 = permute(ixy0 + iw0); - float4 ixy01 = permute(ixy0 + iw1); - float4 ixy10 = permute(ixy1 + iw0); - float4 ixy11 = permute(ixy1 + iw1); - - float4 gx00 = ixy00 * (1.0f / 7.0f); - float4 gy00 = floor(gx00) * (1.0f / 7.0f); - float4 gz00 = floor(gy00) * (1.0f / 6.0f); - gx00 = frac(gx00) - 0.5f; - gy00 = frac(gy00) - 0.5f; - gz00 = frac(gz00) - 0.5f; - float4 gw00 = float4(0.75f) - abs(gx00) - abs(gy00) - abs(gz00); - float4 sw00 = step(gw00, float4(0.0f)); - gx00 -= sw00 * (step(0.0f, gx00) - 0.5f); - gy00 -= sw00 * (step(0.0f, gy00) - 0.5f); - - float4 gx01 = ixy01 * (1.0f / 7.0f); - float4 gy01 = floor(gx01) * (1.0f / 7.0f); - float4 gz01 = floor(gy01) * (1.0f / 6.0f); - gx01 = frac(gx01) - 0.5f; - gy01 = frac(gy01) - 0.5f; - gz01 = frac(gz01) - 0.5f; - float4 gw01 = float4(0.75f) - abs(gx01) - abs(gy01) - abs(gz01); - float4 sw01 = step(gw01, float4(0.0f)); - gx01 -= sw01 * (step(0.0f, gx01) - 0.5f); - gy01 -= sw01 * (step(0.0f, gy01) - 0.5f); - - float4 gx10 = ixy10 * (1.0f / 7.0f); - float4 gy10 = floor(gx10) * (1.0f / 7.0f); - float4 gz10 = floor(gy10) * (1.0f / 6.0f); - gx10 = frac(gx10) - 0.5f; - gy10 = frac(gy10) - 0.5f; - gz10 = frac(gz10) - 0.5f; - float4 gw10 = float4(0.75f) - abs(gx10) - abs(gy10) - abs(gz10); - float4 sw10 = step(gw10, float4(0.0f)); - gx10 -= sw10 * (step(0.0f, gx10) - 0.5f); - gy10 -= sw10 * (step(0.0f, gy10) - 0.5f); - - float4 gx11 = ixy11 * (1.0f / 7.0f); - float4 gy11 = floor(gx11) * (1.0f / 7.0f); - float4 gz11 = floor(gy11) * (1.0f / 6.0f); - gx11 = frac(gx11) - 0.5f; - gy11 = frac(gy11) - 0.5f; - gz11 = frac(gz11) - 0.5f; - float4 gw11 = float4(0.75f) - abs(gx11) - abs(gy11) - abs(gz11); - float4 sw11 = step(gw11, float4(0.0f)); - gx11 -= sw11 * (step(0.0f, gx11) - 0.5f); - gy11 -= sw11 * (step(0.0f, gy11) - 0.5f); - - float4 g0000 = float4(gx00.x, gy00.x, gz00.x, gw00.x); - float4 g1000 = float4(gx00.y, gy00.y, gz00.y, gw00.y); - float4 g0100 = float4(gx00.z, gy00.z, gz00.z, gw00.z); - float4 g1100 = float4(gx00.w, gy00.w, gz00.w, gw00.w); - float4 g0010 = float4(gx10.x, gy10.x, gz10.x, gw10.x); - float4 g1010 = float4(gx10.y, gy10.y, gz10.y, gw10.y); - float4 g0110 = float4(gx10.z, gy10.z, gz10.z, gw10.z); - float4 g1110 = float4(gx10.w, gy10.w, gz10.w, gw10.w); - float4 g0001 = float4(gx01.x, gy01.x, gz01.x, gw01.x); - float4 g1001 = float4(gx01.y, gy01.y, gz01.y, gw01.y); - float4 g0101 = float4(gx01.z, gy01.z, gz01.z, gw01.z); - float4 g1101 = float4(gx01.w, gy01.w, gz01.w, gw01.w); - float4 g0011 = float4(gx11.x, gy11.x, gz11.x, gw11.x); - float4 g1011 = float4(gx11.y, gy11.y, gz11.y, gw11.y); - float4 g0111 = float4(gx11.z, gy11.z, gz11.z, gw11.z); - float4 g1111 = float4(gx11.w, gy11.w, gz11.w, gw11.w); - - float4 norm00 = taylorInvSqrt(float4(dot(g0000, g0000), dot(g0100, g0100), dot(g1000, g1000), dot(g1100, g1100))); - g0000 *= norm00.x; - g0100 *= norm00.y; - g1000 *= norm00.z; - g1100 *= norm00.w; - - float4 norm01 = taylorInvSqrt(float4(dot(g0001, g0001), dot(g0101, g0101), dot(g1001, g1001), dot(g1101, g1101))); - g0001 *= norm01.x; - g0101 *= norm01.y; - g1001 *= norm01.z; - g1101 *= norm01.w; - - float4 norm10 = taylorInvSqrt(float4(dot(g0010, g0010), dot(g0110, g0110), dot(g1010, g1010), dot(g1110, g1110))); - g0010 *= norm10.x; - g0110 *= norm10.y; - g1010 *= norm10.z; - g1110 *= norm10.w; - - float4 norm11 = taylorInvSqrt(float4(dot(g0011, g0011), dot(g0111, g0111), dot(g1011, g1011), dot(g1111, g1111))); - g0011 *= norm11.x; - g0111 *= norm11.y; - g1011 *= norm11.z; - g1111 *= norm11.w; - - float n0000 = dot(g0000, Pf0); - float n1000 = dot(g1000, float4(Pf1.x, Pf0.yzw)); - float n0100 = dot(g0100, float4(Pf0.x, Pf1.y, Pf0.zw)); - float n1100 = dot(g1100, float4(Pf1.xy, Pf0.zw)); - float n0010 = dot(g0010, float4(Pf0.xy, Pf1.z, Pf0.w)); - float n1010 = dot(g1010, float4(Pf1.x, Pf0.y, Pf1.z, Pf0.w)); - float n0110 = dot(g0110, float4(Pf0.x, Pf1.yz, Pf0.w)); - float n1110 = dot(g1110, float4(Pf1.xyz, Pf0.w)); - float n0001 = dot(g0001, float4(Pf0.xyz, Pf1.w)); - float n1001 = dot(g1001, float4(Pf1.x, Pf0.yz, Pf1.w)); - float n0101 = dot(g0101, float4(Pf0.x, Pf1.y, Pf0.z, Pf1.w)); - float n1101 = dot(g1101, float4(Pf1.xy, Pf0.z, Pf1.w)); - float n0011 = dot(g0011, float4(Pf0.xy, Pf1.zw)); - float n1011 = dot(g1011, float4(Pf1.x, Pf0.y, Pf1.zw)); - float n0111 = dot(g0111, float4(Pf0.x, Pf1.yzw)); - float n1111 = dot(g1111, Pf1); - - float4 fade_xyzw = fade(Pf0); - float4 n_0w = lerp(float4(n0000, n1000, n0100, n1100), float4(n0001, n1001, n0101, n1101), fade_xyzw.w); - float4 n_1w = lerp(float4(n0010, n1010, n0110, n1110), float4(n0011, n1011, n0111, n1111), fade_xyzw.w); - float4 n_zw = lerp(n_0w, n_1w, fade_xyzw.z); - float2 n_yzw = lerp(n_zw.xy, n_zw.zw, fade_xyzw.y); - float n_xyzw = lerp(n_yzw.x, n_yzw.y, fade_xyzw.x); - return 2.2f * n_xyzw; - } - - // Classic Perlin noise, periodic version - public static float pnoise(float4 P, float4 rep) - { - float4 Pi0 = fmod(floor(P), rep); // Integer part math.modulo rep - float4 Pi1 = fmod(Pi0 + 1.0f, rep); // Integer part + 1 math.mod rep - Pi0 = mod289(Pi0); - Pi1 = mod289(Pi1); - float4 Pf0 = frac(P); // Fractional part for interpolation - float4 Pf1 = Pf0 - 1.0f; // Fractional part - 1.0 - float4 ix = float4(Pi0.x, Pi1.x, Pi0.x, Pi1.x); - float4 iy = float4(Pi0.yy, Pi1.yy); - float4 iz0 = float4(Pi0.zzzz); - float4 iz1 = float4(Pi1.zzzz); - float4 iw0 = float4(Pi0.wwww); - float4 iw1 = float4(Pi1.wwww); - - float4 ixy = permute(permute(ix) + iy); - float4 ixy0 = permute(ixy + iz0); - float4 ixy1 = permute(ixy + iz1); - float4 ixy00 = permute(ixy0 + iw0); - float4 ixy01 = permute(ixy0 + iw1); - float4 ixy10 = permute(ixy1 + iw0); - float4 ixy11 = permute(ixy1 + iw1); - - float4 gx00 = ixy00 * (1.0f / 7.0f); - float4 gy00 = floor(gx00) * (1.0f / 7.0f); - float4 gz00 = floor(gy00) * (1.0f / 6.0f); - gx00 = frac(gx00) - 0.5f; - gy00 = frac(gy00) - 0.5f; - gz00 = frac(gz00) - 0.5f; - float4 gw00 = float4(0.75f) - abs(gx00) - abs(gy00) - abs(gz00); - float4 sw00 = step(gw00, float4(0.0f)); - gx00 -= sw00 * (step(0.0f, gx00) - 0.5f); - gy00 -= sw00 * (step(0.0f, gy00) - 0.5f); - - float4 gx01 = ixy01 * (1.0f / 7.0f); - float4 gy01 = floor(gx01) * (1.0f / 7.0f); - float4 gz01 = floor(gy01) * (1.0f / 6.0f); - gx01 = frac(gx01) - 0.5f; - gy01 = frac(gy01) - 0.5f; - gz01 = frac(gz01) - 0.5f; - float4 gw01 = float4(0.75f) - abs(gx01) - abs(gy01) - abs(gz01); - float4 sw01 = step(gw01, float4(0.0f)); - gx01 -= sw01 * (step(0.0f, gx01) - 0.5f); - gy01 -= sw01 * (step(0.0f, gy01) - 0.5f); - - float4 gx10 = ixy10 * (1.0f / 7.0f); - float4 gy10 = floor(gx10) * (1.0f / 7.0f); - float4 gz10 = floor(gy10) * (1.0f / 6.0f); - gx10 = frac(gx10) - 0.5f; - gy10 = frac(gy10) - 0.5f; - gz10 = frac(gz10) - 0.5f; - float4 gw10 = float4(0.75f) - abs(gx10) - abs(gy10) - abs(gz10); - float4 sw10 = step(gw10, float4(0.0f)); - gx10 -= sw10 * (step(0.0f, gx10) - 0.5f); - gy10 -= sw10 * (step(0.0f, gy10) - 0.5f); - - float4 gx11 = ixy11 * (1.0f / 7.0f); - float4 gy11 = floor(gx11) * (1.0f / 7.0f); - float4 gz11 = floor(gy11) * (1.0f / 6.0f); - gx11 = frac(gx11) - 0.5f; - gy11 = frac(gy11) - 0.5f; - gz11 = frac(gz11) - 0.5f; - float4 gw11 = float4(0.75f) - abs(gx11) - abs(gy11) - abs(gz11); - float4 sw11 = step(gw11, float4(0.0f)); - gx11 -= sw11 * (step(0.0f, gx11) - 0.5f); - gy11 -= sw11 * (step(0.0f, gy11) - 0.5f); - - float4 g0000 = float4(gx00.x, gy00.x, gz00.x, gw00.x); - float4 g1000 = float4(gx00.y, gy00.y, gz00.y, gw00.y); - float4 g0100 = float4(gx00.z, gy00.z, gz00.z, gw00.z); - float4 g1100 = float4(gx00.w, gy00.w, gz00.w, gw00.w); - float4 g0010 = float4(gx10.x, gy10.x, gz10.x, gw10.x); - float4 g1010 = float4(gx10.y, gy10.y, gz10.y, gw10.y); - float4 g0110 = float4(gx10.z, gy10.z, gz10.z, gw10.z); - float4 g1110 = float4(gx10.w, gy10.w, gz10.w, gw10.w); - float4 g0001 = float4(gx01.x, gy01.x, gz01.x, gw01.x); - float4 g1001 = float4(gx01.y, gy01.y, gz01.y, gw01.y); - float4 g0101 = float4(gx01.z, gy01.z, gz01.z, gw01.z); - float4 g1101 = float4(gx01.w, gy01.w, gz01.w, gw01.w); - float4 g0011 = float4(gx11.x, gy11.x, gz11.x, gw11.x); - float4 g1011 = float4(gx11.y, gy11.y, gz11.y, gw11.y); - float4 g0111 = float4(gx11.z, gy11.z, gz11.z, gw11.z); - float4 g1111 = float4(gx11.w, gy11.w, gz11.w, gw11.w); - - float4 norm00 = taylorInvSqrt(float4(dot(g0000, g0000), dot(g0100, g0100), dot(g1000, g1000), dot(g1100, g1100))); - g0000 *= norm00.x; - g0100 *= norm00.y; - g1000 *= norm00.z; - g1100 *= norm00.w; - - float4 norm01 = taylorInvSqrt(float4(dot(g0001, g0001), dot(g0101, g0101), dot(g1001, g1001), dot(g1101, g1101))); - g0001 *= norm01.x; - g0101 *= norm01.y; - g1001 *= norm01.z; - g1101 *= norm01.w; - - float4 norm10 = taylorInvSqrt(float4(dot(g0010, g0010), dot(g0110, g0110), dot(g1010, g1010), dot(g1110, g1110))); - g0010 *= norm10.x; - g0110 *= norm10.y; - g1010 *= norm10.z; - g1110 *= norm10.w; - - float4 norm11 = taylorInvSqrt(float4(dot(g0011, g0011), dot(g0111, g0111), dot(g1011, g1011), dot(g1111, g1111))); - g0011 *= norm11.x; - g0111 *= norm11.y; - g1011 *= norm11.z; - g1111 *= norm11.w; - - float n0000 = dot(g0000, Pf0); - float n1000 = dot(g1000, float4(Pf1.x, Pf0.yzw)); - float n0100 = dot(g0100, float4(Pf0.x, Pf1.y, Pf0.zw)); - float n1100 = dot(g1100, float4(Pf1.xy, Pf0.zw)); - float n0010 = dot(g0010, float4(Pf0.xy, Pf1.z, Pf0.w)); - float n1010 = dot(g1010, float4(Pf1.x, Pf0.y, Pf1.z, Pf0.w)); - float n0110 = dot(g0110, float4(Pf0.x, Pf1.yz, Pf0.w)); - float n1110 = dot(g1110, float4(Pf1.xyz, Pf0.w)); - float n0001 = dot(g0001, float4(Pf0.xyz, Pf1.w)); - float n1001 = dot(g1001, float4(Pf1.x, Pf0.yz, Pf1.w)); - float n0101 = dot(g0101, float4(Pf0.x, Pf1.y, Pf0.z, Pf1.w)); - float n1101 = dot(g1101, float4(Pf1.xy, Pf0.z, Pf1.w)); - float n0011 = dot(g0011, float4(Pf0.xy, Pf1.zw)); - float n1011 = dot(g1011, float4(Pf1.x, Pf0.y, Pf1.zw)); - float n0111 = dot(g0111, float4(Pf0.x, Pf1.yzw)); - float n1111 = dot(g1111, Pf1); - - float4 fade_xyzw = fade(Pf0); - float4 n_0w = lerp(float4(n0000, n1000, n0100, n1100), float4(n0001, n1001, n0101, n1101), fade_xyzw.w); - float4 n_1w = lerp(float4(n0010, n1010, n0110, n1110), float4(n0011, n1011, n0111, n1111), fade_xyzw.w); - float4 n_zw = lerp(n_0w, n_1w, fade_xyzw.z); - float2 n_yzw = lerp(n_zw.xy, n_zw.zw, fade_xyzw.y); - float n_xyzw = lerp(n_yzw.x, n_yzw.y, fade_xyzw.x); - return 2.2f * n_xyzw; - } - } -} diff --git a/Economy.Shared/Unity.Mathematics/Noise/common.cs b/Economy.Shared/Unity.Mathematics/Noise/common.cs deleted file mode 100644 index de8007d52..000000000 --- a/Economy.Shared/Unity.Mathematics/Noise/common.cs +++ /dev/null @@ -1,50 +0,0 @@ -using static Unity.Mathematics.math; - -namespace Unity.Mathematics -{ - public static partial class noise - { - // Modulo 289 without a division (only multiplications) - static float mod289(float x) { return x - floor(x * (1.0f / 289.0f)) * 289.0f; } - static float2 mod289(float2 x) { return x - floor(x * (1.0f / 289.0f)) * 289.0f; } - static float3 mod289(float3 x) { return x - floor(x * (1.0f / 289.0f)) * 289.0f; } - static float4 mod289(float4 x) { return x - floor(x * (1.0f / 289.0f)) * 289.0f; } - - // Modulo 7 without a division - static float3 mod7(float3 x) { return x - floor(x * (1.0f / 7.0f)) * 7.0f; } - static float4 mod7(float4 x) { return x - floor(x * (1.0f / 7.0f)) * 7.0f; } - - // Permutation polynomial: (34x^2 + x) math.mod 289 - static float permute(float x) { return mod289((34.0f * x + 1.0f) * x); } - static float3 permute(float3 x) { return mod289((34.0f * x + 1.0f) * x); } - static float4 permute(float4 x) { return mod289((34.0f * x + 1.0f) * x); } - - static float taylorInvSqrt(float r) { return 1.79284291400159f - 0.85373472095314f * r; } - static float4 taylorInvSqrt(float4 r) { return 1.79284291400159f - 0.85373472095314f * r; } - - static float2 fade(float2 t) { return t*t*t*(t*(t*6.0f-15.0f)+10.0f); } - static float3 fade(float3 t) { return t*t*t*(t*(t*6.0f-15.0f)+10.0f); } - static float4 fade(float4 t) { return t*t*t*(t*(t*6.0f-15.0f)+10.0f); } - - static float4 grad4(float j, float4 ip) - { - float4 ones = float4(1.0f, 1.0f, 1.0f, -1.0f); - float3 pxyz = floor(frac(float3(j) * ip.xyz) * 7.0f) * ip.z - 1.0f; - float pw = 1.5f - dot(abs(pxyz), ones.xyz); - float4 p = float4(pxyz, pw); - float4 s = float4(p < 0.0f); - p.xyz = p.xyz + (s.xyz*2.0f - 1.0f) * s.www; - return p; - } - - // Hashed 2-D gradients with an extra rotation. - // (The constant 0.0243902439 is 1/41) - static float2 rgrad2(float2 p, float rot) - { - // For more isotropic gradients, math.sin/math.cos can be used instead. - float u = permute(permute(p.x) + p.y) * 0.0243902439f + rot; // Rotate by shift - u = frac(u) * 6.28318530718f; // 2*pi - return float2(cos(u), sin(u)); - } - } -} diff --git a/Economy.Shared/Unity.Mathematics/Noise/noise2D.cs b/Economy.Shared/Unity.Mathematics/Noise/noise2D.cs deleted file mode 100644 index a40a1b3c3..000000000 --- a/Economy.Shared/Unity.Mathematics/Noise/noise2D.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Description : Array and textureless GLSL 2D simplex noise function. -// Author : Ian McEwan, Ashima Arts. -// Maintainer : stegu -// Lastmath.mod : 20110822 (ijm) -// License : Copyright (C) 2011 Ashima Arts. All rights reserved. -// Distributed under the MIT License. See LICENSE file. -// https://github.com/ashima/webgl-noise -// https://github.com/stegu/webgl-noise -// - -using static Unity.Mathematics.math; - -namespace Unity.Mathematics -{ - public static partial class noise - { - public static float snoise(float2 v) - { - float4 C = float4(0.211324865405187f, // (3.0-math.sqrt(3.0))/6.0 - 0.366025403784439f, // 0.5*(math.sqrt(3.0)-1.0) - -0.577350269189626f, // -1.0 + 2.0 * C.x - 0.024390243902439f); // 1.0 / 41.0 - // First corner - float2 i = floor(v + dot(v, C.yy)); - float2 x0 = v - i + dot(i, C.xx); - - // Other corners - float2 i1; - //i1.x = math.step( x0.y, x0.x ); // x0.x > x0.y ? 1.0 : 0.0 - //i1.y = 1.0 - i1.x; - i1 = (x0.x > x0.y) ? float2(1.0f, 0.0f) : float2(0.0f, 1.0f); - // x0 = x0 - 0.0 + 0.0 * C.xx ; - // x1 = x0 - i1 + 1.0 * C.xx ; - // x2 = x0 - 1.0 + 2.0 * C.xx ; - float4 x12 = x0.xyxy + C.xxzz; - x12.xy -= i1; - - // Permutations - i = mod289(i); // Avoid truncation effects in permutation - float3 p = permute(permute(i.y + float3(0.0f, i1.y, 1.0f)) + i.x + float3(0.0f, i1.x, 1.0f)); - - float3 m = max(0.5f - float3(dot(x0, x0), dot(x12.xy, x12.xy), dot(x12.zw, x12.zw)), 0.0f); - m = m * m; - m = m * m; - - // Gradients: 41 points uniformly over a line, mapped onto a diamond. - // The ring size 17*17 = 289 is close to a multiple of 41 (41*7 = 287) - - float3 x = 2.0f * frac(p * C.www) - 1.0f; - float3 h = abs(x) - 0.5f; - float3 ox = floor(x + 0.5f); - float3 a0 = x - ox; - - // Normalise gradients implicitly by scaling m - // Approximation of: m *= inversemath.sqrt( a0*a0 + h*h ); - m *= 1.79284291400159f - 0.85373472095314f * (a0 * a0 + h * h); - - // Compute final noise value at P - - float gx = a0.x * x0.x + h.x * x0.y; - float2 gyz = a0.yz * x12.xz + h.yz * x12.yw; - float3 g = float3(gx,gyz); - - return 130.0f * dot(m, g); - } - } -} diff --git a/Economy.Shared/Unity.Mathematics/Noise/noise3D.cs b/Economy.Shared/Unity.Mathematics/Noise/noise3D.cs deleted file mode 100644 index 8c0086cc4..000000000 --- a/Economy.Shared/Unity.Mathematics/Noise/noise3D.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -// Description : Array and textureless GLSL 2D/3D/4D simplex -// noise functions. -// Author : Ian McEwan, Ashima Arts. -// Maintainer : stegu -// Lastmath.mod : 20110822 (ijm) -// License : Copyright (C) 2011 Ashima Arts. All rights reserved. -// Distributed under the MIT License. See LICENSE file. -// https://github.com/ashima/webgl-noise -// https://github.com/stegu/webgl-noise -// - -using static Unity.Mathematics.math; - -namespace Unity.Mathematics -{ - public static partial class noise - { - public static float snoise(float3 v) - { - float2 C = float2(1.0f / 6.0f, 1.0f / 3.0f); - float4 D = float4(0.0f, 0.5f, 1.0f, 2.0f); - - // First corner - float3 i = floor(v + dot(v, C.yyy)); - float3 x0 = v - i + dot(i, C.xxx); - - // Other corners - float3 g = step(x0.yzx, x0.xyz); - float3 l = 1.0f - g; - float3 i1 = min(g.xyz, l.zxy); - float3 i2 = max(g.xyz, l.zxy); - - // x0 = x0 - 0.0 + 0.0 * C.xxx; - // x1 = x0 - i1 + 1.0 * C.xxx; - // x2 = x0 - i2 + 2.0 * C.xxx; - // x3 = x0 - 1.0 + 3.0 * C.xxx; - float3 x1 = x0 - i1 + C.xxx; - float3 x2 = x0 - i2 + C.yyy; // 2.0*C.x = 1/3 = C.y - float3 x3 = x0 - D.yyy; // -1.0+3.0*C.x = -0.5 = -D.y - - // Permutations - i = mod289(i); - float4 p = permute(permute(permute( - i.z + float4(0.0f, i1.z, i2.z, 1.0f)) - + i.y + float4(0.0f, i1.y, i2.y, 1.0f)) - + i.x + float4(0.0f, i1.x, i2.x, 1.0f)); - - // Gradients: 7x7 points over a square, mapped onto an octahedron. - // The ring size 17*17 = 289 is close to a multiple of 49 (49*6 = 294) - float n_ = 0.142857142857f; // 1.0/7.0 - float3 ns = n_ * D.wyz - D.xzx; - - float4 j = p - 49.0f * floor(p * ns.z * ns.z); // math.mod(p,7*7) - - float4 x_ = floor(j * ns.z); - float4 y_ = floor(j - 7.0f * x_); // math.mod(j,N) - - float4 x = x_ * ns.x + ns.yyyy; - float4 y = y_ * ns.x + ns.yyyy; - float4 h = 1.0f - abs(x) - abs(y); - - float4 b0 = float4(x.xy, y.xy); - float4 b1 = float4(x.zw, y.zw); - - //float4 s0 = float4(math.lessThan(b0,0.0))*2.0 - 1.0; - //float4 s1 = float4(math.lessThan(b1,0.0))*2.0 - 1.0; - float4 s0 = floor(b0) * 2.0f + 1.0f; - float4 s1 = floor(b1) * 2.0f + 1.0f; - float4 sh = -step(h, float4(0.0f)); - - float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy; - float4 a1 = b1.xzyw + s1.xzyw * sh.zzww; - - float3 p0 = float3(a0.xy, h.x); - float3 p1 = float3(a0.zw, h.y); - float3 p2 = float3(a1.xy, h.z); - float3 p3 = float3(a1.zw, h.w); - - //Normalise gradients - float4 norm = taylorInvSqrt(float4(dot(p0, p0), dot(p1, p1), dot(p2, p2), dot(p3, p3))); - p0 *= norm.x; - p1 *= norm.y; - p2 *= norm.z; - p3 *= norm.w; - - // Mix final noise value - float4 m = max(0.6f - float4(dot(x0, x0), dot(x1, x1), dot(x2, x2), dot(x3, x3)), 0.0f); - m = m * m; - return 42.0f * dot(m * m, float4(dot(p0, x0), dot(p1, x1), dot(p2, x2), dot(p3, x3))); - } - } -} diff --git a/Economy.Shared/Unity.Mathematics/Noise/noise3Dgrad.cs b/Economy.Shared/Unity.Mathematics/Noise/noise3Dgrad.cs deleted file mode 100644 index da024383a..000000000 --- a/Economy.Shared/Unity.Mathematics/Noise/noise3Dgrad.cs +++ /dev/null @@ -1,102 +0,0 @@ -// -// Description : Array and textureless GLSL 2D/3D/4D simplex -// noise functions. -// Author : Ian McEwan, Ashima Arts. -// Maintainer : stegu -// Lastmath.mod : 20110822 (ijm) -// License : Copyright (C) 2011 Ashima Arts. All rights reserved. -// Distributed under the MIT License. See LICENSE file. -// https://github.com/ashima/webgl-noise -// https://github.com/stegu/webgl-noise -// - -using static Unity.Mathematics.math; - -namespace Unity.Mathematics -{ - public static partial class noise - { - public static float snoise(float3 v, out float3 gradient) - { - float2 C = float2(1.0f / 6.0f, 1.0f / 3.0f); - float4 D = float4(0.0f, 0.5f, 1.0f, 2.0f); - - // First corner - float3 i = floor(v + dot(v, C.yyy)); - float3 x0 = v - i + dot(i, C.xxx); - - // Other corners - float3 g = step(x0.yzx, x0.xyz); - float3 l = 1.0f - g; - float3 i1 = min(g.xyz, l.zxy); - float3 i2 = max(g.xyz, l.zxy); - - // x0 = x0 - 0.0 + 0.0 * C.xxx; - // x1 = x0 - i1 + 1.0 * C.xxx; - // x2 = x0 - i2 + 2.0 * C.xxx; - // x3 = x0 - 1.0 + 3.0 * C.xxx; - float3 x1 = x0 - i1 + C.xxx; - float3 x2 = x0 - i2 + C.yyy; // 2.0*C.x = 1/3 = C.y - float3 x3 = x0 - D.yyy; // -1.0+3.0*C.x = -0.5 = -D.y - - // Permutations - i = mod289(i); - float4 p = permute(permute(permute( - i.z + float4(0.0f, i1.z, i2.z, 1.0f)) - + i.y + float4(0.0f, i1.y, i2.y, 1.0f)) - + i.x + float4(0.0f, i1.x, i2.x, 1.0f)); - - // Gradients: 7x7 points over a square, mapped onto an octahedron. - // The ring size 17*17 = 289 is close to a multiple of 49 (49*6 = 294) - float n_ = 0.142857142857f; // 1.0/7.0 - float3 ns = n_ * D.wyz - D.xzx; - - float4 j = p - 49.0f * floor(p * ns.z * ns.z); // math.mod(p,7*7) - - float4 x_ = floor(j * ns.z); - float4 y_ = floor(j - 7.0f * x_); // math.mod(j,N) - - float4 x = x_ * ns.x + ns.yyyy; - float4 y = y_ * ns.x + ns.yyyy; - float4 h = 1.0f - abs(x) - abs(y); - - float4 b0 = float4(x.xy, y.xy); - float4 b1 = float4(x.zw, y.zw); - - //float4 s0 = float4(math.lessThan(b0,0.0))*2.0 - 1.0; - //float4 s1 = float4(math.lessThan(b1,0.0))*2.0 - 1.0; - float4 s0 = floor(b0) * 2.0f + 1.0f; - float4 s1 = floor(b1) * 2.0f + 1.0f; - float4 sh = -step(h, float4(0.0f)); - - float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy; - float4 a1 = b1.xzyw + s1.xzyw * sh.zzww; - - float3 p0 = float3(a0.xy, h.x); - float3 p1 = float3(a0.zw, h.y); - float3 p2 = float3(a1.xy, h.z); - float3 p3 = float3(a1.zw, h.w); - - //Normalise gradients - float4 norm = taylorInvSqrt(float4(dot(p0, p0), dot(p1, p1), dot(p2, p2), dot(p3, p3))); - p0 *= norm.x; - p1 *= norm.y; - p2 *= norm.z; - p3 *= norm.w; - - // Mix final noise value - float4 m = max(0.6f - float4(dot(x0, x0), dot(x1, x1), dot(x2, x2), dot(x3, x3)), 0.0f); - float4 m2 = m * m; - float4 m4 = m2 * m2; - float4 pdotx = float4(dot(p0, x0), dot(p1, x1), dot(p2, x2), dot(p3, x3)); - - // Determath.mine noise gradient - float4 temp = m2 * m * pdotx; - gradient = -8.0f * (temp.x * x0 + temp.y * x1 + temp.z * x2 + temp.w * x3); - gradient += m4.x * p0 + m4.y * p1 + m4.z * p2 + m4.w * p3; - gradient *= 42.0f; - - return 42.0f * dot(m4, pdotx); - } - } -} diff --git a/Economy.Shared/Unity.Mathematics/Noise/noise4D.cs b/Economy.Shared/Unity.Mathematics/Noise/noise4D.cs deleted file mode 100644 index 4dab382da..000000000 --- a/Economy.Shared/Unity.Mathematics/Noise/noise4D.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -// Description : Array and textureless GLSL 2D/3D/4D simplex -// noise functions. -// Author : Ian McEwan, Ashima Arts. -// Maintainer : stegu -// Lastmath.mod : 20110822 (ijm) -// License : Copyright (C) 2011 Ashima Arts. All rights reserved. -// Distributed under the MIT License. See LICENSE file. -// https://github.com/ashima/webgl-noise -// https://github.com/stegu/webgl-noise -// - -using static Unity.Mathematics.math; - -namespace Unity.Mathematics -{ - public static partial class noise - { - public static float snoise(float4 v) - { - // (math.sqrt(5) - 1)/4 = F4, used once below - const float F4 = 0.309016994374947451f; - float4 C = float4( 0.138196601125011f, // (5 - math.sqrt(5))/20 G4 - 0.276393202250021f, // 2 * G4 - 0.414589803375032f, // 3 * G4 - -0.447213595499958f); // -1 + 4 * G4 - - // First corner - float4 i = floor(v + dot(v, float4(F4)) ); - float4 x0 = v - i + dot(i, C.xxxx); - - // Other corners - - // Rank sorting originally contributed by Bill Licea-Kane, AMD (formerly ATI) - float4 i0 = float4(0.0f); - float3 isX = step( x0.yzw, x0.xxx ); - float3 isYZ = step( x0.zww, x0.yyz ); - // i0.x = math.dot( isX, float3( 1.0 ) ); - i0.x = isX.x + isX.y + isX.z; - i0.yzw = 1.0f - isX; - // i0.y += math.dot( isYZ.xy, float2( 1.0 ) ); - i0.y += isYZ.x + isYZ.y; - i0.zw += 1.0f - isYZ.xy; - i0.z += isYZ.z; - i0.w += 1.0f - isYZ.z; - - // i0 now contains the unique values 0,1,2,3 in each channel - float4 i3 = clamp( i0, 0.0f, 1.0f ); - float4 i2 = clamp( i0-1.0f, 0.0f, 1.0f ); - float4 i1 = clamp( i0-2.0f, 0.0f, 1.0f ); - - // x0 = x0 - 0.0 + 0.0 * C.xxxx - // x1 = x0 - i1 + 1.0 * C.xxxx - // x2 = x0 - i2 + 2.0 * C.xxxx - // x3 = x0 - i3 + 3.0 * C.xxxx - // x4 = x0 - 1.0 + 4.0 * C.xxxx - float4 x1 = x0 - i1 + C.xxxx; - float4 x2 = x0 - i2 + C.yyyy; - float4 x3 = x0 - i3 + C.zzzz; - float4 x4 = x0 + C.wwww; - - // Permutations - i = mod289(i); - float j0 = permute( permute( permute( permute(i.w) + i.z) + i.y) + i.x); - float4 j1 = permute( permute( permute( permute ( - i.w + float4(i1.w, i2.w, i3.w, 1.0f )) - + i.z + float4(i1.z, i2.z, i3.z, 1.0f )) - + i.y + float4(i1.y, i2.y, i3.y, 1.0f )) - + i.x + float4(i1.x, i2.x, i3.x, 1.0f )); - - // Gradients: 7x7x6 points over a cube, mapped onto a 4-cross polytope - // 7*7*6 = 294, which is close to the ring size 17*17 = 289. - float4 ip = float4(1.0f/294.0f, 1.0f/49.0f, 1.0f/7.0f, 0.0f) ; - - float4 p0 = grad4(j0, ip); - float4 p1 = grad4(j1.x, ip); - float4 p2 = grad4(j1.y, ip); - float4 p3 = grad4(j1.z, ip); - float4 p4 = grad4(j1.w, ip); - - // Normalise gradients - float4 norm = taylorInvSqrt(float4(dot(p0,p0), dot(p1,p1), dot(p2, p2), dot(p3,p3))); - p0 *= norm.x; - p1 *= norm.y; - p2 *= norm.z; - p3 *= norm.w; - p4 *= taylorInvSqrt(dot(p4,p4)); - - // Mix contributions from the five corners - float3 m0 = max(0.6f - float3(dot(x0,x0), dot(x1,x1), dot(x2,x2)), 0.0f); - float2 m1 = max(0.6f - float2(dot(x3,x3), dot(x4,x4) ), 0.0f); - m0 = m0 * m0; - m1 = m1 * m1; - return 49.0f * ( dot(m0*m0, float3( dot( p0, x0 ), dot( p1, x1 ), dot( p2, x2 ))) - + dot(m1*m1, float2( dot( p3, x3 ), dot( p4, x4 ) ) ) ) ; - - } - } -} diff --git a/Economy.Shared/Unity.Mathematics/Noise/psrdnoise2D.cs b/Economy.Shared/Unity.Mathematics/Noise/psrdnoise2D.cs deleted file mode 100644 index 0dc8e4375..000000000 --- a/Economy.Shared/Unity.Mathematics/Noise/psrdnoise2D.cs +++ /dev/null @@ -1,439 +0,0 @@ -// -// float3 psrdnoise(float2 pos, float2 per, float rot) -// float3 psrdnoise(float2 pos, float2 per) -// float psrnoise(float2 pos, float2 per, float rot) -// float psrnoise(float2 pos, float2 per) -// float3 srdnoise(float2 pos, float rot) -// float3 srdnoise(float2 pos) -// float srnoise(float2 pos, float rot) -// float srnoise(float2 pos) -// -// Periodic (tiling) 2-D simplex noise (hexagonal lattice gradient noise) -// with rotating gradients and analytic derivatives. -// Variants also without the derivative (no "d" in the name), without -// the tiling property (no "p" in the name) and without the rotating -// gradients (no "r" in the name). -// -// This is (yet) another variation on simplex noise. It's similar to the -// version presented by Ken Perlin, but the grid is axis-aligned and -// slightly stretched in the y direction to permit rectangular tiling. -// -// The noise can be made to tile seamlessly to any integer period in x and -// any even integer period in y. Odd periods may be specified for y, but -// then the actual tiling period will be twice that number. -// -// The rotating gradients give the appearance of a swirling motion, and can -// serve a similar purpose for animation as motion along z in 3-D noise. -// The rotating gradients in conjunction with the analytic derivatives -// can make "flow noise" effects as presented by Perlin and Neyret. -// -// float3 {p}s{r}dnoise(float2 pos {, float2 per} {, float rot}) -// "pos" is the input (x,y) coordinate -// "per" is the x and y period, where per.x is a positive integer -// and per.y is a positive even integer -// "rot" is the angle to rotate the gradients (any float value, -// where 0.0 is no rotation and 1.0 is one full turn) -// The first component of the 3-element return vector is the noise value. -// The second and third components are the x and y partial derivatives. -// -// float {p}s{r}noise(float2 pos {, float2 per} {, float rot}) -// "pos" is the input (x,y) coordinate -// "per" is the x and y period, where per.x is a positive integer -// and per.y is a positive even integer -// "rot" is the angle to rotate the gradients (any float value, -// where 0.0 is no rotation and 1.0 is one full turn) -// The return value is the noise value. -// Partial derivatives are not computed, making these functions faster. -// -// Author: Stefan Gustavson (stefan.gustavson@gmail.com) -// Version 2016-05-10. -// -// Many thanks to Ian McEwan of Ashima Arts for the -// idea of umath.sing a permutation polynomial. -// -// Copyright (c) 2016 Stefan Gustavson. All rights reserved. -// Distributed under the MIT license. See LICENSE file. -// https://github.com/stegu/webgl-noise -// - -// -// TODO: One-pixel wide artefacts used to occur due to precision issues with -// the gradient indexing. This is specific to this variant of noise, because -// one axis of the simplex grid is perfectly aligned with the input x axis. -// The errors were rare, and they are now very unlikely to ever be visible -// after a quick fix was introduced: a small offset is added to the y coordinate. -// A proper fix would involve umath.sing round() instead of math.floor() in selected -// places, but the quick fix works fine. -// (If you run into problems with this, please let me know.) -// - -using static Unity.Mathematics.math; - -namespace Unity.Mathematics -{ - public static partial class noise - { - // - // 2-D tiling simplex noise with rotating gradients and analytical derivative. - // The first component of the 3-element return vector is the noise value, - // and the second and third components are the x and y partial derivatives. - // - public static float3 psrdnoise(float2 pos, float2 per, float rot) - { - // Hack: offset y slightly to hide some rare artifacts - pos.y += 0.01f; - // Skew to hexagonal grid - float2 uv = float2(pos.x + pos.y * 0.5f, pos.y); - - float2 i0 = floor(uv); - float2 f0 = frac(uv); - // Traversal order - float2 i1 = (f0.x > f0.y) ? float2(1.0f, 0.0f) : float2(0.0f, 1.0f); - - // Unskewed grid points in (x,y) space - float2 p0 = float2(i0.x - i0.y * 0.5f, i0.y); - float2 p1 = float2(p0.x + i1.x - i1.y * 0.5f, p0.y + i1.y); - float2 p2 = float2(p0.x + 0.5f, p0.y + 1.0f); - - // Vectors in unskewed (x,y) coordinates from - // each of the simplex corners to the evaluation point - float2 d0 = pos - p0; - float2 d1 = pos - p1; - float2 d2 = pos - p2; - - // Wrap p0, p1 and p2 to the desired period before gradient hashing: - // wrap points in (x,y), map to (u,v) - float3 xw = fmod(float3(p0.x, p1.x, p2.x), per.x); - float3 yw = fmod(float3(p0.y, p1.y, p2.y), per.y); - float3 iuw = xw + 0.5f * yw; - float3 ivw = yw; - - // Create gradients from indices - float2 g0 = rgrad2(float2(iuw.x, ivw.x), rot); - float2 g1 = rgrad2(float2(iuw.y, ivw.y), rot); - float2 g2 = rgrad2(float2(iuw.z, ivw.z), rot); - - // Gradients math.dot vectors to corresponding corners - // (The derivatives of this are simply the gradients) - float3 w = float3(dot(g0, d0), dot(g1, d1), dot(g2, d2)); - - // Radial weights from corners - // 0.8 is the square of 2/math.sqrt(5), the distance from - // a grid point to the nearest simplex boundary - float3 t = 0.8f - float3(dot(d0, d0), dot(d1, d1), dot(d2, d2)); - - // Partial derivatives for analytical gradient computation - float3 dtdx = -2.0f * float3(d0.x, d1.x, d2.x); - float3 dtdy = -2.0f * float3(d0.y, d1.y, d2.y); - - // Set influence of each surflet to zero outside radius math.sqrt(0.8) - if (t.x < 0.0f) - { - dtdx.x = 0.0f; - dtdy.x = 0.0f; - t.x = 0.0f; - } - if (t.y < 0.0f) - { - dtdx.y = 0.0f; - dtdy.y = 0.0f; - t.y = 0.0f; - } - if (t.z < 0.0f) - { - dtdx.z = 0.0f; - dtdy.z = 0.0f; - t.z = 0.0f; - } - - // Fourth power of t (and third power for derivative) - float3 t2 = t * t; - float3 t4 = t2 * t2; - float3 t3 = t2 * t; - - // Final noise value is: - // sum of ((radial weights) times (gradient math.dot vector from corner)) - float n = dot(t4, w); - - // Final analytical derivative (gradient of a sum of scalar products) - float2 dt0 = float2(dtdx.x, dtdy.x) * 4.0f * t3.x; - float2 dn0 = t4.x * g0 + dt0 * w.x; - float2 dt1 = float2(dtdx.y, dtdy.y) * 4.0f * t3.y; - float2 dn1 = t4.y * g1 + dt1 * w.y; - float2 dt2 = float2(dtdx.z, dtdy.z) * 4.0f * t3.z; - float2 dn2 = t4.z * g2 + dt2 * w.z; - - return 11.0f * float3(n, dn0 + dn1 + dn2); - } - - // - // 2-D tiling simplex noise with fixed gradients - // and analytical derivative. - // This function is implemented as a wrapper to "psrdnoise", - // at the math.minimal math.cost of three extra additions. - // - public static float3 psrdnoise(float2 pos, float2 per) - { - return psrdnoise(pos, per, 0.0f); - } - - // - // 2-D tiling simplex noise with rotating gradients, - // but without the analytical derivative. - // - public static float psrnoise(float2 pos, float2 per, float rot) - { - // Offset y slightly to hide some rare artifacts - pos.y += 0.001f; - // Skew to hexagonal grid - float2 uv = float2(pos.x + pos.y * 0.5f, pos.y); - - float2 i0 = floor(uv); - float2 f0 = frac(uv); - // Traversal order - float2 i1 = (f0.x > f0.y) ? float2(1.0f, 0.0f) : float2(0.0f, 1.0f); - - // Unskewed grid points in (x,y) space - float2 p0 = float2(i0.x - i0.y * 0.5f, i0.y); - float2 p1 = float2(p0.x + i1.x - i1.y * 0.5f, p0.y + i1.y); - float2 p2 = float2(p0.x + 0.5f, p0.y + 1.0f); - - // Vectors in unskewed (x,y) coordinates from - // each of the simplex corners to the evaluation point - float2 d0 = pos - p0; - float2 d1 = pos - p1; - float2 d2 = pos - p2; - - // Wrap p0, p1 and p2 to the desired period before gradient hashing: - // wrap points in (x,y), map to (u,v) - float3 xw = fmod(float3(p0.x, p1.x, p2.x), per.x); - float3 yw = fmod(float3(p0.y, p1.y, p2.y), per.y); - float3 iuw = xw + 0.5f * yw; - float3 ivw = yw; - - // Create gradients from indices - float2 g0 = rgrad2(float2(iuw.x, ivw.x), rot); - float2 g1 = rgrad2(float2(iuw.y, ivw.y), rot); - float2 g2 = rgrad2(float2(iuw.z, ivw.z), rot); - - // Gradients math.dot vectors to corresponding corners - // (The derivatives of this are simply the gradients) - float3 w = float3(dot(g0, d0), dot(g1, d1), dot(g2, d2)); - - // Radial weights from corners - // 0.8 is the square of 2/math.sqrt(5), the distance from - // a grid point to the nearest simplex boundary - float3 t = 0.8f - float3(dot(d0, d0), dot(d1, d1), dot(d2, d2)); - - // Set influence of each surflet to zero outside radius math.sqrt(0.8) - t = max(t, 0.0f); - - // Fourth power of t - float3 t2 = t * t; - float3 t4 = t2 * t2; - - // Final noise value is: - // sum of ((radial weights) times (gradient math.dot vector from corner)) - float n = dot(t4, w); - - // Rescale to cover the range [-1,1] reasonably well - return 11.0f * n; - } - - // - // 2-D tiling simplex noise with fixed gradients, - // without the analytical derivative. - // This function is implemented as a wrapper to "psrnoise", - // at the math.minimal math.cost of three extra additions. - // - public static float psrnoise(float2 pos, float2 per) - { - return psrnoise(pos, per, 0.0f); - } - - // - // 2-D non-tiling simplex noise with rotating gradients and analytical derivative. - // The first component of the 3-element return vector is the noise value, - // and the second and third components are the x and y partial derivatives. - // - public static float3 srdnoise(float2 pos, float rot) - { - // Offset y slightly to hide some rare artifacts - pos.y += 0.001f; - // Skew to hexagonal grid - float2 uv = float2(pos.x + pos.y * 0.5f, pos.y); - - float2 i0 = floor(uv); - float2 f0 = frac(uv); - // Traversal order - float2 i1 = (f0.x > f0.y) ? float2(1.0f, 0.0f) : float2(0.0f, 1.0f); - - // Unskewed grid points in (x,y) space - float2 p0 = float2(i0.x - i0.y * 0.5f, i0.y); - float2 p1 = float2(p0.x + i1.x - i1.y * 0.5f, p0.y + i1.y); - float2 p2 = float2(p0.x + 0.5f, p0.y + 1.0f); - - // Vectors in unskewed (x,y) coordinates from - // each of the simplex corners to the evaluation point - float2 d0 = pos - p0; - float2 d1 = pos - p1; - float2 d2 = pos - p2; - - float3 x = float3(p0.x, p1.x, p2.x); - float3 y = float3(p0.y, p1.y, p2.y); - float3 iuw = x + 0.5f * y; - float3 ivw = y; - - // Avoid precision issues in permutation - iuw = mod289(iuw); - ivw = mod289(ivw); - - // Create gradients from indices - float2 g0 = rgrad2(float2(iuw.x, ivw.x), rot); - float2 g1 = rgrad2(float2(iuw.y, ivw.y), rot); - float2 g2 = rgrad2(float2(iuw.z, ivw.z), rot); - - // Gradients math.dot vectors to corresponding corners - // (The derivatives of this are simply the gradients) - float3 w = float3(dot(g0, d0), dot(g1, d1), dot(g2, d2)); - - // Radial weights from corners - // 0.8 is the square of 2/math.sqrt(5), the distance from - // a grid point to the nearest simplex boundary - float3 t = 0.8f - float3(dot(d0, d0), dot(d1, d1), dot(d2, d2)); - - // Partial derivatives for analytical gradient computation - float3 dtdx = -2.0f * float3(d0.x, d1.x, d2.x); - float3 dtdy = -2.0f * float3(d0.y, d1.y, d2.y); - - // Set influence of each surflet to zero outside radius math.sqrt(0.8) - if (t.x < 0.0f) - { - dtdx.x = 0.0f; - dtdy.x = 0.0f; - t.x = 0.0f; - } - if (t.y < 0.0f) - { - dtdx.y = 0.0f; - dtdy.y = 0.0f; - t.y = 0.0f; - } - if (t.z < 0.0f) - { - dtdx.z = 0.0f; - dtdy.z = 0.0f; - t.z = 0.0f; - } - - // Fourth power of t (and third power for derivative) - float3 t2 = t * t; - float3 t4 = t2 * t2; - float3 t3 = t2 * t; - - // Final noise value is: - // sum of ((radial weights) times (gradient math.dot vector from corner)) - float n = dot(t4, w); - - // Final analytical derivative (gradient of a sum of scalar products) - float2 dt0 = float2(dtdx.x, dtdy.x) * 4.0f * t3.x; - float2 dn0 = t4.x * g0 + dt0 * w.x; - float2 dt1 = float2(dtdx.y, dtdy.y) * 4.0f * t3.y; - float2 dn1 = t4.y * g1 + dt1 * w.y; - float2 dt2 = float2(dtdx.z, dtdy.z) * 4.0f * t3.z; - float2 dn2 = t4.z * g2 + dt2 * w.z; - - return 11.0f * float3(n, dn0 + dn1 + dn2); - } - - // - // 2-D non-tiling simplex noise with fixed gradients and analytical derivative. - // This function is implemented as a wrapper to "srdnoise", - // at the math.minimal math.cost of three extra additions. - // - public static float3 srdnoise(float2 pos) - { - return srdnoise(pos, 0.0f); - } - - // - // 2-D non-tiling simplex noise with rotating gradients, - // without the analytical derivative. - // - public static float srnoise(float2 pos, float rot) - { - // Offset y slightly to hide some rare artifacts - pos.y += 0.001f; - // Skew to hexagonal grid - float2 uv = float2(pos.x + pos.y * 0.5f, pos.y); - - float2 i0 = floor(uv); - float2 f0 = frac(uv); - // Traversal order - float2 i1 = (f0.x > f0.y) ? float2(1.0f, 0.0f) : float2(0.0f, 1.0f); - - // Unskewed grid points in (x,y) space - float2 p0 = float2(i0.x - i0.y * 0.5f, i0.y); - float2 p1 = float2(p0.x + i1.x - i1.y * 0.5f, p0.y + i1.y); - float2 p2 = float2(p0.x + 0.5f, p0.y + 1.0f); - - // Vectors in unskewed (x,y) coordinates from - // each of the simplex corners to the evaluation point - float2 d0 = pos - p0; - float2 d1 = pos - p1; - float2 d2 = pos - p2; - - float3 x = float3(p0.x, p1.x, p2.x); - float3 y = float3(p0.y, p1.y, p2.y); - float3 iuw = x + 0.5f * y; - float3 ivw = y; - - // Avoid precision issues in permutation - iuw = mod289(iuw); - ivw = mod289(ivw); - - // Create gradients from indices - float2 g0 = rgrad2(float2(iuw.x, ivw.x), rot); - float2 g1 = rgrad2(float2(iuw.y, ivw.y), rot); - float2 g2 = rgrad2(float2(iuw.z, ivw.z), rot); - - // Gradients math.dot vectors to corresponding corners - // (The derivatives of this are simply the gradients) - float3 w = float3(dot(g0, d0), dot(g1, d1), dot(g2, d2)); - - // Radial weights from corners - // 0.8 is the square of 2/math.sqrt(5), the distance from - // a grid point to the nearest simplex boundary - float3 t = 0.8f - float3(dot(d0, d0), dot(d1, d1), dot(d2, d2)); - - // Set influence of each surflet to zero outside radius math.sqrt(0.8) - t = max(t, 0.0f); - - // Fourth power of t - float3 t2 = t * t; - float3 t4 = t2 * t2; - - // Final noise value is: - // sum of ((radial weights) times (gradient math.dot vector from corner)) - float n = dot(t4, w); - - // Rescale to cover the range [-1,1] reasonably well - return 11.0f * n; - } - - // - // 2-D non-tiling simplex noise with fixed gradients, - // without the analytical derivative. - // This function is implemented as a wrapper to "srnoise", - // at the math.minimal math.cost of three extra additions. - // Note: if this kind of noise is all you want, there are faster - // GLSL implementations of non-tiling simplex noise out there. - // This one is included mainly for completeness and compatibility - // with the other functions in the file. - // - public static float srnoise(float2 pos) - { - return srnoise(pos, 0.0f); - } - } -} diff --git a/Economy.Shared/Unity.Mathematics/PropertyAttributes.cs b/Economy.Shared/Unity.Mathematics/PropertyAttributes.cs deleted file mode 100644 index 1b6828cb6..000000000 --- a/Economy.Shared/Unity.Mathematics/PropertyAttributes.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace Unity.Mathematics -{ - //public class PostNormalizeAttribute : UnityEngine.PropertyAttribute {} - - //public class DoNotNormalizeAttribute : UnityEngine.PropertyAttribute {} -} \ No newline at end of file diff --git a/Economy.Shared/Unity.Mathematics/Unity.Mathematics.asmdef b/Economy.Shared/Unity.Mathematics/Unity.Mathematics.asmdef deleted file mode 100644 index bb5810592..000000000 --- a/Economy.Shared/Unity.Mathematics/Unity.Mathematics.asmdef +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "Unity.Mathematics", - "allowUnsafeCode": true -} \ No newline at end of file diff --git a/Economy.Shared/Unity.Mathematics/bool2.gen.cs b/Economy.Shared/Unity.Mathematics/bool2.gen.cs deleted file mode 100644 index 168f3d943..000000000 --- a/Economy.Shared/Unity.Mathematics/bool2.gen.cs +++ /dev/null @@ -1,501 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Diagnostics; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [DebuggerTypeProxy(typeof(bool2.DebuggerProxy))] - [System.Serializable] - public partial struct bool2 : System.IEquatable - { - [MarshalAs(UnmanagedType.U1)] - public bool x; - [MarshalAs(UnmanagedType.U1)] - public bool y; - - - /// Constructs a bool2 vector from two bool values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool2(bool x, bool y) - { - this.x = x; - this.y = y; - } - - /// Constructs a bool2 vector from a bool2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool2(bool2 xy) - { - this.x = xy.x; - this.y = xy.y; - } - - /// Constructs a bool2 vector from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool2(bool v) - { - this.x = v; - this.y = v; - } - - - /// Implicitly converts a single bool value to a bool2 vector by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator bool2(bool v) { return new bool2(v); } - - - /// Returns the result of a componentwise equality operation on two bool2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } - - /// Returns the result of a componentwise equality operation on a bool2 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (bool2 lhs, bool rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } - - /// Returns the result of a componentwise equality operation on a bool value and a bool2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (bool lhs, bool2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } - - - /// Returns the result of a componentwise not equal operation on two bool2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } - - /// Returns the result of a componentwise not equal operation on a bool2 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (bool2 lhs, bool rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } - - /// Returns the result of a componentwise not equal operation on a bool value and a bool2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (bool lhs, bool2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } - - - /// Returns the result of a componentwise not operation on a bool2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator ! (bool2 val) { return new bool2 (!val.x, !val.y); } - - - /// Returns the result of a componentwise bitwise and operation on two bool2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator & (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x & rhs.x, lhs.y & rhs.y); } - - /// Returns the result of a componentwise bitwise and operation on a bool2 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator & (bool2 lhs, bool rhs) { return new bool2 (lhs.x & rhs, lhs.y & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a bool value and a bool2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator & (bool lhs, bool2 rhs) { return new bool2 (lhs & rhs.x, lhs & rhs.y); } - - - /// Returns the result of a componentwise bitwise or operation on two bool2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator | (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x | rhs.x, lhs.y | rhs.y); } - - /// Returns the result of a componentwise bitwise or operation on a bool2 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator | (bool2 lhs, bool rhs) { return new bool2 (lhs.x | rhs, lhs.y | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a bool value and a bool2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator | (bool lhs, bool2 rhs) { return new bool2 (lhs | rhs.x, lhs | rhs.y); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two bool2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator ^ (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool2 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator ^ (bool2 lhs, bool rhs) { return new bool2 (lhs.x ^ rhs, lhs.y ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator ^ (bool lhs, bool2 rhs) { return new bool2 (lhs ^ rhs.x, lhs ^ rhs.y); } - - - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(y, y); } - } - - - - /// Returns the bool element at a specified index. - unsafe public bool this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (bool2* array = &this) { return ((bool*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (bool* array = &x) { array[index] = value; } - } - } - - /// Returns true if the bool2 is equal to a given bool2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(bool2 rhs) { return x == rhs.x && y == rhs.y; } - - /// Returns true if the bool2 is equal to a given bool2, false otherwise. - public override bool Equals(object o) { return Equals((bool2)o); } - - - /// Returns a hash code for the bool2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the bool2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("bool2({0}, {1})", x, y); - } - - internal sealed class DebuggerProxy - { - public bool x; - public bool y; - public DebuggerProxy(bool2 v) - { - x = v.x; - y = v.y; - } - } - - } - - public static partial class math - { - /// Returns a bool2 vector constructed from two bool values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 bool2(bool x, bool y) { return new bool2(x, y); } - - /// Returns a bool2 vector constructed from a bool2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 bool2(bool2 xy) { return new bool2(xy); } - - /// Returns a bool2 vector constructed from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 bool2(bool v) { return new bool2(v); } - - /// Returns a uint hash code of a bool2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(bool2 v) - { - return csum(select(uint2(0x90A285BBu, 0x5D19E1D5u), uint2(0xFAAF07DDu, 0x625C45BDu), v)); - } - - /// - /// Returns a uint2 vector hash code of a bool2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(bool2 v) - { - return (select(uint2(0xC9F27FCBu, 0x6D2523B1u), uint2(0x6E2BF6A9u, 0xCC74B3B7u), v)); - } - - /// Returns the result of specified shuffling of the components from two bool2 vectors into a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool shuffle(bool2 a, bool2 b, ShuffleComponent x) - { - return select_shuffle_component(a, b, x); - } - - /// Returns the result of specified shuffling of the components from two bool2 vectors into a bool2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 shuffle(bool2 a, bool2 b, ShuffleComponent x, ShuffleComponent y) - { - return bool2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); - } - - /// Returns the result of specified shuffling of the components from two bool2 vectors into a bool3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 shuffle(bool2 a, bool2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) - { - return bool3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); - } - - /// Returns the result of specified shuffling of the components from two bool2 vectors into a bool4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 shuffle(bool2 a, bool2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) - { - return bool4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static bool select_shuffle_component(bool2 a, bool2 b, ShuffleComponent component) - { - switch(component) - { - case ShuffleComponent.LeftX: - return a.x; - case ShuffleComponent.LeftY: - return a.y; - case ShuffleComponent.RightX: - return b.x; - case ShuffleComponent.RightY: - return b.y; - default: - throw new System.ArgumentException("Invalid shuffle component: " + component); - } - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/bool2x2.gen.cs b/Economy.Shared/Unity.Mathematics/bool2x2.gen.cs deleted file mode 100644 index 0bb5bd494..000000000 --- a/Economy.Shared/Unity.Mathematics/bool2x2.gen.cs +++ /dev/null @@ -1,209 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct bool2x2 : System.IEquatable - { - public bool2 c0; - public bool2 c1; - - - /// Constructs a bool2x2 matrix from two bool2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool2x2(bool2 c0, bool2 c1) - { - this.c0 = c0; - this.c1 = c1; - } - - /// Constructs a bool2x2 matrix from 4 bool values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool2x2(bool m00, bool m01, - bool m10, bool m11) - { - this.c0 = new bool2(m00, m10); - this.c1 = new bool2(m01, m11); - } - - /// Constructs a bool2x2 matrix from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool2x2(bool v) - { - this.c0 = v; - this.c1 = v; - } - - - /// Implicitly converts a single bool value to a bool2x2 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator bool2x2(bool v) { return new bool2x2(v); } - - - /// Returns the result of a componentwise equality operation on two bool2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator == (bool2x2 lhs, bool2x2 rhs) { return new bool2x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } - - /// Returns the result of a componentwise equality operation on a bool2x2 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator == (bool2x2 lhs, bool rhs) { return new bool2x2 (lhs.c0 == rhs, lhs.c1 == rhs); } - - /// Returns the result of a componentwise equality operation on a bool value and a bool2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator == (bool lhs, bool2x2 rhs) { return new bool2x2 (lhs == rhs.c0, lhs == rhs.c1); } - - - /// Returns the result of a componentwise not equal operation on two bool2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator != (bool2x2 lhs, bool2x2 rhs) { return new bool2x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } - - /// Returns the result of a componentwise not equal operation on a bool2x2 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator != (bool2x2 lhs, bool rhs) { return new bool2x2 (lhs.c0 != rhs, lhs.c1 != rhs); } - - /// Returns the result of a componentwise not equal operation on a bool value and a bool2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator != (bool lhs, bool2x2 rhs) { return new bool2x2 (lhs != rhs.c0, lhs != rhs.c1); } - - - /// Returns the result of a componentwise not operation on a bool2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator ! (bool2x2 val) { return new bool2x2 (!val.c0, !val.c1); } - - - /// Returns the result of a componentwise bitwise and operation on two bool2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator & (bool2x2 lhs, bool2x2 rhs) { return new bool2x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); } - - /// Returns the result of a componentwise bitwise and operation on a bool2x2 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator & (bool2x2 lhs, bool rhs) { return new bool2x2 (lhs.c0 & rhs, lhs.c1 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a bool value and a bool2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator & (bool lhs, bool2x2 rhs) { return new bool2x2 (lhs & rhs.c0, lhs & rhs.c1); } - - - /// Returns the result of a componentwise bitwise or operation on two bool2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator | (bool2x2 lhs, bool2x2 rhs) { return new bool2x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); } - - /// Returns the result of a componentwise bitwise or operation on a bool2x2 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator | (bool2x2 lhs, bool rhs) { return new bool2x2 (lhs.c0 | rhs, lhs.c1 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a bool value and a bool2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator | (bool lhs, bool2x2 rhs) { return new bool2x2 (lhs | rhs.c0, lhs | rhs.c1); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two bool2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator ^ (bool2x2 lhs, bool2x2 rhs) { return new bool2x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool2x2 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator ^ (bool2x2 lhs, bool rhs) { return new bool2x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator ^ (bool lhs, bool2x2 rhs) { return new bool2x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); } - - - - /// Returns the bool2 element at a specified index. - unsafe public ref bool2 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (bool2x2* array = &this) { return ref ((bool2*)array)[index]; } - } - } - - /// Returns true if the bool2x2 is equal to a given bool2x2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(bool2x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } - - /// Returns true if the bool2x2 is equal to a given bool2x2, false otherwise. - public override bool Equals(object o) { return Equals((bool2x2)o); } - - - /// Returns a hash code for the bool2x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the bool2x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("bool2x2({0}, {1}, {2}, {3})", c0.x, c1.x, c0.y, c1.y); - } - - } - - public static partial class math - { - /// Returns a bool2x2 matrix constructed from two bool2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 bool2x2(bool2 c0, bool2 c1) { return new bool2x2(c0, c1); } - - /// Returns a bool2x2 matrix constructed from from 4 bool values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 bool2x2(bool m00, bool m01, - bool m10, bool m11) - { - return new bool2x2(m00, m01, - m10, m11); - } - - /// Returns a bool2x2 matrix constructed from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 bool2x2(bool v) { return new bool2x2(v); } - - /// Return the bool2x2 transpose of a bool2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 transpose(bool2x2 v) - { - return bool2x2( - v.c0.x, v.c0.y, - v.c1.x, v.c1.y); - } - - /// Returns a uint hash code of a bool2x2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(bool2x2 v) - { - return csum(select(uint2(0x7AF32C49u, 0xAE131389u), uint2(0x5D1B165Bu, 0x87096CD7u), v.c0) + - select(uint2(0x4C7F6DD1u, 0x4822A3E9u), uint2(0xAAC3C25Du, 0xD21D0945u), v.c1)); - } - - /// - /// Returns a uint2 vector hash code of a bool2x2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(bool2x2 v) - { - return (select(uint2(0x88FCAB2Du, 0x614DA60Du), uint2(0x5BA2C50Bu, 0x8C455ACBu), v.c0) + - select(uint2(0xCD266C89u, 0xF1852A33u), uint2(0x77E35E77u, 0x863E3729u), v.c1)); - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/bool2x3.gen.cs b/Economy.Shared/Unity.Mathematics/bool2x3.gen.cs deleted file mode 100644 index 2204913f1..000000000 --- a/Economy.Shared/Unity.Mathematics/bool2x3.gen.cs +++ /dev/null @@ -1,216 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct bool2x3 : System.IEquatable - { - public bool2 c0; - public bool2 c1; - public bool2 c2; - - - /// Constructs a bool2x3 matrix from three bool2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool2x3(bool2 c0, bool2 c1, bool2 c2) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - } - - /// Constructs a bool2x3 matrix from 6 bool values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool2x3(bool m00, bool m01, bool m02, - bool m10, bool m11, bool m12) - { - this.c0 = new bool2(m00, m10); - this.c1 = new bool2(m01, m11); - this.c2 = new bool2(m02, m12); - } - - /// Constructs a bool2x3 matrix from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool2x3(bool v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - - /// Implicitly converts a single bool value to a bool2x3 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator bool2x3(bool v) { return new bool2x3(v); } - - - /// Returns the result of a componentwise equality operation on two bool2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator == (bool2x3 lhs, bool2x3 rhs) { return new bool2x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } - - /// Returns the result of a componentwise equality operation on a bool2x3 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator == (bool2x3 lhs, bool rhs) { return new bool2x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } - - /// Returns the result of a componentwise equality operation on a bool value and a bool2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator == (bool lhs, bool2x3 rhs) { return new bool2x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } - - - /// Returns the result of a componentwise not equal operation on two bool2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator != (bool2x3 lhs, bool2x3 rhs) { return new bool2x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } - - /// Returns the result of a componentwise not equal operation on a bool2x3 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator != (bool2x3 lhs, bool rhs) { return new bool2x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } - - /// Returns the result of a componentwise not equal operation on a bool value and a bool2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator != (bool lhs, bool2x3 rhs) { return new bool2x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } - - - /// Returns the result of a componentwise not operation on a bool2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator ! (bool2x3 val) { return new bool2x3 (!val.c0, !val.c1, !val.c2); } - - - /// Returns the result of a componentwise bitwise and operation on two bool2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator & (bool2x3 lhs, bool2x3 rhs) { return new bool2x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); } - - /// Returns the result of a componentwise bitwise and operation on a bool2x3 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator & (bool2x3 lhs, bool rhs) { return new bool2x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a bool value and a bool2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator & (bool lhs, bool2x3 rhs) { return new bool2x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); } - - - /// Returns the result of a componentwise bitwise or operation on two bool2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator | (bool2x3 lhs, bool2x3 rhs) { return new bool2x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); } - - /// Returns the result of a componentwise bitwise or operation on a bool2x3 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator | (bool2x3 lhs, bool rhs) { return new bool2x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a bool value and a bool2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator | (bool lhs, bool2x3 rhs) { return new bool2x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two bool2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator ^ (bool2x3 lhs, bool2x3 rhs) { return new bool2x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool2x3 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator ^ (bool2x3 lhs, bool rhs) { return new bool2x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator ^ (bool lhs, bool2x3 rhs) { return new bool2x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); } - - - - /// Returns the bool2 element at a specified index. - unsafe public ref bool2 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (bool2x3* array = &this) { return ref ((bool2*)array)[index]; } - } - } - - /// Returns true if the bool2x3 is equal to a given bool2x3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(bool2x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } - - /// Returns true if the bool2x3 is equal to a given bool2x3, false otherwise. - public override bool Equals(object o) { return Equals((bool2x3)o); } - - - /// Returns a hash code for the bool2x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the bool2x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("bool2x3({0}, {1}, {2}, {3}, {4}, {5})", c0.x, c1.x, c2.x, c0.y, c1.y, c2.y); - } - - } - - public static partial class math - { - /// Returns a bool2x3 matrix constructed from three bool2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 bool2x3(bool2 c0, bool2 c1, bool2 c2) { return new bool2x3(c0, c1, c2); } - - /// Returns a bool2x3 matrix constructed from from 6 bool values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 bool2x3(bool m00, bool m01, bool m02, - bool m10, bool m11, bool m12) - { - return new bool2x3(m00, m01, m02, - m10, m11, m12); - } - - /// Returns a bool2x3 matrix constructed from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 bool2x3(bool v) { return new bool2x3(v); } - - /// Return the bool3x2 transpose of a bool2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 transpose(bool2x3 v) - { - return bool3x2( - v.c0.x, v.c0.y, - v.c1.x, v.c1.y, - v.c2.x, v.c2.y); - } - - /// Returns a uint hash code of a bool2x3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(bool2x3 v) - { - return csum(select(uint2(0x7BE39F3Bu, 0xFAB9913Fu), uint2(0xB4501269u, 0xE04B89FDu), v.c0) + - select(uint2(0xDB3DE101u, 0x7B6D1B4Bu), uint2(0x58399E77u, 0x5EAC29C9u), v.c1) + - select(uint2(0xFC6014F9u, 0x6BF6693Fu), uint2(0x9D1B1D9Bu, 0xF842F5C1u), v.c2)); - } - - /// - /// Returns a uint2 vector hash code of a bool2x3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(bool2x3 v) - { - return (select(uint2(0xA47EC335u, 0xA477DF57u), uint2(0xC4B1493Fu, 0xBA0966D3u), v.c0) + - select(uint2(0xAFBEE253u, 0x5B419C01u), uint2(0x515D90F5u, 0xEC9F68F3u), v.c1) + - select(uint2(0xF9EA92D5u, 0xC2FAFCB9u), uint2(0x616E9CA1u, 0xC5C5394Bu), v.c2)); - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/bool2x4.gen.cs b/Economy.Shared/Unity.Mathematics/bool2x4.gen.cs deleted file mode 100644 index 875d87720..000000000 --- a/Economy.Shared/Unity.Mathematics/bool2x4.gen.cs +++ /dev/null @@ -1,223 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct bool2x4 : System.IEquatable - { - public bool2 c0; - public bool2 c1; - public bool2 c2; - public bool2 c3; - - - /// Constructs a bool2x4 matrix from four bool2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool2x4(bool2 c0, bool2 c1, bool2 c2, bool2 c3) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - this.c3 = c3; - } - - /// Constructs a bool2x4 matrix from 8 bool values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool2x4(bool m00, bool m01, bool m02, bool m03, - bool m10, bool m11, bool m12, bool m13) - { - this.c0 = new bool2(m00, m10); - this.c1 = new bool2(m01, m11); - this.c2 = new bool2(m02, m12); - this.c3 = new bool2(m03, m13); - } - - /// Constructs a bool2x4 matrix from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool2x4(bool v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - - /// Implicitly converts a single bool value to a bool2x4 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator bool2x4(bool v) { return new bool2x4(v); } - - - /// Returns the result of a componentwise equality operation on two bool2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator == (bool2x4 lhs, bool2x4 rhs) { return new bool2x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } - - /// Returns the result of a componentwise equality operation on a bool2x4 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator == (bool2x4 lhs, bool rhs) { return new bool2x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } - - /// Returns the result of a componentwise equality operation on a bool value and a bool2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator == (bool lhs, bool2x4 rhs) { return new bool2x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } - - - /// Returns the result of a componentwise not equal operation on two bool2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator != (bool2x4 lhs, bool2x4 rhs) { return new bool2x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } - - /// Returns the result of a componentwise not equal operation on a bool2x4 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator != (bool2x4 lhs, bool rhs) { return new bool2x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } - - /// Returns the result of a componentwise not equal operation on a bool value and a bool2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator != (bool lhs, bool2x4 rhs) { return new bool2x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } - - - /// Returns the result of a componentwise not operation on a bool2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator ! (bool2x4 val) { return new bool2x4 (!val.c0, !val.c1, !val.c2, !val.c3); } - - - /// Returns the result of a componentwise bitwise and operation on two bool2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator & (bool2x4 lhs, bool2x4 rhs) { return new bool2x4 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2, lhs.c3 & rhs.c3); } - - /// Returns the result of a componentwise bitwise and operation on a bool2x4 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator & (bool2x4 lhs, bool rhs) { return new bool2x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a bool value and a bool2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator & (bool lhs, bool2x4 rhs) { return new bool2x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); } - - - /// Returns the result of a componentwise bitwise or operation on two bool2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator | (bool2x4 lhs, bool2x4 rhs) { return new bool2x4 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2, lhs.c3 | rhs.c3); } - - /// Returns the result of a componentwise bitwise or operation on a bool2x4 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator | (bool2x4 lhs, bool rhs) { return new bool2x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a bool value and a bool2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator | (bool lhs, bool2x4 rhs) { return new bool2x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two bool2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator ^ (bool2x4 lhs, bool2x4 rhs) { return new bool2x4 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2, lhs.c3 ^ rhs.c3); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool2x4 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator ^ (bool2x4 lhs, bool rhs) { return new bool2x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator ^ (bool lhs, bool2x4 rhs) { return new bool2x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); } - - - - /// Returns the bool2 element at a specified index. - unsafe public ref bool2 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (bool2x4* array = &this) { return ref ((bool2*)array)[index]; } - } - } - - /// Returns true if the bool2x4 is equal to a given bool2x4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(bool2x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } - - /// Returns true if the bool2x4 is equal to a given bool2x4, false otherwise. - public override bool Equals(object o) { return Equals((bool2x4)o); } - - - /// Returns a hash code for the bool2x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the bool2x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("bool2x4({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7})", c0.x, c1.x, c2.x, c3.x, c0.y, c1.y, c2.y, c3.y); - } - - } - - public static partial class math - { - /// Returns a bool2x4 matrix constructed from four bool2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 bool2x4(bool2 c0, bool2 c1, bool2 c2, bool2 c3) { return new bool2x4(c0, c1, c2, c3); } - - /// Returns a bool2x4 matrix constructed from from 8 bool values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 bool2x4(bool m00, bool m01, bool m02, bool m03, - bool m10, bool m11, bool m12, bool m13) - { - return new bool2x4(m00, m01, m02, m03, - m10, m11, m12, m13); - } - - /// Returns a bool2x4 matrix constructed from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 bool2x4(bool v) { return new bool2x4(v); } - - /// Return the bool4x2 transpose of a bool2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 transpose(bool2x4 v) - { - return bool4x2( - v.c0.x, v.c0.y, - v.c1.x, v.c1.y, - v.c2.x, v.c2.y, - v.c3.x, v.c3.y); - } - - /// Returns a uint hash code of a bool2x4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(bool2x4 v) - { - return csum(select(uint2(0x45A22087u, 0xFC104C3Bu), uint2(0x5FFF6B19u, 0x5E6CBF3Bu), v.c0) + - select(uint2(0xB546F2A5u, 0xBBCF63E7u), uint2(0xC53F4755u, 0x6985C229u), v.c1) + - select(uint2(0xE133B0B3u, 0xC3E0A3B9u), uint2(0xFE31134Fu, 0x712A34D7u), v.c2) + - select(uint2(0x9D77A59Bu, 0x4942CA39u), uint2(0xB40EC62Du, 0x565ED63Fu), v.c3)); - } - - /// - /// Returns a uint2 vector hash code of a bool2x4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(bool2x4 v) - { - return (select(uint2(0x93C30C2Bu, 0xDCAF0351u), uint2(0x6E050B01u, 0x750FDBF5u), v.c0) + - select(uint2(0x7F3DD499u, 0x52EAAEBBu), uint2(0x4599C793u, 0x83B5E729u), v.c1) + - select(uint2(0xC267163Fu, 0x67BC9149u), uint2(0xAD7C5EC1u, 0x822A7D6Du), v.c2) + - select(uint2(0xB492BF15u, 0xD37220E3u), uint2(0x7AA2C2BDu, 0xE16BC89Du), v.c3)); - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/bool3.gen.cs b/Economy.Shared/Unity.Mathematics/bool3.gen.cs deleted file mode 100644 index 595e9eb9c..000000000 --- a/Economy.Shared/Unity.Mathematics/bool3.gen.cs +++ /dev/null @@ -1,1270 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Diagnostics; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [DebuggerTypeProxy(typeof(bool3.DebuggerProxy))] - [System.Serializable] - public partial struct bool3 : System.IEquatable - { - [MarshalAs(UnmanagedType.U1)] - public bool x; - [MarshalAs(UnmanagedType.U1)] - public bool y; - [MarshalAs(UnmanagedType.U1)] - public bool z; - - - /// Constructs a bool3 vector from three bool values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3(bool x, bool y, bool z) - { - this.x = x; - this.y = y; - this.z = z; - } - - /// Constructs a bool3 vector from a bool value and a bool2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3(bool x, bool2 yz) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - } - - /// Constructs a bool3 vector from a bool2 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3(bool2 xy, bool z) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - } - - /// Constructs a bool3 vector from a bool3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3(bool3 xyz) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - } - - /// Constructs a bool3 vector from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3(bool v) - { - this.x = v; - this.y = v; - this.z = v; - } - - - /// Implicitly converts a single bool value to a bool3 vector by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator bool3(bool v) { return new bool3(v); } - - - /// Returns the result of a componentwise equality operation on two bool3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } - - /// Returns the result of a componentwise equality operation on a bool3 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (bool3 lhs, bool rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } - - /// Returns the result of a componentwise equality operation on a bool value and a bool3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (bool lhs, bool3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } - - - /// Returns the result of a componentwise not equal operation on two bool3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } - - /// Returns the result of a componentwise not equal operation on a bool3 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (bool3 lhs, bool rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } - - /// Returns the result of a componentwise not equal operation on a bool value and a bool3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (bool lhs, bool3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } - - - /// Returns the result of a componentwise not operation on a bool3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator ! (bool3 val) { return new bool3 (!val.x, !val.y, !val.z); } - - - /// Returns the result of a componentwise bitwise and operation on two bool3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator & (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } - - /// Returns the result of a componentwise bitwise and operation on a bool3 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator & (bool3 lhs, bool rhs) { return new bool3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a bool value and a bool3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator & (bool lhs, bool3 rhs) { return new bool3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } - - - /// Returns the result of a componentwise bitwise or operation on two bool3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator | (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } - - /// Returns the result of a componentwise bitwise or operation on a bool3 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator | (bool3 lhs, bool rhs) { return new bool3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a bool value and a bool3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator | (bool lhs, bool3 rhs) { return new bool3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two bool3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator ^ (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool3 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator ^ (bool3 lhs, bool rhs) { return new bool3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator ^ (bool lhs, bool3 rhs) { return new bool3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } - - - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(z, z); } - } - - - - /// Returns the bool element at a specified index. - unsafe public bool this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (bool3* array = &this) { return ((bool*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (bool* array = &x) { array[index] = value; } - } - } - - /// Returns true if the bool3 is equal to a given bool3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(bool3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } - - /// Returns true if the bool3 is equal to a given bool3, false otherwise. - public override bool Equals(object o) { return Equals((bool3)o); } - - - /// Returns a hash code for the bool3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the bool3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("bool3({0}, {1}, {2})", x, y, z); - } - - internal sealed class DebuggerProxy - { - public bool x; - public bool y; - public bool z; - public DebuggerProxy(bool3 v) - { - x = v.x; - y = v.y; - z = v.z; - } - } - - } - - public static partial class math - { - /// Returns a bool3 vector constructed from three bool values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 bool3(bool x, bool y, bool z) { return new bool3(x, y, z); } - - /// Returns a bool3 vector constructed from a bool value and a bool2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 bool3(bool x, bool2 yz) { return new bool3(x, yz); } - - /// Returns a bool3 vector constructed from a bool2 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 bool3(bool2 xy, bool z) { return new bool3(xy, z); } - - /// Returns a bool3 vector constructed from a bool3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 bool3(bool3 xyz) { return new bool3(xyz); } - - /// Returns a bool3 vector constructed from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 bool3(bool v) { return new bool3(v); } - - /// Returns a uint hash code of a bool3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(bool3 v) - { - return csum(select(uint3(0xA1E92D39u, 0x4583C801u, 0x9536A0F5u), uint3(0xAF816615u, 0x9AF8D62Du, 0xE3600729u), v)); - } - - /// - /// Returns a uint3 vector hash code of a bool3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(bool3 v) - { - return (select(uint3(0x5F17300Du, 0x670D6809u, 0x7AF32C49u), uint3(0xAE131389u, 0x5D1B165Bu, 0x87096CD7u), v)); - } - - /// Returns the result of specified shuffling of the components from two bool3 vectors into a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool shuffle(bool3 a, bool3 b, ShuffleComponent x) - { - return select_shuffle_component(a, b, x); - } - - /// Returns the result of specified shuffling of the components from two bool3 vectors into a bool2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 shuffle(bool3 a, bool3 b, ShuffleComponent x, ShuffleComponent y) - { - return bool2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); - } - - /// Returns the result of specified shuffling of the components from two bool3 vectors into a bool3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 shuffle(bool3 a, bool3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) - { - return bool3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); - } - - /// Returns the result of specified shuffling of the components from two bool3 vectors into a bool4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 shuffle(bool3 a, bool3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) - { - return bool4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static bool select_shuffle_component(bool3 a, bool3 b, ShuffleComponent component) - { - switch(component) - { - case ShuffleComponent.LeftX: - return a.x; - case ShuffleComponent.LeftY: - return a.y; - case ShuffleComponent.LeftZ: - return a.z; - case ShuffleComponent.RightX: - return b.x; - case ShuffleComponent.RightY: - return b.y; - case ShuffleComponent.RightZ: - return b.z; - default: - throw new System.ArgumentException("Invalid shuffle component: " + component); - } - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/bool3x2.gen.cs b/Economy.Shared/Unity.Mathematics/bool3x2.gen.cs deleted file mode 100644 index 001d151ce..000000000 --- a/Economy.Shared/Unity.Mathematics/bool3x2.gen.cs +++ /dev/null @@ -1,212 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct bool3x2 : System.IEquatable - { - public bool3 c0; - public bool3 c1; - - - /// Constructs a bool3x2 matrix from two bool3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3x2(bool3 c0, bool3 c1) - { - this.c0 = c0; - this.c1 = c1; - } - - /// Constructs a bool3x2 matrix from 6 bool values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3x2(bool m00, bool m01, - bool m10, bool m11, - bool m20, bool m21) - { - this.c0 = new bool3(m00, m10, m20); - this.c1 = new bool3(m01, m11, m21); - } - - /// Constructs a bool3x2 matrix from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3x2(bool v) - { - this.c0 = v; - this.c1 = v; - } - - - /// Implicitly converts a single bool value to a bool3x2 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator bool3x2(bool v) { return new bool3x2(v); } - - - /// Returns the result of a componentwise equality operation on two bool3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator == (bool3x2 lhs, bool3x2 rhs) { return new bool3x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } - - /// Returns the result of a componentwise equality operation on a bool3x2 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator == (bool3x2 lhs, bool rhs) { return new bool3x2 (lhs.c0 == rhs, lhs.c1 == rhs); } - - /// Returns the result of a componentwise equality operation on a bool value and a bool3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator == (bool lhs, bool3x2 rhs) { return new bool3x2 (lhs == rhs.c0, lhs == rhs.c1); } - - - /// Returns the result of a componentwise not equal operation on two bool3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator != (bool3x2 lhs, bool3x2 rhs) { return new bool3x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } - - /// Returns the result of a componentwise not equal operation on a bool3x2 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator != (bool3x2 lhs, bool rhs) { return new bool3x2 (lhs.c0 != rhs, lhs.c1 != rhs); } - - /// Returns the result of a componentwise not equal operation on a bool value and a bool3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator != (bool lhs, bool3x2 rhs) { return new bool3x2 (lhs != rhs.c0, lhs != rhs.c1); } - - - /// Returns the result of a componentwise not operation on a bool3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator ! (bool3x2 val) { return new bool3x2 (!val.c0, !val.c1); } - - - /// Returns the result of a componentwise bitwise and operation on two bool3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator & (bool3x2 lhs, bool3x2 rhs) { return new bool3x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); } - - /// Returns the result of a componentwise bitwise and operation on a bool3x2 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator & (bool3x2 lhs, bool rhs) { return new bool3x2 (lhs.c0 & rhs, lhs.c1 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a bool value and a bool3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator & (bool lhs, bool3x2 rhs) { return new bool3x2 (lhs & rhs.c0, lhs & rhs.c1); } - - - /// Returns the result of a componentwise bitwise or operation on two bool3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator | (bool3x2 lhs, bool3x2 rhs) { return new bool3x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); } - - /// Returns the result of a componentwise bitwise or operation on a bool3x2 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator | (bool3x2 lhs, bool rhs) { return new bool3x2 (lhs.c0 | rhs, lhs.c1 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a bool value and a bool3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator | (bool lhs, bool3x2 rhs) { return new bool3x2 (lhs | rhs.c0, lhs | rhs.c1); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two bool3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator ^ (bool3x2 lhs, bool3x2 rhs) { return new bool3x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool3x2 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator ^ (bool3x2 lhs, bool rhs) { return new bool3x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator ^ (bool lhs, bool3x2 rhs) { return new bool3x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); } - - - - /// Returns the bool3 element at a specified index. - unsafe public ref bool3 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (bool3x2* array = &this) { return ref ((bool3*)array)[index]; } - } - } - - /// Returns true if the bool3x2 is equal to a given bool3x2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(bool3x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } - - /// Returns true if the bool3x2 is equal to a given bool3x2, false otherwise. - public override bool Equals(object o) { return Equals((bool3x2)o); } - - - /// Returns a hash code for the bool3x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the bool3x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("bool3x2({0}, {1}, {2}, {3}, {4}, {5})", c0.x, c1.x, c0.y, c1.y, c0.z, c1.z); - } - - } - - public static partial class math - { - /// Returns a bool3x2 matrix constructed from two bool3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 bool3x2(bool3 c0, bool3 c1) { return new bool3x2(c0, c1); } - - /// Returns a bool3x2 matrix constructed from from 6 bool values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 bool3x2(bool m00, bool m01, - bool m10, bool m11, - bool m20, bool m21) - { - return new bool3x2(m00, m01, - m10, m11, - m20, m21); - } - - /// Returns a bool3x2 matrix constructed from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 bool3x2(bool v) { return new bool3x2(v); } - - /// Return the bool2x3 transpose of a bool3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 transpose(bool3x2 v) - { - return bool2x3( - v.c0.x, v.c0.y, v.c0.z, - v.c1.x, v.c1.y, v.c1.z); - } - - /// Returns a uint hash code of a bool3x2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(bool3x2 v) - { - return csum(select(uint3(0x9C9F0823u, 0x5A9CA13Bu, 0xAFCDD5EFu), uint3(0xA88D187Du, 0xCF6EBA1Du, 0x9D88E5A1u), v.c0) + - select(uint3(0xEADF0775u, 0x747A9D7Bu, 0x4111F799u), uint3(0xB5F05AF1u, 0xFD80290Bu, 0x8B65ADB7u), v.c1)); - } - - /// - /// Returns a uint3 vector hash code of a bool3x2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(bool3x2 v) - { - return (select(uint3(0xDFF4F563u, 0x7069770Du, 0xD1224537u), uint3(0xE99ED6F3u, 0x48125549u, 0xEEE2123Bu), v.c0) + - select(uint3(0xE3AD9FE5u, 0xCE1CF8BFu, 0x7BE39F3Bu), uint3(0xFAB9913Fu, 0xB4501269u, 0xE04B89FDu), v.c1)); - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/bool3x3.gen.cs b/Economy.Shared/Unity.Mathematics/bool3x3.gen.cs deleted file mode 100644 index dbfef9758..000000000 --- a/Economy.Shared/Unity.Mathematics/bool3x3.gen.cs +++ /dev/null @@ -1,219 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct bool3x3 : System.IEquatable - { - public bool3 c0; - public bool3 c1; - public bool3 c2; - - - /// Constructs a bool3x3 matrix from three bool3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3x3(bool3 c0, bool3 c1, bool3 c2) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - } - - /// Constructs a bool3x3 matrix from 9 bool values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3x3(bool m00, bool m01, bool m02, - bool m10, bool m11, bool m12, - bool m20, bool m21, bool m22) - { - this.c0 = new bool3(m00, m10, m20); - this.c1 = new bool3(m01, m11, m21); - this.c2 = new bool3(m02, m12, m22); - } - - /// Constructs a bool3x3 matrix from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3x3(bool v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - - /// Implicitly converts a single bool value to a bool3x3 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator bool3x3(bool v) { return new bool3x3(v); } - - - /// Returns the result of a componentwise equality operation on two bool3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator == (bool3x3 lhs, bool3x3 rhs) { return new bool3x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } - - /// Returns the result of a componentwise equality operation on a bool3x3 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator == (bool3x3 lhs, bool rhs) { return new bool3x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } - - /// Returns the result of a componentwise equality operation on a bool value and a bool3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator == (bool lhs, bool3x3 rhs) { return new bool3x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } - - - /// Returns the result of a componentwise not equal operation on two bool3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator != (bool3x3 lhs, bool3x3 rhs) { return new bool3x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } - - /// Returns the result of a componentwise not equal operation on a bool3x3 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator != (bool3x3 lhs, bool rhs) { return new bool3x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } - - /// Returns the result of a componentwise not equal operation on a bool value and a bool3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator != (bool lhs, bool3x3 rhs) { return new bool3x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } - - - /// Returns the result of a componentwise not operation on a bool3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator ! (bool3x3 val) { return new bool3x3 (!val.c0, !val.c1, !val.c2); } - - - /// Returns the result of a componentwise bitwise and operation on two bool3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator & (bool3x3 lhs, bool3x3 rhs) { return new bool3x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); } - - /// Returns the result of a componentwise bitwise and operation on a bool3x3 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator & (bool3x3 lhs, bool rhs) { return new bool3x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a bool value and a bool3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator & (bool lhs, bool3x3 rhs) { return new bool3x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); } - - - /// Returns the result of a componentwise bitwise or operation on two bool3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator | (bool3x3 lhs, bool3x3 rhs) { return new bool3x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); } - - /// Returns the result of a componentwise bitwise or operation on a bool3x3 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator | (bool3x3 lhs, bool rhs) { return new bool3x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a bool value and a bool3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator | (bool lhs, bool3x3 rhs) { return new bool3x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two bool3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator ^ (bool3x3 lhs, bool3x3 rhs) { return new bool3x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool3x3 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator ^ (bool3x3 lhs, bool rhs) { return new bool3x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator ^ (bool lhs, bool3x3 rhs) { return new bool3x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); } - - - - /// Returns the bool3 element at a specified index. - unsafe public ref bool3 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (bool3x3* array = &this) { return ref ((bool3*)array)[index]; } - } - } - - /// Returns true if the bool3x3 is equal to a given bool3x3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(bool3x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } - - /// Returns true if the bool3x3 is equal to a given bool3x3, false otherwise. - public override bool Equals(object o) { return Equals((bool3x3)o); } - - - /// Returns a hash code for the bool3x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the bool3x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("bool3x3({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); - } - - } - - public static partial class math - { - /// Returns a bool3x3 matrix constructed from three bool3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 bool3x3(bool3 c0, bool3 c1, bool3 c2) { return new bool3x3(c0, c1, c2); } - - /// Returns a bool3x3 matrix constructed from from 9 bool values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 bool3x3(bool m00, bool m01, bool m02, - bool m10, bool m11, bool m12, - bool m20, bool m21, bool m22) - { - return new bool3x3(m00, m01, m02, - m10, m11, m12, - m20, m21, m22); - } - - /// Returns a bool3x3 matrix constructed from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 bool3x3(bool v) { return new bool3x3(v); } - - /// Return the bool3x3 transpose of a bool3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 transpose(bool3x3 v) - { - return bool3x3( - v.c0.x, v.c0.y, v.c0.z, - v.c1.x, v.c1.y, v.c1.z, - v.c2.x, v.c2.y, v.c2.z); - } - - /// Returns a uint hash code of a bool3x3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(bool3x3 v) - { - return csum(select(uint3(0xE7579997u, 0xEF7D56C7u, 0x66F38F0Bu), uint3(0x624256A3u, 0x5292ADE1u, 0xD2E590E5u), v.c0) + - select(uint3(0xF25BE857u, 0x9BC17CE7u, 0xC8B86851u), uint3(0x64095221u, 0xADF428FFu, 0xA3977109u), v.c1) + - select(uint3(0x745ED837u, 0x9CDC88F5u, 0xFA62D721u), uint3(0x7E4DB1CFu, 0x68EEE0F5u, 0xBC3B0A59u), v.c2)); - } - - /// - /// Returns a uint3 vector hash code of a bool3x3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(bool3x3 v) - { - return (select(uint3(0x816EFB5Du, 0xA24E82B7u, 0x45A22087u), uint3(0xFC104C3Bu, 0x5FFF6B19u, 0x5E6CBF3Bu), v.c0) + - select(uint3(0xB546F2A5u, 0xBBCF63E7u, 0xC53F4755u), uint3(0x6985C229u, 0xE133B0B3u, 0xC3E0A3B9u), v.c1) + - select(uint3(0xFE31134Fu, 0x712A34D7u, 0x9D77A59Bu), uint3(0x4942CA39u, 0xB40EC62Du, 0x565ED63Fu), v.c2)); - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/bool3x4.gen.cs b/Economy.Shared/Unity.Mathematics/bool3x4.gen.cs deleted file mode 100644 index 57f4aaa0f..000000000 --- a/Economy.Shared/Unity.Mathematics/bool3x4.gen.cs +++ /dev/null @@ -1,226 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct bool3x4 : System.IEquatable - { - public bool3 c0; - public bool3 c1; - public bool3 c2; - public bool3 c3; - - - /// Constructs a bool3x4 matrix from four bool3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3x4(bool3 c0, bool3 c1, bool3 c2, bool3 c3) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - this.c3 = c3; - } - - /// Constructs a bool3x4 matrix from 12 bool values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3x4(bool m00, bool m01, bool m02, bool m03, - bool m10, bool m11, bool m12, bool m13, - bool m20, bool m21, bool m22, bool m23) - { - this.c0 = new bool3(m00, m10, m20); - this.c1 = new bool3(m01, m11, m21); - this.c2 = new bool3(m02, m12, m22); - this.c3 = new bool3(m03, m13, m23); - } - - /// Constructs a bool3x4 matrix from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3x4(bool v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - - /// Implicitly converts a single bool value to a bool3x4 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator bool3x4(bool v) { return new bool3x4(v); } - - - /// Returns the result of a componentwise equality operation on two bool3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator == (bool3x4 lhs, bool3x4 rhs) { return new bool3x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } - - /// Returns the result of a componentwise equality operation on a bool3x4 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator == (bool3x4 lhs, bool rhs) { return new bool3x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } - - /// Returns the result of a componentwise equality operation on a bool value and a bool3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator == (bool lhs, bool3x4 rhs) { return new bool3x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } - - - /// Returns the result of a componentwise not equal operation on two bool3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator != (bool3x4 lhs, bool3x4 rhs) { return new bool3x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } - - /// Returns the result of a componentwise not equal operation on a bool3x4 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator != (bool3x4 lhs, bool rhs) { return new bool3x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } - - /// Returns the result of a componentwise not equal operation on a bool value and a bool3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator != (bool lhs, bool3x4 rhs) { return new bool3x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } - - - /// Returns the result of a componentwise not operation on a bool3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator ! (bool3x4 val) { return new bool3x4 (!val.c0, !val.c1, !val.c2, !val.c3); } - - - /// Returns the result of a componentwise bitwise and operation on two bool3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator & (bool3x4 lhs, bool3x4 rhs) { return new bool3x4 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2, lhs.c3 & rhs.c3); } - - /// Returns the result of a componentwise bitwise and operation on a bool3x4 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator & (bool3x4 lhs, bool rhs) { return new bool3x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a bool value and a bool3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator & (bool lhs, bool3x4 rhs) { return new bool3x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); } - - - /// Returns the result of a componentwise bitwise or operation on two bool3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator | (bool3x4 lhs, bool3x4 rhs) { return new bool3x4 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2, lhs.c3 | rhs.c3); } - - /// Returns the result of a componentwise bitwise or operation on a bool3x4 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator | (bool3x4 lhs, bool rhs) { return new bool3x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a bool value and a bool3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator | (bool lhs, bool3x4 rhs) { return new bool3x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two bool3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator ^ (bool3x4 lhs, bool3x4 rhs) { return new bool3x4 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2, lhs.c3 ^ rhs.c3); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool3x4 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator ^ (bool3x4 lhs, bool rhs) { return new bool3x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator ^ (bool lhs, bool3x4 rhs) { return new bool3x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); } - - - - /// Returns the bool3 element at a specified index. - unsafe public ref bool3 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (bool3x4* array = &this) { return ref ((bool3*)array)[index]; } - } - } - - /// Returns true if the bool3x4 is equal to a given bool3x4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(bool3x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } - - /// Returns true if the bool3x4 is equal to a given bool3x4, false otherwise. - public override bool Equals(object o) { return Equals((bool3x4)o); } - - - /// Returns a hash code for the bool3x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the bool3x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("bool3x4({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); - } - - } - - public static partial class math - { - /// Returns a bool3x4 matrix constructed from four bool3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 bool3x4(bool3 c0, bool3 c1, bool3 c2, bool3 c3) { return new bool3x4(c0, c1, c2, c3); } - - /// Returns a bool3x4 matrix constructed from from 12 bool values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 bool3x4(bool m00, bool m01, bool m02, bool m03, - bool m10, bool m11, bool m12, bool m13, - bool m20, bool m21, bool m22, bool m23) - { - return new bool3x4(m00, m01, m02, m03, - m10, m11, m12, m13, - m20, m21, m22, m23); - } - - /// Returns a bool3x4 matrix constructed from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 bool3x4(bool v) { return new bool3x4(v); } - - /// Return the bool4x3 transpose of a bool3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 transpose(bool3x4 v) - { - return bool4x3( - v.c0.x, v.c0.y, v.c0.z, - v.c1.x, v.c1.y, v.c1.z, - v.c2.x, v.c2.y, v.c2.z, - v.c3.x, v.c3.y, v.c3.z); - } - - /// Returns a uint hash code of a bool3x4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(bool3x4 v) - { - return csum(select(uint3(0x83B58237u, 0x833E3E29u, 0xA9D919BFu), uint3(0xC3EC1D97u, 0xB8B208C7u, 0x5D3ED947u), v.c0) + - select(uint3(0x4473BBB1u, 0xCBA11D5Fu, 0x685835CFu), uint3(0xC3D32AE1u, 0xB966942Fu, 0xFE9856B3u), v.c1) + - select(uint3(0xFA3A3285u, 0xAD55999Du, 0xDCDD5341u), uint3(0x94DDD769u, 0xA1E92D39u, 0x4583C801u), v.c2) + - select(uint3(0x9536A0F5u, 0xAF816615u, 0x9AF8D62Du), uint3(0xE3600729u, 0x5F17300Du, 0x670D6809u), v.c3)); - } - - /// - /// Returns a uint3 vector hash code of a bool3x4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(bool3x4 v) - { - return (select(uint3(0x7AF32C49u, 0xAE131389u, 0x5D1B165Bu), uint3(0x87096CD7u, 0x4C7F6DD1u, 0x4822A3E9u), v.c0) + - select(uint3(0xAAC3C25Du, 0xD21D0945u, 0x88FCAB2Du), uint3(0x614DA60Du, 0x5BA2C50Bu, 0x8C455ACBu), v.c1) + - select(uint3(0xCD266C89u, 0xF1852A33u, 0x77E35E77u), uint3(0x863E3729u, 0xE191B035u, 0x68586FAFu), v.c2) + - select(uint3(0xD4DFF6D3u, 0xCB634F4Du, 0x9B13B92Du), uint3(0x4ABF0813u, 0x86068063u, 0xD75513F9u), v.c3)); - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/bool4.gen.cs b/Economy.Shared/Unity.Mathematics/bool4.gen.cs deleted file mode 100644 index 5f50fcdc3..000000000 --- a/Economy.Shared/Unity.Mathematics/bool4.gen.cs +++ /dev/null @@ -1,3187 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Diagnostics; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [DebuggerTypeProxy(typeof(bool4.DebuggerProxy))] - [System.Serializable] - public partial struct bool4 : System.IEquatable - { - [MarshalAs(UnmanagedType.U1)] - public bool x; - [MarshalAs(UnmanagedType.U1)] - public bool y; - [MarshalAs(UnmanagedType.U1)] - public bool z; - [MarshalAs(UnmanagedType.U1)] - public bool w; - - - /// Constructs a bool4 vector from four bool values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4(bool x, bool y, bool z, bool w) - { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - - /// Constructs a bool4 vector from two bool values and a bool2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4(bool x, bool y, bool2 zw) - { - this.x = x; - this.y = y; - this.z = zw.x; - this.w = zw.y; - } - - /// Constructs a bool4 vector from a bool value, a bool2 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4(bool x, bool2 yz, bool w) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - this.w = w; - } - - /// Constructs a bool4 vector from a bool value and a bool3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4(bool x, bool3 yzw) - { - this.x = x; - this.y = yzw.x; - this.z = yzw.y; - this.w = yzw.z; - } - - /// Constructs a bool4 vector from a bool2 vector and two bool values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4(bool2 xy, bool z, bool w) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - this.w = w; - } - - /// Constructs a bool4 vector from two bool2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4(bool2 xy, bool2 zw) - { - this.x = xy.x; - this.y = xy.y; - this.z = zw.x; - this.w = zw.y; - } - - /// Constructs a bool4 vector from a bool3 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4(bool3 xyz, bool w) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - this.w = w; - } - - /// Constructs a bool4 vector from a bool4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4(bool4 xyzw) - { - this.x = xyzw.x; - this.y = xyzw.y; - this.z = xyzw.z; - this.w = xyzw.w; - } - - /// Constructs a bool4 vector from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4(bool v) - { - this.x = v; - this.y = v; - this.z = v; - this.w = v; - } - - - /// Implicitly converts a single bool value to a bool4 vector by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator bool4(bool v) { return new bool4(v); } - - - /// Returns the result of a componentwise equality operation on two bool4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } - - /// Returns the result of a componentwise equality operation on a bool4 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (bool4 lhs, bool rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } - - /// Returns the result of a componentwise equality operation on a bool value and a bool4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (bool lhs, bool4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } - - - /// Returns the result of a componentwise not equal operation on two bool4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } - - /// Returns the result of a componentwise not equal operation on a bool4 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (bool4 lhs, bool rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } - - /// Returns the result of a componentwise not equal operation on a bool value and a bool4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (bool lhs, bool4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } - - - /// Returns the result of a componentwise not operation on a bool4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator ! (bool4 val) { return new bool4 (!val.x, !val.y, !val.z, !val.w); } - - - /// Returns the result of a componentwise bitwise and operation on two bool4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator & (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } - - /// Returns the result of a componentwise bitwise and operation on a bool4 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator & (bool4 lhs, bool rhs) { return new bool4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a bool value and a bool4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator & (bool lhs, bool4 rhs) { return new bool4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } - - - /// Returns the result of a componentwise bitwise or operation on two bool4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator | (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } - - /// Returns the result of a componentwise bitwise or operation on a bool4 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator | (bool4 lhs, bool rhs) { return new bool4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a bool value and a bool4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator | (bool lhs, bool4 rhs) { return new bool4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two bool4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator ^ (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool4 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator ^ (bool4 lhs, bool rhs) { return new bool4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator ^ (bool lhs, bool4 rhs) { return new bool4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } - - - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 ywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 ywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 ywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 www - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 wx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 wy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 wz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 ww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(w, w); } - } - - - - /// Returns the bool element at a specified index. - unsafe public bool this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (bool4* array = &this) { return ((bool*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (bool* array = &x) { array[index] = value; } - } - } - - /// Returns true if the bool4 is equal to a given bool4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(bool4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } - - /// Returns true if the bool4 is equal to a given bool4, false otherwise. - public override bool Equals(object o) { return Equals((bool4)o); } - - - /// Returns a hash code for the bool4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the bool4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("bool4({0}, {1}, {2}, {3})", x, y, z, w); - } - - internal sealed class DebuggerProxy - { - public bool x; - public bool y; - public bool z; - public bool w; - public DebuggerProxy(bool4 v) - { - x = v.x; - y = v.y; - z = v.z; - w = v.w; - } - } - - } - - public static partial class math - { - /// Returns a bool4 vector constructed from four bool values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool x, bool y, bool z, bool w) { return new bool4(x, y, z, w); } - - /// Returns a bool4 vector constructed from two bool values and a bool2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool x, bool y, bool2 zw) { return new bool4(x, y, zw); } - - /// Returns a bool4 vector constructed from a bool value, a bool2 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool x, bool2 yz, bool w) { return new bool4(x, yz, w); } - - /// Returns a bool4 vector constructed from a bool value and a bool3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool x, bool3 yzw) { return new bool4(x, yzw); } - - /// Returns a bool4 vector constructed from a bool2 vector and two bool values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool2 xy, bool z, bool w) { return new bool4(xy, z, w); } - - /// Returns a bool4 vector constructed from two bool2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool2 xy, bool2 zw) { return new bool4(xy, zw); } - - /// Returns a bool4 vector constructed from a bool3 vector and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool3 xyz, bool w) { return new bool4(xyz, w); } - - /// Returns a bool4 vector constructed from a bool4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool4 xyzw) { return new bool4(xyzw); } - - /// Returns a bool4 vector constructed from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool v) { return new bool4(v); } - - /// Returns a uint hash code of a bool4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(bool4 v) - { - return csum(select(uint4(0x5FFF6B19u, 0x5E6CBF3Bu, 0xB546F2A5u, 0xBBCF63E7u), uint4(0xC53F4755u, 0x6985C229u, 0xE133B0B3u, 0xC3E0A3B9u), v)); - } - - /// - /// Returns a uint4 vector hash code of a bool4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(bool4 v) - { - return (select(uint4(0xFE31134Fu, 0x712A34D7u, 0x9D77A59Bu, 0x4942CA39u), uint4(0xB40EC62Du, 0x565ED63Fu, 0x93C30C2Bu, 0xDCAF0351u), v)); - } - - /// Returns the result of specified shuffling of the components from two bool4 vectors into a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool shuffle(bool4 a, bool4 b, ShuffleComponent x) - { - return select_shuffle_component(a, b, x); - } - - /// Returns the result of specified shuffling of the components from two bool4 vectors into a bool2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 shuffle(bool4 a, bool4 b, ShuffleComponent x, ShuffleComponent y) - { - return bool2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); - } - - /// Returns the result of specified shuffling of the components from two bool4 vectors into a bool3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 shuffle(bool4 a, bool4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) - { - return bool3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); - } - - /// Returns the result of specified shuffling of the components from two bool4 vectors into a bool4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 shuffle(bool4 a, bool4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) - { - return bool4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static bool select_shuffle_component(bool4 a, bool4 b, ShuffleComponent component) - { - switch(component) - { - case ShuffleComponent.LeftX: - return a.x; - case ShuffleComponent.LeftY: - return a.y; - case ShuffleComponent.LeftZ: - return a.z; - case ShuffleComponent.LeftW: - return a.w; - case ShuffleComponent.RightX: - return b.x; - case ShuffleComponent.RightY: - return b.y; - case ShuffleComponent.RightZ: - return b.z; - case ShuffleComponent.RightW: - return b.w; - default: - throw new System.ArgumentException("Invalid shuffle component: " + component); - } - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/bool4x2.gen.cs b/Economy.Shared/Unity.Mathematics/bool4x2.gen.cs deleted file mode 100644 index 022af8591..000000000 --- a/Economy.Shared/Unity.Mathematics/bool4x2.gen.cs +++ /dev/null @@ -1,215 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct bool4x2 : System.IEquatable - { - public bool4 c0; - public bool4 c1; - - - /// Constructs a bool4x2 matrix from two bool4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4x2(bool4 c0, bool4 c1) - { - this.c0 = c0; - this.c1 = c1; - } - - /// Constructs a bool4x2 matrix from 8 bool values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4x2(bool m00, bool m01, - bool m10, bool m11, - bool m20, bool m21, - bool m30, bool m31) - { - this.c0 = new bool4(m00, m10, m20, m30); - this.c1 = new bool4(m01, m11, m21, m31); - } - - /// Constructs a bool4x2 matrix from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4x2(bool v) - { - this.c0 = v; - this.c1 = v; - } - - - /// Implicitly converts a single bool value to a bool4x2 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator bool4x2(bool v) { return new bool4x2(v); } - - - /// Returns the result of a componentwise equality operation on two bool4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator == (bool4x2 lhs, bool4x2 rhs) { return new bool4x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } - - /// Returns the result of a componentwise equality operation on a bool4x2 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator == (bool4x2 lhs, bool rhs) { return new bool4x2 (lhs.c0 == rhs, lhs.c1 == rhs); } - - /// Returns the result of a componentwise equality operation on a bool value and a bool4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator == (bool lhs, bool4x2 rhs) { return new bool4x2 (lhs == rhs.c0, lhs == rhs.c1); } - - - /// Returns the result of a componentwise not equal operation on two bool4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator != (bool4x2 lhs, bool4x2 rhs) { return new bool4x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } - - /// Returns the result of a componentwise not equal operation on a bool4x2 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator != (bool4x2 lhs, bool rhs) { return new bool4x2 (lhs.c0 != rhs, lhs.c1 != rhs); } - - /// Returns the result of a componentwise not equal operation on a bool value and a bool4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator != (bool lhs, bool4x2 rhs) { return new bool4x2 (lhs != rhs.c0, lhs != rhs.c1); } - - - /// Returns the result of a componentwise not operation on a bool4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator ! (bool4x2 val) { return new bool4x2 (!val.c0, !val.c1); } - - - /// Returns the result of a componentwise bitwise and operation on two bool4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator & (bool4x2 lhs, bool4x2 rhs) { return new bool4x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); } - - /// Returns the result of a componentwise bitwise and operation on a bool4x2 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator & (bool4x2 lhs, bool rhs) { return new bool4x2 (lhs.c0 & rhs, lhs.c1 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a bool value and a bool4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator & (bool lhs, bool4x2 rhs) { return new bool4x2 (lhs & rhs.c0, lhs & rhs.c1); } - - - /// Returns the result of a componentwise bitwise or operation on two bool4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator | (bool4x2 lhs, bool4x2 rhs) { return new bool4x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); } - - /// Returns the result of a componentwise bitwise or operation on a bool4x2 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator | (bool4x2 lhs, bool rhs) { return new bool4x2 (lhs.c0 | rhs, lhs.c1 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a bool value and a bool4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator | (bool lhs, bool4x2 rhs) { return new bool4x2 (lhs | rhs.c0, lhs | rhs.c1); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two bool4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator ^ (bool4x2 lhs, bool4x2 rhs) { return new bool4x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool4x2 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator ^ (bool4x2 lhs, bool rhs) { return new bool4x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator ^ (bool lhs, bool4x2 rhs) { return new bool4x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); } - - - - /// Returns the bool4 element at a specified index. - unsafe public ref bool4 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (bool4x2* array = &this) { return ref ((bool4*)array)[index]; } - } - } - - /// Returns true if the bool4x2 is equal to a given bool4x2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(bool4x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } - - /// Returns true if the bool4x2 is equal to a given bool4x2, false otherwise. - public override bool Equals(object o) { return Equals((bool4x2)o); } - - - /// Returns a hash code for the bool4x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the bool4x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("bool4x2({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7})", c0.x, c1.x, c0.y, c1.y, c0.z, c1.z, c0.w, c1.w); - } - - } - - public static partial class math - { - /// Returns a bool4x2 matrix constructed from two bool4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 bool4x2(bool4 c0, bool4 c1) { return new bool4x2(c0, c1); } - - /// Returns a bool4x2 matrix constructed from from 8 bool values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 bool4x2(bool m00, bool m01, - bool m10, bool m11, - bool m20, bool m21, - bool m30, bool m31) - { - return new bool4x2(m00, m01, - m10, m11, - m20, m21, - m30, m31); - } - - /// Returns a bool4x2 matrix constructed from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 bool4x2(bool v) { return new bool4x2(v); } - - /// Return the bool2x4 transpose of a bool4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 transpose(bool4x2 v) - { - return bool2x4( - v.c0.x, v.c0.y, v.c0.z, v.c0.w, - v.c1.x, v.c1.y, v.c1.z, v.c1.w); - } - - /// Returns a uint hash code of a bool4x2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(bool4x2 v) - { - return csum(select(uint4(0xD19764C7u, 0xB5D0BF63u, 0xF9102C5Fu, 0x9881FB9Fu), uint4(0x56A1530Du, 0x804B722Du, 0x738E50E5u, 0x4FC93C25u), v.c0) + - select(uint4(0xCD0445A5u, 0xD2B90D9Bu, 0xD35C9B2Du, 0xA10D9E27u), uint4(0x568DAAA9u, 0x7530254Fu, 0x9F090439u, 0x5E9F85C9u), v.c1)); - } - - /// - /// Returns a uint4 vector hash code of a bool4x2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(bool4x2 v) - { - return (select(uint4(0x8C4CA03Fu, 0xB8D969EDu, 0xAC5DB57Bu, 0xA91A02EDu), uint4(0xB3C49313u, 0xF43A9ABBu, 0x84E7E01Bu, 0x8E055BE5u), v.c0) + - select(uint4(0x6E624EB7u, 0x7383ED49u, 0xDD49C23Bu, 0xEBD0D005u), uint4(0x91475DF7u, 0x55E84827u, 0x90A285BBu, 0x5D19E1D5u), v.c1)); - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/bool4x3.gen.cs b/Economy.Shared/Unity.Mathematics/bool4x3.gen.cs deleted file mode 100644 index 742d43a4a..000000000 --- a/Economy.Shared/Unity.Mathematics/bool4x3.gen.cs +++ /dev/null @@ -1,222 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct bool4x3 : System.IEquatable - { - public bool4 c0; - public bool4 c1; - public bool4 c2; - - - /// Constructs a bool4x3 matrix from three bool4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4x3(bool4 c0, bool4 c1, bool4 c2) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - } - - /// Constructs a bool4x3 matrix from 12 bool values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4x3(bool m00, bool m01, bool m02, - bool m10, bool m11, bool m12, - bool m20, bool m21, bool m22, - bool m30, bool m31, bool m32) - { - this.c0 = new bool4(m00, m10, m20, m30); - this.c1 = new bool4(m01, m11, m21, m31); - this.c2 = new bool4(m02, m12, m22, m32); - } - - /// Constructs a bool4x3 matrix from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4x3(bool v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - - /// Implicitly converts a single bool value to a bool4x3 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator bool4x3(bool v) { return new bool4x3(v); } - - - /// Returns the result of a componentwise equality operation on two bool4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator == (bool4x3 lhs, bool4x3 rhs) { return new bool4x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } - - /// Returns the result of a componentwise equality operation on a bool4x3 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator == (bool4x3 lhs, bool rhs) { return new bool4x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } - - /// Returns the result of a componentwise equality operation on a bool value and a bool4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator == (bool lhs, bool4x3 rhs) { return new bool4x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } - - - /// Returns the result of a componentwise not equal operation on two bool4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator != (bool4x3 lhs, bool4x3 rhs) { return new bool4x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } - - /// Returns the result of a componentwise not equal operation on a bool4x3 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator != (bool4x3 lhs, bool rhs) { return new bool4x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } - - /// Returns the result of a componentwise not equal operation on a bool value and a bool4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator != (bool lhs, bool4x3 rhs) { return new bool4x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } - - - /// Returns the result of a componentwise not operation on a bool4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator ! (bool4x3 val) { return new bool4x3 (!val.c0, !val.c1, !val.c2); } - - - /// Returns the result of a componentwise bitwise and operation on two bool4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator & (bool4x3 lhs, bool4x3 rhs) { return new bool4x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); } - - /// Returns the result of a componentwise bitwise and operation on a bool4x3 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator & (bool4x3 lhs, bool rhs) { return new bool4x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a bool value and a bool4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator & (bool lhs, bool4x3 rhs) { return new bool4x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); } - - - /// Returns the result of a componentwise bitwise or operation on two bool4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator | (bool4x3 lhs, bool4x3 rhs) { return new bool4x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); } - - /// Returns the result of a componentwise bitwise or operation on a bool4x3 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator | (bool4x3 lhs, bool rhs) { return new bool4x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a bool value and a bool4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator | (bool lhs, bool4x3 rhs) { return new bool4x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two bool4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator ^ (bool4x3 lhs, bool4x3 rhs) { return new bool4x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool4x3 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator ^ (bool4x3 lhs, bool rhs) { return new bool4x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator ^ (bool lhs, bool4x3 rhs) { return new bool4x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); } - - - - /// Returns the bool4 element at a specified index. - unsafe public ref bool4 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (bool4x3* array = &this) { return ref ((bool4*)array)[index]; } - } - } - - /// Returns true if the bool4x3 is equal to a given bool4x3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(bool4x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } - - /// Returns true if the bool4x3 is equal to a given bool4x3, false otherwise. - public override bool Equals(object o) { return Equals((bool4x3)o); } - - - /// Returns a hash code for the bool4x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the bool4x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("bool4x3({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); - } - - } - - public static partial class math - { - /// Returns a bool4x3 matrix constructed from three bool4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 bool4x3(bool4 c0, bool4 c1, bool4 c2) { return new bool4x3(c0, c1, c2); } - - /// Returns a bool4x3 matrix constructed from from 12 bool values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 bool4x3(bool m00, bool m01, bool m02, - bool m10, bool m11, bool m12, - bool m20, bool m21, bool m22, - bool m30, bool m31, bool m32) - { - return new bool4x3(m00, m01, m02, - m10, m11, m12, - m20, m21, m22, - m30, m31, m32); - } - - /// Returns a bool4x3 matrix constructed from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 bool4x3(bool v) { return new bool4x3(v); } - - /// Return the bool3x4 transpose of a bool4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 transpose(bool4x3 v) - { - return bool3x4( - v.c0.x, v.c0.y, v.c0.z, v.c0.w, - v.c1.x, v.c1.y, v.c1.z, v.c1.w, - v.c2.x, v.c2.y, v.c2.z, v.c2.w); - } - - /// Returns a uint hash code of a bool4x3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(bool4x3 v) - { - return csum(select(uint4(0xEADF0775u, 0x747A9D7Bu, 0x4111F799u, 0xB5F05AF1u), uint4(0xFD80290Bu, 0x8B65ADB7u, 0xDFF4F563u, 0x7069770Du), v.c0) + - select(uint4(0xD1224537u, 0xE99ED6F3u, 0x48125549u, 0xEEE2123Bu), uint4(0xE3AD9FE5u, 0xCE1CF8BFu, 0x7BE39F3Bu, 0xFAB9913Fu), v.c1) + - select(uint4(0xB4501269u, 0xE04B89FDu, 0xDB3DE101u, 0x7B6D1B4Bu), uint4(0x58399E77u, 0x5EAC29C9u, 0xFC6014F9u, 0x6BF6693Fu), v.c2)); - } - - /// - /// Returns a uint4 vector hash code of a bool4x3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(bool4x3 v) - { - return (select(uint4(0x9D1B1D9Bu, 0xF842F5C1u, 0xA47EC335u, 0xA477DF57u), uint4(0xC4B1493Fu, 0xBA0966D3u, 0xAFBEE253u, 0x5B419C01u), v.c0) + - select(uint4(0x515D90F5u, 0xEC9F68F3u, 0xF9EA92D5u, 0xC2FAFCB9u), uint4(0x616E9CA1u, 0xC5C5394Bu, 0xCAE78587u, 0x7A1541C9u), v.c1) + - select(uint4(0xF83BD927u, 0x6A243BCBu, 0x509B84C9u, 0x91D13847u), uint4(0x52F7230Fu, 0xCF286E83u, 0xE121E6ADu, 0xC9CA1249u), v.c2)); - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/bool4x4.gen.cs b/Economy.Shared/Unity.Mathematics/bool4x4.gen.cs deleted file mode 100644 index a4e236ad8..000000000 --- a/Economy.Shared/Unity.Mathematics/bool4x4.gen.cs +++ /dev/null @@ -1,229 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct bool4x4 : System.IEquatable - { - public bool4 c0; - public bool4 c1; - public bool4 c2; - public bool4 c3; - - - /// Constructs a bool4x4 matrix from four bool4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4x4(bool4 c0, bool4 c1, bool4 c2, bool4 c3) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - this.c3 = c3; - } - - /// Constructs a bool4x4 matrix from 16 bool values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4x4(bool m00, bool m01, bool m02, bool m03, - bool m10, bool m11, bool m12, bool m13, - bool m20, bool m21, bool m22, bool m23, - bool m30, bool m31, bool m32, bool m33) - { - this.c0 = new bool4(m00, m10, m20, m30); - this.c1 = new bool4(m01, m11, m21, m31); - this.c2 = new bool4(m02, m12, m22, m32); - this.c3 = new bool4(m03, m13, m23, m33); - } - - /// Constructs a bool4x4 matrix from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4x4(bool v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - - /// Implicitly converts a single bool value to a bool4x4 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator bool4x4(bool v) { return new bool4x4(v); } - - - /// Returns the result of a componentwise equality operation on two bool4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator == (bool4x4 lhs, bool4x4 rhs) { return new bool4x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } - - /// Returns the result of a componentwise equality operation on a bool4x4 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator == (bool4x4 lhs, bool rhs) { return new bool4x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } - - /// Returns the result of a componentwise equality operation on a bool value and a bool4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator == (bool lhs, bool4x4 rhs) { return new bool4x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } - - - /// Returns the result of a componentwise not equal operation on two bool4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator != (bool4x4 lhs, bool4x4 rhs) { return new bool4x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } - - /// Returns the result of a componentwise not equal operation on a bool4x4 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator != (bool4x4 lhs, bool rhs) { return new bool4x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } - - /// Returns the result of a componentwise not equal operation on a bool value and a bool4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator != (bool lhs, bool4x4 rhs) { return new bool4x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } - - - /// Returns the result of a componentwise not operation on a bool4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator ! (bool4x4 val) { return new bool4x4 (!val.c0, !val.c1, !val.c2, !val.c3); } - - - /// Returns the result of a componentwise bitwise and operation on two bool4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator & (bool4x4 lhs, bool4x4 rhs) { return new bool4x4 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2, lhs.c3 & rhs.c3); } - - /// Returns the result of a componentwise bitwise and operation on a bool4x4 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator & (bool4x4 lhs, bool rhs) { return new bool4x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a bool value and a bool4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator & (bool lhs, bool4x4 rhs) { return new bool4x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); } - - - /// Returns the result of a componentwise bitwise or operation on two bool4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator | (bool4x4 lhs, bool4x4 rhs) { return new bool4x4 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2, lhs.c3 | rhs.c3); } - - /// Returns the result of a componentwise bitwise or operation on a bool4x4 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator | (bool4x4 lhs, bool rhs) { return new bool4x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a bool value and a bool4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator | (bool lhs, bool4x4 rhs) { return new bool4x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two bool4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator ^ (bool4x4 lhs, bool4x4 rhs) { return new bool4x4 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2, lhs.c3 ^ rhs.c3); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool4x4 matrix and a bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator ^ (bool4x4 lhs, bool rhs) { return new bool4x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator ^ (bool lhs, bool4x4 rhs) { return new bool4x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); } - - - - /// Returns the bool4 element at a specified index. - unsafe public ref bool4 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (bool4x4* array = &this) { return ref ((bool4*)array)[index]; } - } - } - - /// Returns true if the bool4x4 is equal to a given bool4x4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(bool4x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } - - /// Returns true if the bool4x4 is equal to a given bool4x4, false otherwise. - public override bool Equals(object o) { return Equals((bool4x4)o); } - - - /// Returns a hash code for the bool4x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the bool4x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("bool4x4({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); - } - - } - - public static partial class math - { - /// Returns a bool4x4 matrix constructed from four bool4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 bool4x4(bool4 c0, bool4 c1, bool4 c2, bool4 c3) { return new bool4x4(c0, c1, c2, c3); } - - /// Returns a bool4x4 matrix constructed from from 16 bool values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 bool4x4(bool m00, bool m01, bool m02, bool m03, - bool m10, bool m11, bool m12, bool m13, - bool m20, bool m21, bool m22, bool m23, - bool m30, bool m31, bool m32, bool m33) - { - return new bool4x4(m00, m01, m02, m03, - m10, m11, m12, m13, - m20, m21, m22, m23, - m30, m31, m32, m33); - } - - /// Returns a bool4x4 matrix constructed from a single bool value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 bool4x4(bool v) { return new bool4x4(v); } - - /// Return the bool4x4 transpose of a bool4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 transpose(bool4x4 v) - { - return bool4x4( - v.c0.x, v.c0.y, v.c0.z, v.c0.w, - v.c1.x, v.c1.y, v.c1.z, v.c1.w, - v.c2.x, v.c2.y, v.c2.z, v.c2.w, - v.c3.x, v.c3.y, v.c3.z, v.c3.w); - } - - /// Returns a uint hash code of a bool4x4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(bool4x4 v) - { - return csum(select(uint4(0xD19764C7u, 0xB5D0BF63u, 0xF9102C5Fu, 0x9881FB9Fu), uint4(0x56A1530Du, 0x804B722Du, 0x738E50E5u, 0x4FC93C25u), v.c0) + - select(uint4(0xCD0445A5u, 0xD2B90D9Bu, 0xD35C9B2Du, 0xA10D9E27u), uint4(0x568DAAA9u, 0x7530254Fu, 0x9F090439u, 0x5E9F85C9u), v.c1) + - select(uint4(0x8C4CA03Fu, 0xB8D969EDu, 0xAC5DB57Bu, 0xA91A02EDu), uint4(0xB3C49313u, 0xF43A9ABBu, 0x84E7E01Bu, 0x8E055BE5u), v.c2) + - select(uint4(0x6E624EB7u, 0x7383ED49u, 0xDD49C23Bu, 0xEBD0D005u), uint4(0x91475DF7u, 0x55E84827u, 0x90A285BBu, 0x5D19E1D5u), v.c3)); - } - - /// - /// Returns a uint4 vector hash code of a bool4x4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(bool4x4 v) - { - return (select(uint4(0xFAAF07DDu, 0x625C45BDu, 0xC9F27FCBu, 0x6D2523B1u), uint4(0x6E2BF6A9u, 0xCC74B3B7u, 0x83B58237u, 0x833E3E29u), v.c0) + - select(uint4(0xA9D919BFu, 0xC3EC1D97u, 0xB8B208C7u, 0x5D3ED947u), uint4(0x4473BBB1u, 0xCBA11D5Fu, 0x685835CFu, 0xC3D32AE1u), v.c1) + - select(uint4(0xB966942Fu, 0xFE9856B3u, 0xFA3A3285u, 0xAD55999Du), uint4(0xDCDD5341u, 0x94DDD769u, 0xA1E92D39u, 0x4583C801u), v.c2) + - select(uint4(0x9536A0F5u, 0xAF816615u, 0x9AF8D62Du, 0xE3600729u), uint4(0x5F17300Du, 0x670D6809u, 0x7AF32C49u, 0xAE131389u), v.c3)); - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/double2.gen.cs b/Economy.Shared/Unity.Mathematics/double2.gen.cs deleted file mode 100644 index 3247cf870..000000000 --- a/Economy.Shared/Unity.Mathematics/double2.gen.cs +++ /dev/null @@ -1,760 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; -using System.Diagnostics; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [DebuggerTypeProxy(typeof(double2.DebuggerProxy))] - [System.Serializable] - public partial struct double2 : System.IEquatable, IFormattable - { - public double x; - public double y; - - /// double2 zero value. - public static readonly double2 zero; - - /// Constructs a double2 vector from two double values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2(double x, double y) - { - this.x = x; - this.y = y; - } - - /// Constructs a double2 vector from a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2(double2 xy) - { - this.x = xy.x; - this.y = xy.y; - } - - /// Constructs a double2 vector from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2(double v) - { - this.x = v; - this.y = v; - } - - /// Constructs a double2 vector from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2(bool v) - { - this.x = v ? 1.0 : 0.0; - this.y = v ? 1.0 : 0.0; - } - - /// Constructs a double2 vector from a bool2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2(bool2 v) - { - this.x = v.x ? 1.0 : 0.0; - this.y = v.y ? 1.0 : 0.0; - } - - /// Constructs a double2 vector from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2(int v) - { - this.x = v; - this.y = v; - } - - /// Constructs a double2 vector from a int2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2(int2 v) - { - this.x = v.x; - this.y = v.y; - } - - /// Constructs a double2 vector from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2(uint v) - { - this.x = v; - this.y = v; - } - - /// Constructs a double2 vector from a uint2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2(uint2 v) - { - this.x = v.x; - this.y = v.y; - } - - /// Constructs a double2 vector from a single half value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2(half v) - { - this.x = v; - this.y = v; - } - - /// Constructs a double2 vector from a half2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2(half2 v) - { - this.x = v.x; - this.y = v.y; - } - - /// Constructs a double2 vector from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2(float v) - { - this.x = v; - this.y = v; - } - - /// Constructs a double2 vector from a float2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2(float2 v) - { - this.x = v.x; - this.y = v.y; - } - - - /// Implicitly converts a single double value to a double2 vector by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2(double v) { return new double2(v); } - - /// Explicitly converts a single bool value to a double2 vector by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double2(bool v) { return new double2(v); } - - /// Explicitly converts a bool2 vector to a double2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double2(bool2 v) { return new double2(v); } - - /// Implicitly converts a single int value to a double2 vector by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2(int v) { return new double2(v); } - - /// Implicitly converts a int2 vector to a double2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2(int2 v) { return new double2(v); } - - /// Implicitly converts a single uint value to a double2 vector by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2(uint v) { return new double2(v); } - - /// Implicitly converts a uint2 vector to a double2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2(uint2 v) { return new double2(v); } - - /// Implicitly converts a single half value to a double2 vector by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2(half v) { return new double2(v); } - - /// Implicitly converts a half2 vector to a double2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2(half2 v) { return new double2(v); } - - /// Implicitly converts a single float value to a double2 vector by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2(float v) { return new double2(v); } - - /// Implicitly converts a float2 vector to a double2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2(float2 v) { return new double2(v); } - - - /// Returns the result of a componentwise multiplication operation on two double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 operator * (double2 lhs, double2 rhs) { return new double2 (lhs.x * rhs.x, lhs.y * rhs.y); } - - /// Returns the result of a componentwise multiplication operation on a double2 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 operator * (double2 lhs, double rhs) { return new double2 (lhs.x * rhs, lhs.y * rhs); } - - /// Returns the result of a componentwise multiplication operation on a double value and a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 operator * (double lhs, double2 rhs) { return new double2 (lhs * rhs.x, lhs * rhs.y); } - - - /// Returns the result of a componentwise addition operation on two double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 operator + (double2 lhs, double2 rhs) { return new double2 (lhs.x + rhs.x, lhs.y + rhs.y); } - - /// Returns the result of a componentwise addition operation on a double2 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 operator + (double2 lhs, double rhs) { return new double2 (lhs.x + rhs, lhs.y + rhs); } - - /// Returns the result of a componentwise addition operation on a double value and a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 operator + (double lhs, double2 rhs) { return new double2 (lhs + rhs.x, lhs + rhs.y); } - - - /// Returns the result of a componentwise subtraction operation on two double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 operator - (double2 lhs, double2 rhs) { return new double2 (lhs.x - rhs.x, lhs.y - rhs.y); } - - /// Returns the result of a componentwise subtraction operation on a double2 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 operator - (double2 lhs, double rhs) { return new double2 (lhs.x - rhs, lhs.y - rhs); } - - /// Returns the result of a componentwise subtraction operation on a double value and a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 operator - (double lhs, double2 rhs) { return new double2 (lhs - rhs.x, lhs - rhs.y); } - - - /// Returns the result of a componentwise division operation on two double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 operator / (double2 lhs, double2 rhs) { return new double2 (lhs.x / rhs.x, lhs.y / rhs.y); } - - /// Returns the result of a componentwise division operation on a double2 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 operator / (double2 lhs, double rhs) { return new double2 (lhs.x / rhs, lhs.y / rhs); } - - /// Returns the result of a componentwise division operation on a double value and a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 operator / (double lhs, double2 rhs) { return new double2 (lhs / rhs.x, lhs / rhs.y); } - - - /// Returns the result of a componentwise modulus operation on two double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 operator % (double2 lhs, double2 rhs) { return new double2 (lhs.x % rhs.x, lhs.y % rhs.y); } - - /// Returns the result of a componentwise modulus operation on a double2 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 operator % (double2 lhs, double rhs) { return new double2 (lhs.x % rhs, lhs.y % rhs); } - - /// Returns the result of a componentwise modulus operation on a double value and a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 operator % (double lhs, double2 rhs) { return new double2 (lhs % rhs.x, lhs % rhs.y); } - - - /// Returns the result of a componentwise increment operation on a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 operator ++ (double2 val) { return new double2 (++val.x, ++val.y); } - - - /// Returns the result of a componentwise decrement operation on a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 operator -- (double2 val) { return new double2 (--val.x, --val.y); } - - - /// Returns the result of a componentwise less than operation on two double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (double2 lhs, double2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } - - /// Returns the result of a componentwise less than operation on a double2 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (double2 lhs, double rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } - - /// Returns the result of a componentwise less than operation on a double value and a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (double lhs, double2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } - - - /// Returns the result of a componentwise less or equal operation on two double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (double2 lhs, double2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } - - /// Returns the result of a componentwise less or equal operation on a double2 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (double2 lhs, double rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a double value and a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (double lhs, double2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } - - - /// Returns the result of a componentwise greater than operation on two double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (double2 lhs, double2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } - - /// Returns the result of a componentwise greater than operation on a double2 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (double2 lhs, double rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } - - /// Returns the result of a componentwise greater than operation on a double value and a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (double lhs, double2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } - - - /// Returns the result of a componentwise greater or equal operation on two double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (double2 lhs, double2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } - - /// Returns the result of a componentwise greater or equal operation on a double2 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (double2 lhs, double rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a double value and a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (double lhs, double2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } - - - /// Returns the result of a componentwise unary minus operation on a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 operator - (double2 val) { return new double2 (-val.x, -val.y); } - - - /// Returns the result of a componentwise unary plus operation on a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 operator + (double2 val) { return new double2 (+val.x, +val.y); } - - - /// Returns the result of a componentwise equality operation on two double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (double2 lhs, double2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } - - /// Returns the result of a componentwise equality operation on a double2 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (double2 lhs, double rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } - - /// Returns the result of a componentwise equality operation on a double value and a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (double lhs, double2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } - - - /// Returns the result of a componentwise not equal operation on two double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (double2 lhs, double2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } - - /// Returns the result of a componentwise not equal operation on a double2 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (double2 lhs, double rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } - - /// Returns the result of a componentwise not equal operation on a double value and a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (double lhs, double2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } - - - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(y, y); } - } - - - - /// Returns the double element at a specified index. - unsafe public double this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (double2* array = &this) { return ((double*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (double* array = &x) { array[index] = value; } - } - } - - /// Returns true if the double2 is equal to a given double2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(double2 rhs) { return x == rhs.x && y == rhs.y; } - - /// Returns true if the double2 is equal to a given double2, false otherwise. - public override bool Equals(object o) { return Equals((double2)o); } - - - /// Returns a hash code for the double2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the double2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("double2({0}, {1})", x, y); - } - - /// Returns a string representation of the double2 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("double2({0}, {1})", x.ToString(format, formatProvider), y.ToString(format, formatProvider)); - } - - internal sealed class DebuggerProxy - { - public double x; - public double y; - public DebuggerProxy(double2 v) - { - x = v.x; - y = v.y; - } - } - - } - - public static partial class math - { - /// Returns a double2 vector constructed from two double values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 double2(double x, double y) { return new double2(x, y); } - - /// Returns a double2 vector constructed from a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 double2(double2 xy) { return new double2(xy); } - - /// Returns a double2 vector constructed from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 double2(double v) { return new double2(v); } - - /// Returns a double2 vector constructed from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 double2(bool v) { return new double2(v); } - - /// Return a double2 vector constructed from a bool2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 double2(bool2 v) { return new double2(v); } - - /// Returns a double2 vector constructed from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 double2(int v) { return new double2(v); } - - /// Return a double2 vector constructed from a int2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 double2(int2 v) { return new double2(v); } - - /// Returns a double2 vector constructed from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 double2(uint v) { return new double2(v); } - - /// Return a double2 vector constructed from a uint2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 double2(uint2 v) { return new double2(v); } - - /// Returns a double2 vector constructed from a single half value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 double2(half v) { return new double2(v); } - - /// Return a double2 vector constructed from a half2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 double2(half2 v) { return new double2(v); } - - /// Returns a double2 vector constructed from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 double2(float v) { return new double2(v); } - - /// Return a double2 vector constructed from a float2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 double2(float2 v) { return new double2(v); } - - /// Returns a uint hash code of a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(double2 v) - { - return csum(fold_to_uint(v) * uint2(0x9536A0F5u, 0xAF816615u)) + 0x9AF8D62Du; - } - - /// - /// Returns a uint2 vector hash code of a double2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(double2 v) - { - return (fold_to_uint(v) * uint2(0xE3600729u, 0x5F17300Du)) + 0x670D6809u; - } - - /// Returns the result of specified shuffling of the components from two double2 vectors into a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double shuffle(double2 a, double2 b, ShuffleComponent x) - { - return select_shuffle_component(a, b, x); - } - - /// Returns the result of specified shuffling of the components from two double2 vectors into a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 shuffle(double2 a, double2 b, ShuffleComponent x, ShuffleComponent y) - { - return double2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); - } - - /// Returns the result of specified shuffling of the components from two double2 vectors into a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 shuffle(double2 a, double2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) - { - return double3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); - } - - /// Returns the result of specified shuffling of the components from two double2 vectors into a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 shuffle(double2 a, double2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) - { - return double4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double select_shuffle_component(double2 a, double2 b, ShuffleComponent component) - { - switch(component) - { - case ShuffleComponent.LeftX: - return a.x; - case ShuffleComponent.LeftY: - return a.y; - case ShuffleComponent.RightX: - return b.x; - case ShuffleComponent.RightY: - return b.y; - default: - throw new System.ArgumentException("Invalid shuffle component: " + component); - } - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/double2x2.gen.cs b/Economy.Shared/Unity.Mathematics/double2x2.gen.cs deleted file mode 100644 index 4a404c5ba..000000000 --- a/Economy.Shared/Unity.Mathematics/double2x2.gen.cs +++ /dev/null @@ -1,468 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct double2x2 : System.IEquatable, IFormattable - { - public double2 c0; - public double2 c1; - - /// double2x2 identity transform. - public static readonly double2x2 identity = new double2x2(1.0, 0.0, 0.0, 1.0); - - /// double2x2 zero value. - public static readonly double2x2 zero; - - /// Constructs a double2x2 matrix from two double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x2(double2 c0, double2 c1) - { - this.c0 = c0; - this.c1 = c1; - } - - /// Constructs a double2x2 matrix from 4 double values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x2(double m00, double m01, - double m10, double m11) - { - this.c0 = new double2(m00, m10); - this.c1 = new double2(m01, m11); - } - - /// Constructs a double2x2 matrix from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x2(double v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a double2x2 matrix from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x2(bool v) - { - this.c0 = math.select(new double2(0.0), new double2(1.0), v); - this.c1 = math.select(new double2(0.0), new double2(1.0), v); - } - - /// Constructs a double2x2 matrix from a bool2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x2(bool2x2 v) - { - this.c0 = math.select(new double2(0.0), new double2(1.0), v.c0); - this.c1 = math.select(new double2(0.0), new double2(1.0), v.c1); - } - - /// Constructs a double2x2 matrix from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x2(int v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a double2x2 matrix from a int2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x2(int2x2 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - } - - /// Constructs a double2x2 matrix from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x2(uint v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a double2x2 matrix from a uint2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x2(uint2x2 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - } - - /// Constructs a double2x2 matrix from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x2(float v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a double2x2 matrix from a float2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x2(float2x2 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - } - - - /// Implicitly converts a single double value to a double2x2 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x2(double v) { return new double2x2(v); } - - /// Explicitly converts a single bool value to a double2x2 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double2x2(bool v) { return new double2x2(v); } - - /// Explicitly converts a bool2x2 matrix to a double2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double2x2(bool2x2 v) { return new double2x2(v); } - - /// Implicitly converts a single int value to a double2x2 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x2(int v) { return new double2x2(v); } - - /// Implicitly converts a int2x2 matrix to a double2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x2(int2x2 v) { return new double2x2(v); } - - /// Implicitly converts a single uint value to a double2x2 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x2(uint v) { return new double2x2(v); } - - /// Implicitly converts a uint2x2 matrix to a double2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x2(uint2x2 v) { return new double2x2(v); } - - /// Implicitly converts a single float value to a double2x2 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x2(float v) { return new double2x2(v); } - - /// Implicitly converts a float2x2 matrix to a double2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x2(float2x2 v) { return new double2x2(v); } - - - /// Returns the result of a componentwise multiplication operation on two double2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 operator * (double2x2 lhs, double2x2 rhs) { return new double2x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } - - /// Returns the result of a componentwise multiplication operation on a double2x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 operator * (double2x2 lhs, double rhs) { return new double2x2 (lhs.c0 * rhs, lhs.c1 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a double value and a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 operator * (double lhs, double2x2 rhs) { return new double2x2 (lhs * rhs.c0, lhs * rhs.c1); } - - - /// Returns the result of a componentwise addition operation on two double2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 operator + (double2x2 lhs, double2x2 rhs) { return new double2x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } - - /// Returns the result of a componentwise addition operation on a double2x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 operator + (double2x2 lhs, double rhs) { return new double2x2 (lhs.c0 + rhs, lhs.c1 + rhs); } - - /// Returns the result of a componentwise addition operation on a double value and a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 operator + (double lhs, double2x2 rhs) { return new double2x2 (lhs + rhs.c0, lhs + rhs.c1); } - - - /// Returns the result of a componentwise subtraction operation on two double2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 operator - (double2x2 lhs, double2x2 rhs) { return new double2x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } - - /// Returns the result of a componentwise subtraction operation on a double2x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 operator - (double2x2 lhs, double rhs) { return new double2x2 (lhs.c0 - rhs, lhs.c1 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a double value and a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 operator - (double lhs, double2x2 rhs) { return new double2x2 (lhs - rhs.c0, lhs - rhs.c1); } - - - /// Returns the result of a componentwise division operation on two double2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 operator / (double2x2 lhs, double2x2 rhs) { return new double2x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } - - /// Returns the result of a componentwise division operation on a double2x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 operator / (double2x2 lhs, double rhs) { return new double2x2 (lhs.c0 / rhs, lhs.c1 / rhs); } - - /// Returns the result of a componentwise division operation on a double value and a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 operator / (double lhs, double2x2 rhs) { return new double2x2 (lhs / rhs.c0, lhs / rhs.c1); } - - - /// Returns the result of a componentwise modulus operation on two double2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 operator % (double2x2 lhs, double2x2 rhs) { return new double2x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } - - /// Returns the result of a componentwise modulus operation on a double2x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 operator % (double2x2 lhs, double rhs) { return new double2x2 (lhs.c0 % rhs, lhs.c1 % rhs); } - - /// Returns the result of a componentwise modulus operation on a double value and a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 operator % (double lhs, double2x2 rhs) { return new double2x2 (lhs % rhs.c0, lhs % rhs.c1); } - - - /// Returns the result of a componentwise increment operation on a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 operator ++ (double2x2 val) { return new double2x2 (++val.c0, ++val.c1); } - - - /// Returns the result of a componentwise decrement operation on a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 operator -- (double2x2 val) { return new double2x2 (--val.c0, --val.c1); } - - - /// Returns the result of a componentwise less than operation on two double2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator < (double2x2 lhs, double2x2 rhs) { return new bool2x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } - - /// Returns the result of a componentwise less than operation on a double2x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator < (double2x2 lhs, double rhs) { return new bool2x2 (lhs.c0 < rhs, lhs.c1 < rhs); } - - /// Returns the result of a componentwise less than operation on a double value and a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator < (double lhs, double2x2 rhs) { return new bool2x2 (lhs < rhs.c0, lhs < rhs.c1); } - - - /// Returns the result of a componentwise less or equal operation on two double2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator <= (double2x2 lhs, double2x2 rhs) { return new bool2x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } - - /// Returns the result of a componentwise less or equal operation on a double2x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator <= (double2x2 lhs, double rhs) { return new bool2x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a double value and a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator <= (double lhs, double2x2 rhs) { return new bool2x2 (lhs <= rhs.c0, lhs <= rhs.c1); } - - - /// Returns the result of a componentwise greater than operation on two double2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator > (double2x2 lhs, double2x2 rhs) { return new bool2x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } - - /// Returns the result of a componentwise greater than operation on a double2x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator > (double2x2 lhs, double rhs) { return new bool2x2 (lhs.c0 > rhs, lhs.c1 > rhs); } - - /// Returns the result of a componentwise greater than operation on a double value and a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator > (double lhs, double2x2 rhs) { return new bool2x2 (lhs > rhs.c0, lhs > rhs.c1); } - - - /// Returns the result of a componentwise greater or equal operation on two double2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator >= (double2x2 lhs, double2x2 rhs) { return new bool2x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } - - /// Returns the result of a componentwise greater or equal operation on a double2x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator >= (double2x2 lhs, double rhs) { return new bool2x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a double value and a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator >= (double lhs, double2x2 rhs) { return new bool2x2 (lhs >= rhs.c0, lhs >= rhs.c1); } - - - /// Returns the result of a componentwise unary minus operation on a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 operator - (double2x2 val) { return new double2x2 (-val.c0, -val.c1); } - - - /// Returns the result of a componentwise unary plus operation on a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 operator + (double2x2 val) { return new double2x2 (+val.c0, +val.c1); } - - - /// Returns the result of a componentwise equality operation on two double2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator == (double2x2 lhs, double2x2 rhs) { return new bool2x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } - - /// Returns the result of a componentwise equality operation on a double2x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator == (double2x2 lhs, double rhs) { return new bool2x2 (lhs.c0 == rhs, lhs.c1 == rhs); } - - /// Returns the result of a componentwise equality operation on a double value and a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator == (double lhs, double2x2 rhs) { return new bool2x2 (lhs == rhs.c0, lhs == rhs.c1); } - - - /// Returns the result of a componentwise not equal operation on two double2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator != (double2x2 lhs, double2x2 rhs) { return new bool2x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } - - /// Returns the result of a componentwise not equal operation on a double2x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator != (double2x2 lhs, double rhs) { return new bool2x2 (lhs.c0 != rhs, lhs.c1 != rhs); } - - /// Returns the result of a componentwise not equal operation on a double value and a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator != (double lhs, double2x2 rhs) { return new bool2x2 (lhs != rhs.c0, lhs != rhs.c1); } - - - - /// Returns the double2 element at a specified index. - unsafe public ref double2 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (double2x2* array = &this) { return ref ((double2*)array)[index]; } - } - } - - /// Returns true if the double2x2 is equal to a given double2x2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(double2x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } - - /// Returns true if the double2x2 is equal to a given double2x2, false otherwise. - public override bool Equals(object o) { return Equals((double2x2)o); } - - - /// Returns a hash code for the double2x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the double2x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("double2x2({0}, {1}, {2}, {3})", c0.x, c1.x, c0.y, c1.y); - } - - /// Returns a string representation of the double2x2 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("double2x2({0}, {1}, {2}, {3})", c0.x.ToString(format, formatProvider), c1.x.ToString(format, formatProvider), c0.y.ToString(format, formatProvider), c1.y.ToString(format, formatProvider)); - } - - } - - public static partial class math - { - /// Returns a double2x2 matrix constructed from two double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 double2x2(double2 c0, double2 c1) { return new double2x2(c0, c1); } - - /// Returns a double2x2 matrix constructed from from 4 double values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 double2x2(double m00, double m01, - double m10, double m11) - { - return new double2x2(m00, m01, - m10, m11); - } - - /// Returns a double2x2 matrix constructed from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 double2x2(double v) { return new double2x2(v); } - - /// Returns a double2x2 matrix constructed from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 double2x2(bool v) { return new double2x2(v); } - - /// Return a double2x2 matrix constructed from a bool2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 double2x2(bool2x2 v) { return new double2x2(v); } - - /// Returns a double2x2 matrix constructed from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 double2x2(int v) { return new double2x2(v); } - - /// Return a double2x2 matrix constructed from a int2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 double2x2(int2x2 v) { return new double2x2(v); } - - /// Returns a double2x2 matrix constructed from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 double2x2(uint v) { return new double2x2(v); } - - /// Return a double2x2 matrix constructed from a uint2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 double2x2(uint2x2 v) { return new double2x2(v); } - - /// Returns a double2x2 matrix constructed from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 double2x2(float v) { return new double2x2(v); } - - /// Return a double2x2 matrix constructed from a float2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 double2x2(float2x2 v) { return new double2x2(v); } - - /// Return the double2x2 transpose of a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 transpose(double2x2 v) - { - return double2x2( - v.c0.x, v.c0.y, - v.c1.x, v.c1.y); - } - - /// Returns the double2x2 full inverse of a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 inverse(double2x2 m) - { - double a = m.c0.x; - double b = m.c1.x; - double c = m.c0.y; - double d = m.c1.y; - - double det = a * d - b * c; - - return double2x2(d, -b, -c, a) * (1.0 / det); - } - - /// Returns the determinant of a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double determinant(double2x2 m) - { - double a = m.c0.x; - double b = m.c1.x; - double c = m.c0.y; - double d = m.c1.y; - - return a * d - b * c; - } - - /// Returns a uint hash code of a double2x2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(double2x2 v) - { - return csum(fold_to_uint(v.c0) * uint2(0xFD80290Bu, 0x8B65ADB7u) + - fold_to_uint(v.c1) * uint2(0xDFF4F563u, 0x7069770Du)) + 0xD1224537u; - } - - /// - /// Returns a uint2 vector hash code of a double2x2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(double2x2 v) - { - return (fold_to_uint(v.c0) * uint2(0xE99ED6F3u, 0x48125549u) + - fold_to_uint(v.c1) * uint2(0xEEE2123Bu, 0xE3AD9FE5u)) + 0xCE1CF8BFu; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/double2x3.gen.cs b/Economy.Shared/Unity.Mathematics/double2x3.gen.cs deleted file mode 100644 index d0f77ef08..000000000 --- a/Economy.Shared/Unity.Mathematics/double2x3.gen.cs +++ /dev/null @@ -1,454 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct double2x3 : System.IEquatable, IFormattable - { - public double2 c0; - public double2 c1; - public double2 c2; - - /// double2x3 zero value. - public static readonly double2x3 zero; - - /// Constructs a double2x3 matrix from three double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x3(double2 c0, double2 c1, double2 c2) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - } - - /// Constructs a double2x3 matrix from 6 double values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x3(double m00, double m01, double m02, - double m10, double m11, double m12) - { - this.c0 = new double2(m00, m10); - this.c1 = new double2(m01, m11); - this.c2 = new double2(m02, m12); - } - - /// Constructs a double2x3 matrix from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x3(double v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a double2x3 matrix from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x3(bool v) - { - this.c0 = math.select(new double2(0.0), new double2(1.0), v); - this.c1 = math.select(new double2(0.0), new double2(1.0), v); - this.c2 = math.select(new double2(0.0), new double2(1.0), v); - } - - /// Constructs a double2x3 matrix from a bool2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x3(bool2x3 v) - { - this.c0 = math.select(new double2(0.0), new double2(1.0), v.c0); - this.c1 = math.select(new double2(0.0), new double2(1.0), v.c1); - this.c2 = math.select(new double2(0.0), new double2(1.0), v.c2); - } - - /// Constructs a double2x3 matrix from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x3(int v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a double2x3 matrix from a int2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x3(int2x3 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - } - - /// Constructs a double2x3 matrix from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x3(uint v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a double2x3 matrix from a uint2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x3(uint2x3 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - } - - /// Constructs a double2x3 matrix from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x3(float v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a double2x3 matrix from a float2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x3(float2x3 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - } - - - /// Implicitly converts a single double value to a double2x3 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x3(double v) { return new double2x3(v); } - - /// Explicitly converts a single bool value to a double2x3 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double2x3(bool v) { return new double2x3(v); } - - /// Explicitly converts a bool2x3 matrix to a double2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double2x3(bool2x3 v) { return new double2x3(v); } - - /// Implicitly converts a single int value to a double2x3 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x3(int v) { return new double2x3(v); } - - /// Implicitly converts a int2x3 matrix to a double2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x3(int2x3 v) { return new double2x3(v); } - - /// Implicitly converts a single uint value to a double2x3 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x3(uint v) { return new double2x3(v); } - - /// Implicitly converts a uint2x3 matrix to a double2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x3(uint2x3 v) { return new double2x3(v); } - - /// Implicitly converts a single float value to a double2x3 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x3(float v) { return new double2x3(v); } - - /// Implicitly converts a float2x3 matrix to a double2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x3(float2x3 v) { return new double2x3(v); } - - - /// Returns the result of a componentwise multiplication operation on two double2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 operator * (double2x3 lhs, double2x3 rhs) { return new double2x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } - - /// Returns the result of a componentwise multiplication operation on a double2x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 operator * (double2x3 lhs, double rhs) { return new double2x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a double value and a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 operator * (double lhs, double2x3 rhs) { return new double2x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } - - - /// Returns the result of a componentwise addition operation on two double2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 operator + (double2x3 lhs, double2x3 rhs) { return new double2x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } - - /// Returns the result of a componentwise addition operation on a double2x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 operator + (double2x3 lhs, double rhs) { return new double2x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } - - /// Returns the result of a componentwise addition operation on a double value and a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 operator + (double lhs, double2x3 rhs) { return new double2x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } - - - /// Returns the result of a componentwise subtraction operation on two double2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 operator - (double2x3 lhs, double2x3 rhs) { return new double2x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } - - /// Returns the result of a componentwise subtraction operation on a double2x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 operator - (double2x3 lhs, double rhs) { return new double2x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a double value and a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 operator - (double lhs, double2x3 rhs) { return new double2x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } - - - /// Returns the result of a componentwise division operation on two double2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 operator / (double2x3 lhs, double2x3 rhs) { return new double2x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } - - /// Returns the result of a componentwise division operation on a double2x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 operator / (double2x3 lhs, double rhs) { return new double2x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } - - /// Returns the result of a componentwise division operation on a double value and a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 operator / (double lhs, double2x3 rhs) { return new double2x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } - - - /// Returns the result of a componentwise modulus operation on two double2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 operator % (double2x3 lhs, double2x3 rhs) { return new double2x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } - - /// Returns the result of a componentwise modulus operation on a double2x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 operator % (double2x3 lhs, double rhs) { return new double2x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } - - /// Returns the result of a componentwise modulus operation on a double value and a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 operator % (double lhs, double2x3 rhs) { return new double2x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } - - - /// Returns the result of a componentwise increment operation on a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 operator ++ (double2x3 val) { return new double2x3 (++val.c0, ++val.c1, ++val.c2); } - - - /// Returns the result of a componentwise decrement operation on a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 operator -- (double2x3 val) { return new double2x3 (--val.c0, --val.c1, --val.c2); } - - - /// Returns the result of a componentwise less than operation on two double2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator < (double2x3 lhs, double2x3 rhs) { return new bool2x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } - - /// Returns the result of a componentwise less than operation on a double2x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator < (double2x3 lhs, double rhs) { return new bool2x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } - - /// Returns the result of a componentwise less than operation on a double value and a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator < (double lhs, double2x3 rhs) { return new bool2x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } - - - /// Returns the result of a componentwise less or equal operation on two double2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator <= (double2x3 lhs, double2x3 rhs) { return new bool2x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } - - /// Returns the result of a componentwise less or equal operation on a double2x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator <= (double2x3 lhs, double rhs) { return new bool2x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a double value and a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator <= (double lhs, double2x3 rhs) { return new bool2x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } - - - /// Returns the result of a componentwise greater than operation on two double2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator > (double2x3 lhs, double2x3 rhs) { return new bool2x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } - - /// Returns the result of a componentwise greater than operation on a double2x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator > (double2x3 lhs, double rhs) { return new bool2x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } - - /// Returns the result of a componentwise greater than operation on a double value and a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator > (double lhs, double2x3 rhs) { return new bool2x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } - - - /// Returns the result of a componentwise greater or equal operation on two double2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator >= (double2x3 lhs, double2x3 rhs) { return new bool2x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } - - /// Returns the result of a componentwise greater or equal operation on a double2x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator >= (double2x3 lhs, double rhs) { return new bool2x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a double value and a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator >= (double lhs, double2x3 rhs) { return new bool2x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } - - - /// Returns the result of a componentwise unary minus operation on a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 operator - (double2x3 val) { return new double2x3 (-val.c0, -val.c1, -val.c2); } - - - /// Returns the result of a componentwise unary plus operation on a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 operator + (double2x3 val) { return new double2x3 (+val.c0, +val.c1, +val.c2); } - - - /// Returns the result of a componentwise equality operation on two double2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator == (double2x3 lhs, double2x3 rhs) { return new bool2x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } - - /// Returns the result of a componentwise equality operation on a double2x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator == (double2x3 lhs, double rhs) { return new bool2x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } - - /// Returns the result of a componentwise equality operation on a double value and a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator == (double lhs, double2x3 rhs) { return new bool2x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } - - - /// Returns the result of a componentwise not equal operation on two double2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator != (double2x3 lhs, double2x3 rhs) { return new bool2x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } - - /// Returns the result of a componentwise not equal operation on a double2x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator != (double2x3 lhs, double rhs) { return new bool2x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } - - /// Returns the result of a componentwise not equal operation on a double value and a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator != (double lhs, double2x3 rhs) { return new bool2x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } - - - - /// Returns the double2 element at a specified index. - unsafe public ref double2 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (double2x3* array = &this) { return ref ((double2*)array)[index]; } - } - } - - /// Returns true if the double2x3 is equal to a given double2x3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(double2x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } - - /// Returns true if the double2x3 is equal to a given double2x3, false otherwise. - public override bool Equals(object o) { return Equals((double2x3)o); } - - - /// Returns a hash code for the double2x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the double2x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("double2x3({0}, {1}, {2}, {3}, {4}, {5})", c0.x, c1.x, c2.x, c0.y, c1.y, c2.y); - } - - /// Returns a string representation of the double2x3 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("double2x3({0}, {1}, {2}, {3}, {4}, {5})", 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)); - } - - } - - public static partial class math - { - /// Returns a double2x3 matrix constructed from three double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 double2x3(double2 c0, double2 c1, double2 c2) { return new double2x3(c0, c1, c2); } - - /// Returns a double2x3 matrix constructed from from 6 double values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 double2x3(double m00, double m01, double m02, - double m10, double m11, double m12) - { - return new double2x3(m00, m01, m02, - m10, m11, m12); - } - - /// Returns a double2x3 matrix constructed from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 double2x3(double v) { return new double2x3(v); } - - /// Returns a double2x3 matrix constructed from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 double2x3(bool v) { return new double2x3(v); } - - /// Return a double2x3 matrix constructed from a bool2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 double2x3(bool2x3 v) { return new double2x3(v); } - - /// Returns a double2x3 matrix constructed from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 double2x3(int v) { return new double2x3(v); } - - /// Return a double2x3 matrix constructed from a int2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 double2x3(int2x3 v) { return new double2x3(v); } - - /// Returns a double2x3 matrix constructed from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 double2x3(uint v) { return new double2x3(v); } - - /// Return a double2x3 matrix constructed from a uint2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 double2x3(uint2x3 v) { return new double2x3(v); } - - /// Returns a double2x3 matrix constructed from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 double2x3(float v) { return new double2x3(v); } - - /// Return a double2x3 matrix constructed from a float2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 double2x3(float2x3 v) { return new double2x3(v); } - - /// Return the double3x2 transpose of a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 transpose(double2x3 v) - { - return double3x2( - v.c0.x, v.c0.y, - v.c1.x, v.c1.y, - v.c2.x, v.c2.y); - } - - /// Returns a uint hash code of a double2x3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(double2x3 v) - { - return csum(fold_to_uint(v.c0) * uint2(0xF25BE857u, 0x9BC17CE7u) + - fold_to_uint(v.c1) * uint2(0xC8B86851u, 0x64095221u) + - fold_to_uint(v.c2) * uint2(0xADF428FFu, 0xA3977109u)) + 0x745ED837u; - } - - /// - /// Returns a uint2 vector hash code of a double2x3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(double2x3 v) - { - return (fold_to_uint(v.c0) * uint2(0x9CDC88F5u, 0xFA62D721u) + - fold_to_uint(v.c1) * uint2(0x7E4DB1CFu, 0x68EEE0F5u) + - fold_to_uint(v.c2) * uint2(0xBC3B0A59u, 0x816EFB5Du)) + 0xA24E82B7u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/double2x4.gen.cs b/Economy.Shared/Unity.Mathematics/double2x4.gen.cs deleted file mode 100644 index 045315eda..000000000 --- a/Economy.Shared/Unity.Mathematics/double2x4.gen.cs +++ /dev/null @@ -1,469 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct double2x4 : System.IEquatable, IFormattable - { - public double2 c0; - public double2 c1; - public double2 c2; - public double2 c3; - - /// double2x4 zero value. - public static readonly double2x4 zero; - - /// Constructs a double2x4 matrix from four double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x4(double2 c0, double2 c1, double2 c2, double2 c3) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - this.c3 = c3; - } - - /// Constructs a double2x4 matrix from 8 double values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x4(double m00, double m01, double m02, double m03, - double m10, double m11, double m12, double m13) - { - this.c0 = new double2(m00, m10); - this.c1 = new double2(m01, m11); - this.c2 = new double2(m02, m12); - this.c3 = new double2(m03, m13); - } - - /// Constructs a double2x4 matrix from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x4(double v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a double2x4 matrix from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x4(bool v) - { - this.c0 = math.select(new double2(0.0), new double2(1.0), v); - this.c1 = math.select(new double2(0.0), new double2(1.0), v); - this.c2 = math.select(new double2(0.0), new double2(1.0), v); - this.c3 = math.select(new double2(0.0), new double2(1.0), v); - } - - /// Constructs a double2x4 matrix from a bool2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x4(bool2x4 v) - { - this.c0 = math.select(new double2(0.0), new double2(1.0), v.c0); - this.c1 = math.select(new double2(0.0), new double2(1.0), v.c1); - this.c2 = math.select(new double2(0.0), new double2(1.0), v.c2); - this.c3 = math.select(new double2(0.0), new double2(1.0), v.c3); - } - - /// Constructs a double2x4 matrix from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x4(int v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a double2x4 matrix from a int2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x4(int2x4 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - this.c3 = v.c3; - } - - /// Constructs a double2x4 matrix from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x4(uint v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a double2x4 matrix from a uint2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x4(uint2x4 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - this.c3 = v.c3; - } - - /// Constructs a double2x4 matrix from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x4(float v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a double2x4 matrix from a float2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2x4(float2x4 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - this.c3 = v.c3; - } - - - /// Implicitly converts a single double value to a double2x4 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x4(double v) { return new double2x4(v); } - - /// Explicitly converts a single bool value to a double2x4 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double2x4(bool v) { return new double2x4(v); } - - /// Explicitly converts a bool2x4 matrix to a double2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double2x4(bool2x4 v) { return new double2x4(v); } - - /// Implicitly converts a single int value to a double2x4 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x4(int v) { return new double2x4(v); } - - /// Implicitly converts a int2x4 matrix to a double2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x4(int2x4 v) { return new double2x4(v); } - - /// Implicitly converts a single uint value to a double2x4 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x4(uint v) { return new double2x4(v); } - - /// Implicitly converts a uint2x4 matrix to a double2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x4(uint2x4 v) { return new double2x4(v); } - - /// Implicitly converts a single float value to a double2x4 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x4(float v) { return new double2x4(v); } - - /// Implicitly converts a float2x4 matrix to a double2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double2x4(float2x4 v) { return new double2x4(v); } - - - /// Returns the result of a componentwise multiplication operation on two double2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 operator * (double2x4 lhs, double2x4 rhs) { return new double2x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } - - /// Returns the result of a componentwise multiplication operation on a double2x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 operator * (double2x4 lhs, double rhs) { return new double2x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a double value and a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 operator * (double lhs, double2x4 rhs) { return new double2x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } - - - /// Returns the result of a componentwise addition operation on two double2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 operator + (double2x4 lhs, double2x4 rhs) { return new double2x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } - - /// Returns the result of a componentwise addition operation on a double2x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 operator + (double2x4 lhs, double rhs) { return new double2x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } - - /// Returns the result of a componentwise addition operation on a double value and a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 operator + (double lhs, double2x4 rhs) { return new double2x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } - - - /// Returns the result of a componentwise subtraction operation on two double2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 operator - (double2x4 lhs, double2x4 rhs) { return new double2x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } - - /// Returns the result of a componentwise subtraction operation on a double2x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 operator - (double2x4 lhs, double rhs) { return new double2x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a double value and a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 operator - (double lhs, double2x4 rhs) { return new double2x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } - - - /// Returns the result of a componentwise division operation on two double2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 operator / (double2x4 lhs, double2x4 rhs) { return new double2x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } - - /// Returns the result of a componentwise division operation on a double2x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 operator / (double2x4 lhs, double rhs) { return new double2x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } - - /// Returns the result of a componentwise division operation on a double value and a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 operator / (double lhs, double2x4 rhs) { return new double2x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } - - - /// Returns the result of a componentwise modulus operation on two double2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 operator % (double2x4 lhs, double2x4 rhs) { return new double2x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } - - /// Returns the result of a componentwise modulus operation on a double2x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 operator % (double2x4 lhs, double rhs) { return new double2x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } - - /// Returns the result of a componentwise modulus operation on a double value and a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 operator % (double lhs, double2x4 rhs) { return new double2x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } - - - /// Returns the result of a componentwise increment operation on a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 operator ++ (double2x4 val) { return new double2x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } - - - /// Returns the result of a componentwise decrement operation on a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 operator -- (double2x4 val) { return new double2x4 (--val.c0, --val.c1, --val.c2, --val.c3); } - - - /// Returns the result of a componentwise less than operation on two double2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator < (double2x4 lhs, double2x4 rhs) { return new bool2x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } - - /// Returns the result of a componentwise less than operation on a double2x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator < (double2x4 lhs, double rhs) { return new bool2x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } - - /// Returns the result of a componentwise less than operation on a double value and a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator < (double lhs, double2x4 rhs) { return new bool2x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } - - - /// Returns the result of a componentwise less or equal operation on two double2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator <= (double2x4 lhs, double2x4 rhs) { return new bool2x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } - - /// Returns the result of a componentwise less or equal operation on a double2x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator <= (double2x4 lhs, double rhs) { return new bool2x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a double value and a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator <= (double lhs, double2x4 rhs) { return new bool2x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } - - - /// Returns the result of a componentwise greater than operation on two double2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator > (double2x4 lhs, double2x4 rhs) { return new bool2x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } - - /// Returns the result of a componentwise greater than operation on a double2x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator > (double2x4 lhs, double rhs) { return new bool2x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } - - /// Returns the result of a componentwise greater than operation on a double value and a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator > (double lhs, double2x4 rhs) { return new bool2x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } - - - /// Returns the result of a componentwise greater or equal operation on two double2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator >= (double2x4 lhs, double2x4 rhs) { return new bool2x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } - - /// Returns the result of a componentwise greater or equal operation on a double2x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator >= (double2x4 lhs, double rhs) { return new bool2x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a double value and a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator >= (double lhs, double2x4 rhs) { return new bool2x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } - - - /// Returns the result of a componentwise unary minus operation on a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 operator - (double2x4 val) { return new double2x4 (-val.c0, -val.c1, -val.c2, -val.c3); } - - - /// Returns the result of a componentwise unary plus operation on a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 operator + (double2x4 val) { return new double2x4 (+val.c0, +val.c1, +val.c2, +val.c3); } - - - /// Returns the result of a componentwise equality operation on two double2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator == (double2x4 lhs, double2x4 rhs) { return new bool2x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } - - /// Returns the result of a componentwise equality operation on a double2x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator == (double2x4 lhs, double rhs) { return new bool2x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } - - /// Returns the result of a componentwise equality operation on a double value and a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator == (double lhs, double2x4 rhs) { return new bool2x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } - - - /// Returns the result of a componentwise not equal operation on two double2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator != (double2x4 lhs, double2x4 rhs) { return new bool2x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } - - /// Returns the result of a componentwise not equal operation on a double2x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator != (double2x4 lhs, double rhs) { return new bool2x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } - - /// Returns the result of a componentwise not equal operation on a double value and a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator != (double lhs, double2x4 rhs) { return new bool2x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } - - - - /// Returns the double2 element at a specified index. - unsafe public ref double2 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (double2x4* array = &this) { return ref ((double2*)array)[index]; } - } - } - - /// Returns true if the double2x4 is equal to a given double2x4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(double2x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } - - /// Returns true if the double2x4 is equal to a given double2x4, false otherwise. - public override bool Equals(object o) { return Equals((double2x4)o); } - - - /// Returns a hash code for the double2x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the double2x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("double2x4({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7})", c0.x, c1.x, c2.x, c3.x, c0.y, c1.y, c2.y, c3.y); - } - - /// Returns a string representation of the double2x4 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("double2x4({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7})", 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)); - } - - } - - public static partial class math - { - /// Returns a double2x4 matrix constructed from four double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 double2x4(double2 c0, double2 c1, double2 c2, double2 c3) { return new double2x4(c0, c1, c2, c3); } - - /// Returns a double2x4 matrix constructed from from 8 double values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 double2x4(double m00, double m01, double m02, double m03, - double m10, double m11, double m12, double m13) - { - return new double2x4(m00, m01, m02, m03, - m10, m11, m12, m13); - } - - /// Returns a double2x4 matrix constructed from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 double2x4(double v) { return new double2x4(v); } - - /// Returns a double2x4 matrix constructed from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 double2x4(bool v) { return new double2x4(v); } - - /// Return a double2x4 matrix constructed from a bool2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 double2x4(bool2x4 v) { return new double2x4(v); } - - /// Returns a double2x4 matrix constructed from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 double2x4(int v) { return new double2x4(v); } - - /// Return a double2x4 matrix constructed from a int2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 double2x4(int2x4 v) { return new double2x4(v); } - - /// Returns a double2x4 matrix constructed from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 double2x4(uint v) { return new double2x4(v); } - - /// Return a double2x4 matrix constructed from a uint2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 double2x4(uint2x4 v) { return new double2x4(v); } - - /// Returns a double2x4 matrix constructed from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 double2x4(float v) { return new double2x4(v); } - - /// Return a double2x4 matrix constructed from a float2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 double2x4(float2x4 v) { return new double2x4(v); } - - /// Return the double4x2 transpose of a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 transpose(double2x4 v) - { - return double4x2( - v.c0.x, v.c0.y, - v.c1.x, v.c1.y, - v.c2.x, v.c2.y, - v.c3.x, v.c3.y); - } - - /// Returns a uint hash code of a double2x4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(double2x4 v) - { - return csum(fold_to_uint(v.c0) * uint2(0x91475DF7u, 0x55E84827u) + - fold_to_uint(v.c1) * uint2(0x90A285BBu, 0x5D19E1D5u) + - fold_to_uint(v.c2) * uint2(0xFAAF07DDu, 0x625C45BDu) + - fold_to_uint(v.c3) * uint2(0xC9F27FCBu, 0x6D2523B1u)) + 0x6E2BF6A9u; - } - - /// - /// Returns a uint2 vector hash code of a double2x4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(double2x4 v) - { - return (fold_to_uint(v.c0) * uint2(0xCC74B3B7u, 0x83B58237u) + - fold_to_uint(v.c1) * uint2(0x833E3E29u, 0xA9D919BFu) + - fold_to_uint(v.c2) * uint2(0xC3EC1D97u, 0xB8B208C7u) + - fold_to_uint(v.c3) * uint2(0x5D3ED947u, 0x4473BBB1u)) + 0xCBA11D5Fu; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/double3.gen.cs b/Economy.Shared/Unity.Mathematics/double3.gen.cs deleted file mode 100644 index 7e97c9fd6..000000000 --- a/Economy.Shared/Unity.Mathematics/double3.gen.cs +++ /dev/null @@ -1,1538 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; -using System.Diagnostics; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [DebuggerTypeProxy(typeof(double3.DebuggerProxy))] - [System.Serializable] - public partial struct double3 : System.IEquatable, IFormattable - { - public double x; - public double y; - public double z; - - /// double3 zero value. - public static readonly double3 zero; - - /// Constructs a double3 vector from three double values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3(double x, double y, double z) - { - this.x = x; - this.y = y; - this.z = z; - } - - /// Constructs a double3 vector from a double value and a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3(double x, double2 yz) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - } - - /// Constructs a double3 vector from a double2 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3(double2 xy, double z) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - } - - /// Constructs a double3 vector from a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3(double3 xyz) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - } - - /// Constructs a double3 vector from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3(double v) - { - this.x = v; - this.y = v; - this.z = v; - } - - /// Constructs a double3 vector from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3(bool v) - { - this.x = v ? 1.0 : 0.0; - this.y = v ? 1.0 : 0.0; - this.z = v ? 1.0 : 0.0; - } - - /// Constructs a double3 vector from a bool3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3(bool3 v) - { - this.x = v.x ? 1.0 : 0.0; - this.y = v.y ? 1.0 : 0.0; - this.z = v.z ? 1.0 : 0.0; - } - - /// Constructs a double3 vector from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3(int v) - { - this.x = v; - this.y = v; - this.z = v; - } - - /// Constructs a double3 vector from a int3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3(int3 v) - { - this.x = v.x; - this.y = v.y; - this.z = v.z; - } - - /// Constructs a double3 vector from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3(uint v) - { - this.x = v; - this.y = v; - this.z = v; - } - - /// Constructs a double3 vector from a uint3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3(uint3 v) - { - this.x = v.x; - this.y = v.y; - this.z = v.z; - } - - /// Constructs a double3 vector from a single half value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3(half v) - { - this.x = v; - this.y = v; - this.z = v; - } - - /// Constructs a double3 vector from a half3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3(half3 v) - { - this.x = v.x; - this.y = v.y; - this.z = v.z; - } - - /// Constructs a double3 vector from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3(float v) - { - this.x = v; - this.y = v; - this.z = v; - } - - /// Constructs a double3 vector from a float3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3(float3 v) - { - this.x = v.x; - this.y = v.y; - this.z = v.z; - } - - - /// Implicitly converts a single double value to a double3 vector by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3(double v) { return new double3(v); } - - /// Explicitly converts a single bool value to a double3 vector by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double3(bool v) { return new double3(v); } - - /// Explicitly converts a bool3 vector to a double3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double3(bool3 v) { return new double3(v); } - - /// Implicitly converts a single int value to a double3 vector by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3(int v) { return new double3(v); } - - /// Implicitly converts a int3 vector to a double3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3(int3 v) { return new double3(v); } - - /// Implicitly converts a single uint value to a double3 vector by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3(uint v) { return new double3(v); } - - /// Implicitly converts a uint3 vector to a double3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3(uint3 v) { return new double3(v); } - - /// Implicitly converts a single half value to a double3 vector by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3(half v) { return new double3(v); } - - /// Implicitly converts a half3 vector to a double3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3(half3 v) { return new double3(v); } - - /// Implicitly converts a single float value to a double3 vector by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3(float v) { return new double3(v); } - - /// Implicitly converts a float3 vector to a double3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3(float3 v) { return new double3(v); } - - - /// Returns the result of a componentwise multiplication operation on two double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 operator * (double3 lhs, double3 rhs) { return new double3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } - - /// Returns the result of a componentwise multiplication operation on a double3 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 operator * (double3 lhs, double rhs) { return new double3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } - - /// Returns the result of a componentwise multiplication operation on a double value and a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 operator * (double lhs, double3 rhs) { return new double3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } - - - /// Returns the result of a componentwise addition operation on two double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 operator + (double3 lhs, double3 rhs) { return new double3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } - - /// Returns the result of a componentwise addition operation on a double3 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 operator + (double3 lhs, double rhs) { return new double3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } - - /// Returns the result of a componentwise addition operation on a double value and a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 operator + (double lhs, double3 rhs) { return new double3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } - - - /// Returns the result of a componentwise subtraction operation on two double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 operator - (double3 lhs, double3 rhs) { return new double3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } - - /// Returns the result of a componentwise subtraction operation on a double3 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 operator - (double3 lhs, double rhs) { return new double3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } - - /// Returns the result of a componentwise subtraction operation on a double value and a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 operator - (double lhs, double3 rhs) { return new double3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } - - - /// Returns the result of a componentwise division operation on two double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 operator / (double3 lhs, double3 rhs) { return new double3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } - - /// Returns the result of a componentwise division operation on a double3 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 operator / (double3 lhs, double rhs) { return new double3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } - - /// Returns the result of a componentwise division operation on a double value and a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 operator / (double lhs, double3 rhs) { return new double3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } - - - /// Returns the result of a componentwise modulus operation on two double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 operator % (double3 lhs, double3 rhs) { return new double3 (lhs.x % rhs.x, lhs.y % rhs.y, lhs.z % rhs.z); } - - /// Returns the result of a componentwise modulus operation on a double3 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 operator % (double3 lhs, double rhs) { return new double3 (lhs.x % rhs, lhs.y % rhs, lhs.z % rhs); } - - /// Returns the result of a componentwise modulus operation on a double value and a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 operator % (double lhs, double3 rhs) { return new double3 (lhs % rhs.x, lhs % rhs.y, lhs % rhs.z); } - - - /// Returns the result of a componentwise increment operation on a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 operator ++ (double3 val) { return new double3 (++val.x, ++val.y, ++val.z); } - - - /// Returns the result of a componentwise decrement operation on a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 operator -- (double3 val) { return new double3 (--val.x, --val.y, --val.z); } - - - /// Returns the result of a componentwise less than operation on two double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (double3 lhs, double3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } - - /// Returns the result of a componentwise less than operation on a double3 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (double3 lhs, double rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } - - /// Returns the result of a componentwise less than operation on a double value and a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (double lhs, double3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } - - - /// Returns the result of a componentwise less or equal operation on two double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (double3 lhs, double3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } - - /// Returns the result of a componentwise less or equal operation on a double3 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (double3 lhs, double rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a double value and a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (double lhs, double3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } - - - /// Returns the result of a componentwise greater than operation on two double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (double3 lhs, double3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } - - /// Returns the result of a componentwise greater than operation on a double3 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (double3 lhs, double rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } - - /// Returns the result of a componentwise greater than operation on a double value and a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (double lhs, double3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } - - - /// Returns the result of a componentwise greater or equal operation on two double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (double3 lhs, double3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } - - /// Returns the result of a componentwise greater or equal operation on a double3 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (double3 lhs, double rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a double value and a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (double lhs, double3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } - - - /// Returns the result of a componentwise unary minus operation on a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 operator - (double3 val) { return new double3 (-val.x, -val.y, -val.z); } - - - /// Returns the result of a componentwise unary plus operation on a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 operator + (double3 val) { return new double3 (+val.x, +val.y, +val.z); } - - - /// Returns the result of a componentwise equality operation on two double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (double3 lhs, double3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } - - /// Returns the result of a componentwise equality operation on a double3 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (double3 lhs, double rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } - - /// Returns the result of a componentwise equality operation on a double value and a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (double lhs, double3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } - - - /// Returns the result of a componentwise not equal operation on two double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (double3 lhs, double3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } - - /// Returns the result of a componentwise not equal operation on a double3 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (double3 lhs, double rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } - - /// Returns the result of a componentwise not equal operation on a double value and a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (double lhs, double3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } - - - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(z, z); } - } - - - - /// Returns the double element at a specified index. - unsafe public double this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (double3* array = &this) { return ((double*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (double* array = &x) { array[index] = value; } - } - } - - /// Returns true if the double3 is equal to a given double3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(double3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } - - /// Returns true if the double3 is equal to a given double3, false otherwise. - public override bool Equals(object o) { return Equals((double3)o); } - - - /// Returns a hash code for the double3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the double3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("double3({0}, {1}, {2})", x, y, z); - } - - /// Returns a string representation of the double3 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("double3({0}, {1}, {2})", x.ToString(format, formatProvider), y.ToString(format, formatProvider), z.ToString(format, formatProvider)); - } - - internal sealed class DebuggerProxy - { - public double x; - public double y; - public double z; - public DebuggerProxy(double3 v) - { - x = v.x; - y = v.y; - z = v.z; - } - } - - } - - public static partial class math - { - /// Returns a double3 vector constructed from three double values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 double3(double x, double y, double z) { return new double3(x, y, z); } - - /// Returns a double3 vector constructed from a double value and a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 double3(double x, double2 yz) { return new double3(x, yz); } - - /// Returns a double3 vector constructed from a double2 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 double3(double2 xy, double z) { return new double3(xy, z); } - - /// Returns a double3 vector constructed from a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 double3(double3 xyz) { return new double3(xyz); } - - /// Returns a double3 vector constructed from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 double3(double v) { return new double3(v); } - - /// Returns a double3 vector constructed from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 double3(bool v) { return new double3(v); } - - /// Return a double3 vector constructed from a bool3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 double3(bool3 v) { return new double3(v); } - - /// Returns a double3 vector constructed from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 double3(int v) { return new double3(v); } - - /// Return a double3 vector constructed from a int3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 double3(int3 v) { return new double3(v); } - - /// Returns a double3 vector constructed from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 double3(uint v) { return new double3(v); } - - /// Return a double3 vector constructed from a uint3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 double3(uint3 v) { return new double3(v); } - - /// Returns a double3 vector constructed from a single half value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 double3(half v) { return new double3(v); } - - /// Return a double3 vector constructed from a half3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 double3(half3 v) { return new double3(v); } - - /// Returns a double3 vector constructed from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 double3(float v) { return new double3(v); } - - /// Return a double3 vector constructed from a float3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 double3(float3 v) { return new double3(v); } - - /// Returns a uint hash code of a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(double3 v) - { - return csum(fold_to_uint(v) * uint3(0xAF0F3103u, 0xE4A056C7u, 0x841D8225u)) + 0xC9393C7Du; - } - - /// - /// Returns a uint3 vector hash code of a double3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(double3 v) - { - return (fold_to_uint(v) * uint3(0xD42EAFA3u, 0xD9AFD06Du, 0x97A65421u)) + 0x7809205Fu; - } - - /// Returns the result of specified shuffling of the components from two double3 vectors into a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double shuffle(double3 a, double3 b, ShuffleComponent x) - { - return select_shuffle_component(a, b, x); - } - - /// Returns the result of specified shuffling of the components from two double3 vectors into a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 shuffle(double3 a, double3 b, ShuffleComponent x, ShuffleComponent y) - { - return double2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); - } - - /// Returns the result of specified shuffling of the components from two double3 vectors into a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 shuffle(double3 a, double3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) - { - return double3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); - } - - /// Returns the result of specified shuffling of the components from two double3 vectors into a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 shuffle(double3 a, double3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) - { - return double4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double select_shuffle_component(double3 a, double3 b, ShuffleComponent component) - { - switch(component) - { - case ShuffleComponent.LeftX: - return a.x; - case ShuffleComponent.LeftY: - return a.y; - case ShuffleComponent.LeftZ: - return a.z; - case ShuffleComponent.RightX: - return b.x; - case ShuffleComponent.RightY: - return b.y; - case ShuffleComponent.RightZ: - return b.z; - default: - throw new System.ArgumentException("Invalid shuffle component: " + component); - } - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/double3x2.gen.cs b/Economy.Shared/Unity.Mathematics/double3x2.gen.cs deleted file mode 100644 index 6fac1717b..000000000 --- a/Economy.Shared/Unity.Mathematics/double3x2.gen.cs +++ /dev/null @@ -1,442 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct double3x2 : System.IEquatable, IFormattable - { - public double3 c0; - public double3 c1; - - /// double3x2 zero value. - public static readonly double3x2 zero; - - /// Constructs a double3x2 matrix from two double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x2(double3 c0, double3 c1) - { - this.c0 = c0; - this.c1 = c1; - } - - /// Constructs a double3x2 matrix from 6 double values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x2(double m00, double m01, - double m10, double m11, - double m20, double m21) - { - this.c0 = new double3(m00, m10, m20); - this.c1 = new double3(m01, m11, m21); - } - - /// Constructs a double3x2 matrix from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x2(double v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a double3x2 matrix from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x2(bool v) - { - this.c0 = math.select(new double3(0.0), new double3(1.0), v); - this.c1 = math.select(new double3(0.0), new double3(1.0), v); - } - - /// Constructs a double3x2 matrix from a bool3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x2(bool3x2 v) - { - this.c0 = math.select(new double3(0.0), new double3(1.0), v.c0); - this.c1 = math.select(new double3(0.0), new double3(1.0), v.c1); - } - - /// Constructs a double3x2 matrix from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x2(int v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a double3x2 matrix from a int3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x2(int3x2 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - } - - /// Constructs a double3x2 matrix from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x2(uint v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a double3x2 matrix from a uint3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x2(uint3x2 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - } - - /// Constructs a double3x2 matrix from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x2(float v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a double3x2 matrix from a float3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x2(float3x2 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - } - - - /// Implicitly converts a single double value to a double3x2 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x2(double v) { return new double3x2(v); } - - /// Explicitly converts a single bool value to a double3x2 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double3x2(bool v) { return new double3x2(v); } - - /// Explicitly converts a bool3x2 matrix to a double3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double3x2(bool3x2 v) { return new double3x2(v); } - - /// Implicitly converts a single int value to a double3x2 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x2(int v) { return new double3x2(v); } - - /// Implicitly converts a int3x2 matrix to a double3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x2(int3x2 v) { return new double3x2(v); } - - /// Implicitly converts a single uint value to a double3x2 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x2(uint v) { return new double3x2(v); } - - /// Implicitly converts a uint3x2 matrix to a double3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x2(uint3x2 v) { return new double3x2(v); } - - /// Implicitly converts a single float value to a double3x2 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x2(float v) { return new double3x2(v); } - - /// Implicitly converts a float3x2 matrix to a double3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x2(float3x2 v) { return new double3x2(v); } - - - /// Returns the result of a componentwise multiplication operation on two double3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 operator * (double3x2 lhs, double3x2 rhs) { return new double3x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } - - /// Returns the result of a componentwise multiplication operation on a double3x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 operator * (double3x2 lhs, double rhs) { return new double3x2 (lhs.c0 * rhs, lhs.c1 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a double value and a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 operator * (double lhs, double3x2 rhs) { return new double3x2 (lhs * rhs.c0, lhs * rhs.c1); } - - - /// Returns the result of a componentwise addition operation on two double3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 operator + (double3x2 lhs, double3x2 rhs) { return new double3x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } - - /// Returns the result of a componentwise addition operation on a double3x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 operator + (double3x2 lhs, double rhs) { return new double3x2 (lhs.c0 + rhs, lhs.c1 + rhs); } - - /// Returns the result of a componentwise addition operation on a double value and a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 operator + (double lhs, double3x2 rhs) { return new double3x2 (lhs + rhs.c0, lhs + rhs.c1); } - - - /// Returns the result of a componentwise subtraction operation on two double3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 operator - (double3x2 lhs, double3x2 rhs) { return new double3x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } - - /// Returns the result of a componentwise subtraction operation on a double3x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 operator - (double3x2 lhs, double rhs) { return new double3x2 (lhs.c0 - rhs, lhs.c1 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a double value and a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 operator - (double lhs, double3x2 rhs) { return new double3x2 (lhs - rhs.c0, lhs - rhs.c1); } - - - /// Returns the result of a componentwise division operation on two double3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 operator / (double3x2 lhs, double3x2 rhs) { return new double3x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } - - /// Returns the result of a componentwise division operation on a double3x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 operator / (double3x2 lhs, double rhs) { return new double3x2 (lhs.c0 / rhs, lhs.c1 / rhs); } - - /// Returns the result of a componentwise division operation on a double value and a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 operator / (double lhs, double3x2 rhs) { return new double3x2 (lhs / rhs.c0, lhs / rhs.c1); } - - - /// Returns the result of a componentwise modulus operation on two double3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 operator % (double3x2 lhs, double3x2 rhs) { return new double3x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } - - /// Returns the result of a componentwise modulus operation on a double3x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 operator % (double3x2 lhs, double rhs) { return new double3x2 (lhs.c0 % rhs, lhs.c1 % rhs); } - - /// Returns the result of a componentwise modulus operation on a double value and a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 operator % (double lhs, double3x2 rhs) { return new double3x2 (lhs % rhs.c0, lhs % rhs.c1); } - - - /// Returns the result of a componentwise increment operation on a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 operator ++ (double3x2 val) { return new double3x2 (++val.c0, ++val.c1); } - - - /// Returns the result of a componentwise decrement operation on a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 operator -- (double3x2 val) { return new double3x2 (--val.c0, --val.c1); } - - - /// Returns the result of a componentwise less than operation on two double3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator < (double3x2 lhs, double3x2 rhs) { return new bool3x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } - - /// Returns the result of a componentwise less than operation on a double3x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator < (double3x2 lhs, double rhs) { return new bool3x2 (lhs.c0 < rhs, lhs.c1 < rhs); } - - /// Returns the result of a componentwise less than operation on a double value and a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator < (double lhs, double3x2 rhs) { return new bool3x2 (lhs < rhs.c0, lhs < rhs.c1); } - - - /// Returns the result of a componentwise less or equal operation on two double3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator <= (double3x2 lhs, double3x2 rhs) { return new bool3x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } - - /// Returns the result of a componentwise less or equal operation on a double3x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator <= (double3x2 lhs, double rhs) { return new bool3x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a double value and a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator <= (double lhs, double3x2 rhs) { return new bool3x2 (lhs <= rhs.c0, lhs <= rhs.c1); } - - - /// Returns the result of a componentwise greater than operation on two double3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator > (double3x2 lhs, double3x2 rhs) { return new bool3x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } - - /// Returns the result of a componentwise greater than operation on a double3x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator > (double3x2 lhs, double rhs) { return new bool3x2 (lhs.c0 > rhs, lhs.c1 > rhs); } - - /// Returns the result of a componentwise greater than operation on a double value and a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator > (double lhs, double3x2 rhs) { return new bool3x2 (lhs > rhs.c0, lhs > rhs.c1); } - - - /// Returns the result of a componentwise greater or equal operation on two double3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator >= (double3x2 lhs, double3x2 rhs) { return new bool3x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } - - /// Returns the result of a componentwise greater or equal operation on a double3x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator >= (double3x2 lhs, double rhs) { return new bool3x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a double value and a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator >= (double lhs, double3x2 rhs) { return new bool3x2 (lhs >= rhs.c0, lhs >= rhs.c1); } - - - /// Returns the result of a componentwise unary minus operation on a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 operator - (double3x2 val) { return new double3x2 (-val.c0, -val.c1); } - - - /// Returns the result of a componentwise unary plus operation on a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 operator + (double3x2 val) { return new double3x2 (+val.c0, +val.c1); } - - - /// Returns the result of a componentwise equality operation on two double3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator == (double3x2 lhs, double3x2 rhs) { return new bool3x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } - - /// Returns the result of a componentwise equality operation on a double3x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator == (double3x2 lhs, double rhs) { return new bool3x2 (lhs.c0 == rhs, lhs.c1 == rhs); } - - /// Returns the result of a componentwise equality operation on a double value and a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator == (double lhs, double3x2 rhs) { return new bool3x2 (lhs == rhs.c0, lhs == rhs.c1); } - - - /// Returns the result of a componentwise not equal operation on two double3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator != (double3x2 lhs, double3x2 rhs) { return new bool3x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } - - /// Returns the result of a componentwise not equal operation on a double3x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator != (double3x2 lhs, double rhs) { return new bool3x2 (lhs.c0 != rhs, lhs.c1 != rhs); } - - /// Returns the result of a componentwise not equal operation on a double value and a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator != (double lhs, double3x2 rhs) { return new bool3x2 (lhs != rhs.c0, lhs != rhs.c1); } - - - - /// Returns the double3 element at a specified index. - unsafe public ref double3 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (double3x2* array = &this) { return ref ((double3*)array)[index]; } - } - } - - /// Returns true if the double3x2 is equal to a given double3x2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(double3x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } - - /// Returns true if the double3x2 is equal to a given double3x2, false otherwise. - public override bool Equals(object o) { return Equals((double3x2)o); } - - - /// Returns a hash code for the double3x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the double3x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("double3x2({0}, {1}, {2}, {3}, {4}, {5})", c0.x, c1.x, c0.y, c1.y, c0.z, c1.z); - } - - /// Returns a string representation of the double3x2 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("double3x2({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)); - } - - } - - public static partial class math - { - /// Returns a double3x2 matrix constructed from two double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 double3x2(double3 c0, double3 c1) { return new double3x2(c0, c1); } - - /// Returns a double3x2 matrix constructed from from 6 double values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 double3x2(double m00, double m01, - double m10, double m11, - double m20, double m21) - { - return new double3x2(m00, m01, - m10, m11, - m20, m21); - } - - /// Returns a double3x2 matrix constructed from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 double3x2(double v) { return new double3x2(v); } - - /// Returns a double3x2 matrix constructed from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 double3x2(bool v) { return new double3x2(v); } - - /// Return a double3x2 matrix constructed from a bool3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 double3x2(bool3x2 v) { return new double3x2(v); } - - /// Returns a double3x2 matrix constructed from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 double3x2(int v) { return new double3x2(v); } - - /// Return a double3x2 matrix constructed from a int3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 double3x2(int3x2 v) { return new double3x2(v); } - - /// Returns a double3x2 matrix constructed from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 double3x2(uint v) { return new double3x2(v); } - - /// Return a double3x2 matrix constructed from a uint3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 double3x2(uint3x2 v) { return new double3x2(v); } - - /// Returns a double3x2 matrix constructed from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 double3x2(float v) { return new double3x2(v); } - - /// Return a double3x2 matrix constructed from a float3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 double3x2(float3x2 v) { return new double3x2(v); } - - /// Return the double2x3 transpose of a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 transpose(double3x2 v) - { - return double2x3( - v.c0.x, v.c0.y, v.c0.z, - v.c1.x, v.c1.y, v.c1.z); - } - - /// Returns a uint hash code of a double3x2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(double3x2 v) - { - return csum(fold_to_uint(v.c0) * uint3(0xEE390C97u, 0x9C8A2F05u, 0x4DDC6509u) + - fold_to_uint(v.c1) * uint3(0x7CF083CBu, 0x5C4D6CEDu, 0xF9137117u)) + 0xE857DCE1u; - } - - /// - /// Returns a uint3 vector hash code of a double3x2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(double3x2 v) - { - return (fold_to_uint(v.c0) * uint3(0xF62213C5u, 0x9CDAA959u, 0xAA269ABFu) + - fold_to_uint(v.c1) * uint3(0xD54BA36Fu, 0xFD0847B9u, 0x8189A683u)) + 0xB139D651u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/double3x3.gen.cs b/Economy.Shared/Unity.Mathematics/double3x3.gen.cs deleted file mode 100644 index 0169108cd..000000000 --- a/Economy.Shared/Unity.Mathematics/double3x3.gen.cs +++ /dev/null @@ -1,494 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct double3x3 : System.IEquatable, IFormattable - { - public double3 c0; - public double3 c1; - public double3 c2; - - /// double3x3 identity transform. - public static readonly double3x3 identity = new double3x3(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0); - - /// double3x3 zero value. - public static readonly double3x3 zero; - - /// Constructs a double3x3 matrix from three double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x3(double3 c0, double3 c1, double3 c2) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - } - - /// Constructs a double3x3 matrix from 9 double values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x3(double m00, double m01, double m02, - double m10, double m11, double m12, - double m20, double m21, double m22) - { - this.c0 = new double3(m00, m10, m20); - this.c1 = new double3(m01, m11, m21); - this.c2 = new double3(m02, m12, m22); - } - - /// Constructs a double3x3 matrix from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x3(double v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a double3x3 matrix from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x3(bool v) - { - this.c0 = math.select(new double3(0.0), new double3(1.0), v); - this.c1 = math.select(new double3(0.0), new double3(1.0), v); - this.c2 = math.select(new double3(0.0), new double3(1.0), v); - } - - /// Constructs a double3x3 matrix from a bool3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x3(bool3x3 v) - { - this.c0 = math.select(new double3(0.0), new double3(1.0), v.c0); - this.c1 = math.select(new double3(0.0), new double3(1.0), v.c1); - this.c2 = math.select(new double3(0.0), new double3(1.0), v.c2); - } - - /// Constructs a double3x3 matrix from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x3(int v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a double3x3 matrix from a int3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x3(int3x3 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - } - - /// Constructs a double3x3 matrix from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x3(uint v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a double3x3 matrix from a uint3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x3(uint3x3 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - } - - /// Constructs a double3x3 matrix from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x3(float v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a double3x3 matrix from a float3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x3(float3x3 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - } - - - /// Implicitly converts a single double value to a double3x3 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x3(double v) { return new double3x3(v); } - - /// Explicitly converts a single bool value to a double3x3 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double3x3(bool v) { return new double3x3(v); } - - /// Explicitly converts a bool3x3 matrix to a double3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double3x3(bool3x3 v) { return new double3x3(v); } - - /// Implicitly converts a single int value to a double3x3 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x3(int v) { return new double3x3(v); } - - /// Implicitly converts a int3x3 matrix to a double3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x3(int3x3 v) { return new double3x3(v); } - - /// Implicitly converts a single uint value to a double3x3 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x3(uint v) { return new double3x3(v); } - - /// Implicitly converts a uint3x3 matrix to a double3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x3(uint3x3 v) { return new double3x3(v); } - - /// Implicitly converts a single float value to a double3x3 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x3(float v) { return new double3x3(v); } - - /// Implicitly converts a float3x3 matrix to a double3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x3(float3x3 v) { return new double3x3(v); } - - - /// Returns the result of a componentwise multiplication operation on two double3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 operator * (double3x3 lhs, double3x3 rhs) { return new double3x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } - - /// Returns the result of a componentwise multiplication operation on a double3x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 operator * (double3x3 lhs, double rhs) { return new double3x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a double value and a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 operator * (double lhs, double3x3 rhs) { return new double3x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } - - - /// Returns the result of a componentwise addition operation on two double3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 operator + (double3x3 lhs, double3x3 rhs) { return new double3x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } - - /// Returns the result of a componentwise addition operation on a double3x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 operator + (double3x3 lhs, double rhs) { return new double3x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } - - /// Returns the result of a componentwise addition operation on a double value and a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 operator + (double lhs, double3x3 rhs) { return new double3x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } - - - /// Returns the result of a componentwise subtraction operation on two double3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 operator - (double3x3 lhs, double3x3 rhs) { return new double3x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } - - /// Returns the result of a componentwise subtraction operation on a double3x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 operator - (double3x3 lhs, double rhs) { return new double3x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a double value and a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 operator - (double lhs, double3x3 rhs) { return new double3x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } - - - /// Returns the result of a componentwise division operation on two double3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 operator / (double3x3 lhs, double3x3 rhs) { return new double3x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } - - /// Returns the result of a componentwise division operation on a double3x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 operator / (double3x3 lhs, double rhs) { return new double3x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } - - /// Returns the result of a componentwise division operation on a double value and a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 operator / (double lhs, double3x3 rhs) { return new double3x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } - - - /// Returns the result of a componentwise modulus operation on two double3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 operator % (double3x3 lhs, double3x3 rhs) { return new double3x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } - - /// Returns the result of a componentwise modulus operation on a double3x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 operator % (double3x3 lhs, double rhs) { return new double3x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } - - /// Returns the result of a componentwise modulus operation on a double value and a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 operator % (double lhs, double3x3 rhs) { return new double3x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } - - - /// Returns the result of a componentwise increment operation on a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 operator ++ (double3x3 val) { return new double3x3 (++val.c0, ++val.c1, ++val.c2); } - - - /// Returns the result of a componentwise decrement operation on a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 operator -- (double3x3 val) { return new double3x3 (--val.c0, --val.c1, --val.c2); } - - - /// Returns the result of a componentwise less than operation on two double3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator < (double3x3 lhs, double3x3 rhs) { return new bool3x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } - - /// Returns the result of a componentwise less than operation on a double3x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator < (double3x3 lhs, double rhs) { return new bool3x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } - - /// Returns the result of a componentwise less than operation on a double value and a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator < (double lhs, double3x3 rhs) { return new bool3x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } - - - /// Returns the result of a componentwise less or equal operation on two double3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator <= (double3x3 lhs, double3x3 rhs) { return new bool3x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } - - /// Returns the result of a componentwise less or equal operation on a double3x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator <= (double3x3 lhs, double rhs) { return new bool3x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a double value and a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator <= (double lhs, double3x3 rhs) { return new bool3x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } - - - /// Returns the result of a componentwise greater than operation on two double3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator > (double3x3 lhs, double3x3 rhs) { return new bool3x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } - - /// Returns the result of a componentwise greater than operation on a double3x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator > (double3x3 lhs, double rhs) { return new bool3x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } - - /// Returns the result of a componentwise greater than operation on a double value and a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator > (double lhs, double3x3 rhs) { return new bool3x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } - - - /// Returns the result of a componentwise greater or equal operation on two double3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator >= (double3x3 lhs, double3x3 rhs) { return new bool3x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } - - /// Returns the result of a componentwise greater or equal operation on a double3x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator >= (double3x3 lhs, double rhs) { return new bool3x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a double value and a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator >= (double lhs, double3x3 rhs) { return new bool3x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } - - - /// Returns the result of a componentwise unary minus operation on a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 operator - (double3x3 val) { return new double3x3 (-val.c0, -val.c1, -val.c2); } - - - /// Returns the result of a componentwise unary plus operation on a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 operator + (double3x3 val) { return new double3x3 (+val.c0, +val.c1, +val.c2); } - - - /// Returns the result of a componentwise equality operation on two double3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator == (double3x3 lhs, double3x3 rhs) { return new bool3x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } - - /// Returns the result of a componentwise equality operation on a double3x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator == (double3x3 lhs, double rhs) { return new bool3x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } - - /// Returns the result of a componentwise equality operation on a double value and a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator == (double lhs, double3x3 rhs) { return new bool3x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } - - - /// Returns the result of a componentwise not equal operation on two double3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator != (double3x3 lhs, double3x3 rhs) { return new bool3x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } - - /// Returns the result of a componentwise not equal operation on a double3x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator != (double3x3 lhs, double rhs) { return new bool3x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } - - /// Returns the result of a componentwise not equal operation on a double value and a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator != (double lhs, double3x3 rhs) { return new bool3x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } - - - - /// Returns the double3 element at a specified index. - unsafe public ref double3 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (double3x3* array = &this) { return ref ((double3*)array)[index]; } - } - } - - /// Returns true if the double3x3 is equal to a given double3x3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(double3x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } - - /// Returns true if the double3x3 is equal to a given double3x3, false otherwise. - public override bool Equals(object o) { return Equals((double3x3)o); } - - - /// Returns a hash code for the double3x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the double3x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("double3x3({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); - } - - /// Returns a string representation of the double3x3 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("double3x3({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)); - } - - } - - public static partial class math - { - /// Returns a double3x3 matrix constructed from three double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 double3x3(double3 c0, double3 c1, double3 c2) { return new double3x3(c0, c1, c2); } - - /// Returns a double3x3 matrix constructed from from 9 double values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 double3x3(double m00, double m01, double m02, - double m10, double m11, double m12, - double m20, double m21, double m22) - { - return new double3x3(m00, m01, m02, - m10, m11, m12, - m20, m21, m22); - } - - /// Returns a double3x3 matrix constructed from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 double3x3(double v) { return new double3x3(v); } - - /// Returns a double3x3 matrix constructed from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 double3x3(bool v) { return new double3x3(v); } - - /// Return a double3x3 matrix constructed from a bool3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 double3x3(bool3x3 v) { return new double3x3(v); } - - /// Returns a double3x3 matrix constructed from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 double3x3(int v) { return new double3x3(v); } - - /// Return a double3x3 matrix constructed from a int3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 double3x3(int3x3 v) { return new double3x3(v); } - - /// Returns a double3x3 matrix constructed from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 double3x3(uint v) { return new double3x3(v); } - - /// Return a double3x3 matrix constructed from a uint3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 double3x3(uint3x3 v) { return new double3x3(v); } - - /// Returns a double3x3 matrix constructed from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 double3x3(float v) { return new double3x3(v); } - - /// Return a double3x3 matrix constructed from a float3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 double3x3(float3x3 v) { return new double3x3(v); } - - /// Return the double3x3 transpose of a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 transpose(double3x3 v) - { - return double3x3( - v.c0.x, v.c0.y, v.c0.z, - v.c1.x, v.c1.y, v.c1.z, - v.c2.x, v.c2.y, v.c2.z); - } - - /// Returns the double3x3 full inverse of a double3x3 matrix. - public static double3x3 inverse(double3x3 m) - { - double3 c0 = m.c0; - double3 c1 = m.c1; - double3 c2 = m.c2; - - double3 t0 = double3(c1.x, c2.x, c0.x); - double3 t1 = double3(c1.y, c2.y, c0.y); - double3 t2 = double3(c1.z, c2.z, c0.z); - - double3 m0 = t1 * t2.yzx - t1.yzx * t2; - double3 m1 = t0.yzx * t2 - t0 * t2.yzx; - double3 m2 = t0 * t1.yzx - t0.yzx * t1; - - double rcpDet = 1.0 / csum(t0.zxy * m0); - return double3x3(m0, m1, m2) * rcpDet; - } - - /// Returns the determinant of a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double determinant(double3x3 m) - { - double3 c0 = m.c0; - double3 c1 = m.c1; - double3 c2 = m.c2; - - double m00 = c1.y * c2.z - c1.z * c2.y; - double m01 = c0.y * c2.z - c0.z * c2.y; - double m02 = c0.y * c1.z - c0.z * c1.y; - - return c0.x * m00 - c1.x * m01 + c2.x * m02; - } - - /// Returns a uint hash code of a double3x3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(double3x3 v) - { - return csum(fold_to_uint(v.c0) * uint3(0xAC5DB57Bu, 0xA91A02EDu, 0xB3C49313u) + - fold_to_uint(v.c1) * uint3(0xF43A9ABBu, 0x84E7E01Bu, 0x8E055BE5u) + - fold_to_uint(v.c2) * uint3(0x6E624EB7u, 0x7383ED49u, 0xDD49C23Bu)) + 0xEBD0D005u; - } - - /// - /// Returns a uint3 vector hash code of a double3x3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(double3x3 v) - { - return (fold_to_uint(v.c0) * uint3(0x91475DF7u, 0x55E84827u, 0x90A285BBu) + - fold_to_uint(v.c1) * uint3(0x5D19E1D5u, 0xFAAF07DDu, 0x625C45BDu) + - fold_to_uint(v.c2) * uint3(0xC9F27FCBu, 0x6D2523B1u, 0x6E2BF6A9u)) + 0xCC74B3B7u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/double3x4.gen.cs b/Economy.Shared/Unity.Mathematics/double3x4.gen.cs deleted file mode 100644 index b6b6d0777..000000000 --- a/Economy.Shared/Unity.Mathematics/double3x4.gen.cs +++ /dev/null @@ -1,489 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct double3x4 : System.IEquatable, IFormattable - { - public double3 c0; - public double3 c1; - public double3 c2; - public double3 c3; - - /// double3x4 zero value. - public static readonly double3x4 zero; - - /// Constructs a double3x4 matrix from four double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x4(double3 c0, double3 c1, double3 c2, double3 c3) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - this.c3 = c3; - } - - /// Constructs a double3x4 matrix from 12 double values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x4(double m00, double m01, double m02, double m03, - double m10, double m11, double m12, double m13, - double m20, double m21, double m22, double m23) - { - this.c0 = new double3(m00, m10, m20); - this.c1 = new double3(m01, m11, m21); - this.c2 = new double3(m02, m12, m22); - this.c3 = new double3(m03, m13, m23); - } - - /// Constructs a double3x4 matrix from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x4(double v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a double3x4 matrix from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x4(bool v) - { - this.c0 = math.select(new double3(0.0), new double3(1.0), v); - this.c1 = math.select(new double3(0.0), new double3(1.0), v); - this.c2 = math.select(new double3(0.0), new double3(1.0), v); - this.c3 = math.select(new double3(0.0), new double3(1.0), v); - } - - /// Constructs a double3x4 matrix from a bool3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x4(bool3x4 v) - { - this.c0 = math.select(new double3(0.0), new double3(1.0), v.c0); - this.c1 = math.select(new double3(0.0), new double3(1.0), v.c1); - this.c2 = math.select(new double3(0.0), new double3(1.0), v.c2); - this.c3 = math.select(new double3(0.0), new double3(1.0), v.c3); - } - - /// Constructs a double3x4 matrix from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x4(int v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a double3x4 matrix from a int3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x4(int3x4 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - this.c3 = v.c3; - } - - /// Constructs a double3x4 matrix from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x4(uint v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a double3x4 matrix from a uint3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x4(uint3x4 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - this.c3 = v.c3; - } - - /// Constructs a double3x4 matrix from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x4(float v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a double3x4 matrix from a float3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3x4(float3x4 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - this.c3 = v.c3; - } - - - /// Implicitly converts a single double value to a double3x4 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x4(double v) { return new double3x4(v); } - - /// Explicitly converts a single bool value to a double3x4 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double3x4(bool v) { return new double3x4(v); } - - /// Explicitly converts a bool3x4 matrix to a double3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double3x4(bool3x4 v) { return new double3x4(v); } - - /// Implicitly converts a single int value to a double3x4 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x4(int v) { return new double3x4(v); } - - /// Implicitly converts a int3x4 matrix to a double3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x4(int3x4 v) { return new double3x4(v); } - - /// Implicitly converts a single uint value to a double3x4 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x4(uint v) { return new double3x4(v); } - - /// Implicitly converts a uint3x4 matrix to a double3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x4(uint3x4 v) { return new double3x4(v); } - - /// Implicitly converts a single float value to a double3x4 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x4(float v) { return new double3x4(v); } - - /// Implicitly converts a float3x4 matrix to a double3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double3x4(float3x4 v) { return new double3x4(v); } - - - /// Returns the result of a componentwise multiplication operation on two double3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 operator * (double3x4 lhs, double3x4 rhs) { return new double3x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } - - /// Returns the result of a componentwise multiplication operation on a double3x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 operator * (double3x4 lhs, double rhs) { return new double3x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a double value and a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 operator * (double lhs, double3x4 rhs) { return new double3x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } - - - /// Returns the result of a componentwise addition operation on two double3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 operator + (double3x4 lhs, double3x4 rhs) { return new double3x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } - - /// Returns the result of a componentwise addition operation on a double3x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 operator + (double3x4 lhs, double rhs) { return new double3x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } - - /// Returns the result of a componentwise addition operation on a double value and a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 operator + (double lhs, double3x4 rhs) { return new double3x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } - - - /// Returns the result of a componentwise subtraction operation on two double3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 operator - (double3x4 lhs, double3x4 rhs) { return new double3x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } - - /// Returns the result of a componentwise subtraction operation on a double3x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 operator - (double3x4 lhs, double rhs) { return new double3x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a double value and a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 operator - (double lhs, double3x4 rhs) { return new double3x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } - - - /// Returns the result of a componentwise division operation on two double3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 operator / (double3x4 lhs, double3x4 rhs) { return new double3x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } - - /// Returns the result of a componentwise division operation on a double3x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 operator / (double3x4 lhs, double rhs) { return new double3x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } - - /// Returns the result of a componentwise division operation on a double value and a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 operator / (double lhs, double3x4 rhs) { return new double3x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } - - - /// Returns the result of a componentwise modulus operation on two double3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 operator % (double3x4 lhs, double3x4 rhs) { return new double3x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } - - /// Returns the result of a componentwise modulus operation on a double3x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 operator % (double3x4 lhs, double rhs) { return new double3x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } - - /// Returns the result of a componentwise modulus operation on a double value and a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 operator % (double lhs, double3x4 rhs) { return new double3x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } - - - /// Returns the result of a componentwise increment operation on a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 operator ++ (double3x4 val) { return new double3x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } - - - /// Returns the result of a componentwise decrement operation on a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 operator -- (double3x4 val) { return new double3x4 (--val.c0, --val.c1, --val.c2, --val.c3); } - - - /// Returns the result of a componentwise less than operation on two double3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator < (double3x4 lhs, double3x4 rhs) { return new bool3x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } - - /// Returns the result of a componentwise less than operation on a double3x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator < (double3x4 lhs, double rhs) { return new bool3x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } - - /// Returns the result of a componentwise less than operation on a double value and a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator < (double lhs, double3x4 rhs) { return new bool3x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } - - - /// Returns the result of a componentwise less or equal operation on two double3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator <= (double3x4 lhs, double3x4 rhs) { return new bool3x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } - - /// Returns the result of a componentwise less or equal operation on a double3x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator <= (double3x4 lhs, double rhs) { return new bool3x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a double value and a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator <= (double lhs, double3x4 rhs) { return new bool3x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } - - - /// Returns the result of a componentwise greater than operation on two double3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator > (double3x4 lhs, double3x4 rhs) { return new bool3x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } - - /// Returns the result of a componentwise greater than operation on a double3x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator > (double3x4 lhs, double rhs) { return new bool3x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } - - /// Returns the result of a componentwise greater than operation on a double value and a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator > (double lhs, double3x4 rhs) { return new bool3x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } - - - /// Returns the result of a componentwise greater or equal operation on two double3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator >= (double3x4 lhs, double3x4 rhs) { return new bool3x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } - - /// Returns the result of a componentwise greater or equal operation on a double3x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator >= (double3x4 lhs, double rhs) { return new bool3x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a double value and a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator >= (double lhs, double3x4 rhs) { return new bool3x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } - - - /// Returns the result of a componentwise unary minus operation on a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 operator - (double3x4 val) { return new double3x4 (-val.c0, -val.c1, -val.c2, -val.c3); } - - - /// Returns the result of a componentwise unary plus operation on a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 operator + (double3x4 val) { return new double3x4 (+val.c0, +val.c1, +val.c2, +val.c3); } - - - /// Returns the result of a componentwise equality operation on two double3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator == (double3x4 lhs, double3x4 rhs) { return new bool3x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } - - /// Returns the result of a componentwise equality operation on a double3x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator == (double3x4 lhs, double rhs) { return new bool3x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } - - /// Returns the result of a componentwise equality operation on a double value and a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator == (double lhs, double3x4 rhs) { return new bool3x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } - - - /// Returns the result of a componentwise not equal operation on two double3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator != (double3x4 lhs, double3x4 rhs) { return new bool3x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } - - /// Returns the result of a componentwise not equal operation on a double3x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator != (double3x4 lhs, double rhs) { return new bool3x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } - - /// Returns the result of a componentwise not equal operation on a double value and a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator != (double lhs, double3x4 rhs) { return new bool3x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } - - - - /// Returns the double3 element at a specified index. - unsafe public ref double3 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (double3x4* array = &this) { return ref ((double3*)array)[index]; } - } - } - - /// Returns true if the double3x4 is equal to a given double3x4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(double3x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } - - /// Returns true if the double3x4 is equal to a given double3x4, false otherwise. - public override bool Equals(object o) { return Equals((double3x4)o); } - - - /// Returns a hash code for the double3x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the double3x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("double3x4({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); - } - - /// Returns a string representation of the double3x4 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("double3x4({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)); - } - - } - - public static partial class math - { - /// Returns a double3x4 matrix constructed from four double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 double3x4(double3 c0, double3 c1, double3 c2, double3 c3) { return new double3x4(c0, c1, c2, c3); } - - /// Returns a double3x4 matrix constructed from from 12 double values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 double3x4(double m00, double m01, double m02, double m03, - double m10, double m11, double m12, double m13, - double m20, double m21, double m22, double m23) - { - return new double3x4(m00, m01, m02, m03, - m10, m11, m12, m13, - m20, m21, m22, m23); - } - - /// Returns a double3x4 matrix constructed from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 double3x4(double v) { return new double3x4(v); } - - /// Returns a double3x4 matrix constructed from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 double3x4(bool v) { return new double3x4(v); } - - /// Return a double3x4 matrix constructed from a bool3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 double3x4(bool3x4 v) { return new double3x4(v); } - - /// Returns a double3x4 matrix constructed from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 double3x4(int v) { return new double3x4(v); } - - /// Return a double3x4 matrix constructed from a int3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 double3x4(int3x4 v) { return new double3x4(v); } - - /// Returns a double3x4 matrix constructed from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 double3x4(uint v) { return new double3x4(v); } - - /// Return a double3x4 matrix constructed from a uint3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 double3x4(uint3x4 v) { return new double3x4(v); } - - /// Returns a double3x4 matrix constructed from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 double3x4(float v) { return new double3x4(v); } - - /// Return a double3x4 matrix constructed from a float3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 double3x4(float3x4 v) { return new double3x4(v); } - - /// Return the double4x3 transpose of a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 transpose(double3x4 v) - { - return double4x3( - v.c0.x, v.c0.y, v.c0.z, - v.c1.x, v.c1.y, v.c1.z, - v.c2.x, v.c2.y, v.c2.z, - v.c3.x, v.c3.y, v.c3.z); - } - - // Fast matrix inverse for rigid transforms (Orthonormal basis and translation) - public static double3x4 fastinverse(double3x4 m) - { - double3 c0 = m.c0; - double3 c1 = m.c1; - double3 c2 = m.c2; - double3 pos = m.c3; - - double3 r0 = double3(c0.x, c1.x, c2.x); - double3 r1 = double3(c0.y, c1.y, c2.y); - double3 r2 = double3(c0.z, c1.z, c2.z); - - pos = -(r0 * pos.x + r1 * pos.y + r2 * pos.z); - - return double3x4(r0, r1, r2, pos); - } - - /// Returns a uint hash code of a double3x4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(double3x4 v) - { - return csum(fold_to_uint(v.c0) * uint3(0xEE390C97u, 0x9C8A2F05u, 0x4DDC6509u) + - fold_to_uint(v.c1) * uint3(0x7CF083CBu, 0x5C4D6CEDu, 0xF9137117u) + - fold_to_uint(v.c2) * uint3(0xE857DCE1u, 0xF62213C5u, 0x9CDAA959u) + - fold_to_uint(v.c3) * uint3(0xAA269ABFu, 0xD54BA36Fu, 0xFD0847B9u)) + 0x8189A683u; - } - - /// - /// Returns a uint3 vector hash code of a double3x4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(double3x4 v) - { - return (fold_to_uint(v.c0) * uint3(0xB139D651u, 0xE7579997u, 0xEF7D56C7u) + - fold_to_uint(v.c1) * uint3(0x66F38F0Bu, 0x624256A3u, 0x5292ADE1u) + - fold_to_uint(v.c2) * uint3(0xD2E590E5u, 0xF25BE857u, 0x9BC17CE7u) + - fold_to_uint(v.c3) * uint3(0xC8B86851u, 0x64095221u, 0xADF428FFu)) + 0xA3977109u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/double4.gen.cs b/Economy.Shared/Unity.Mathematics/double4.gen.cs deleted file mode 100644 index ef25ed9d2..000000000 --- a/Economy.Shared/Unity.Mathematics/double4.gen.cs +++ /dev/null @@ -1,3464 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; -using System.Diagnostics; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [DebuggerTypeProxy(typeof(double4.DebuggerProxy))] - [System.Serializable] - public partial struct double4 : System.IEquatable, IFormattable - { - public double x; - public double y; - public double z; - public double w; - - /// double4 zero value. - public static readonly double4 zero; - - /// Constructs a double4 vector from four double values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4(double x, double y, double z, double w) - { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - - /// Constructs a double4 vector from two double values and a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4(double x, double y, double2 zw) - { - this.x = x; - this.y = y; - this.z = zw.x; - this.w = zw.y; - } - - /// Constructs a double4 vector from a double value, a double2 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4(double x, double2 yz, double w) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - this.w = w; - } - - /// Constructs a double4 vector from a double value and a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4(double x, double3 yzw) - { - this.x = x; - this.y = yzw.x; - this.z = yzw.y; - this.w = yzw.z; - } - - /// Constructs a double4 vector from a double2 vector and two double values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4(double2 xy, double z, double w) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - this.w = w; - } - - /// Constructs a double4 vector from two double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4(double2 xy, double2 zw) - { - this.x = xy.x; - this.y = xy.y; - this.z = zw.x; - this.w = zw.y; - } - - /// Constructs a double4 vector from a double3 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4(double3 xyz, double w) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - this.w = w; - } - - /// Constructs a double4 vector from a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4(double4 xyzw) - { - this.x = xyzw.x; - this.y = xyzw.y; - this.z = xyzw.z; - this.w = xyzw.w; - } - - /// Constructs a double4 vector from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4(double v) - { - this.x = v; - this.y = v; - this.z = v; - this.w = v; - } - - /// Constructs a double4 vector from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4(bool v) - { - this.x = v ? 1.0 : 0.0; - this.y = v ? 1.0 : 0.0; - this.z = v ? 1.0 : 0.0; - this.w = v ? 1.0 : 0.0; - } - - /// Constructs a double4 vector from a bool4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4(bool4 v) - { - this.x = v.x ? 1.0 : 0.0; - this.y = v.y ? 1.0 : 0.0; - this.z = v.z ? 1.0 : 0.0; - this.w = v.w ? 1.0 : 0.0; - } - - /// Constructs a double4 vector from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4(int v) - { - this.x = v; - this.y = v; - this.z = v; - this.w = v; - } - - /// Constructs a double4 vector from a int4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4(int4 v) - { - this.x = v.x; - this.y = v.y; - this.z = v.z; - this.w = v.w; - } - - /// Constructs a double4 vector from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4(uint v) - { - this.x = v; - this.y = v; - this.z = v; - this.w = v; - } - - /// Constructs a double4 vector from a uint4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4(uint4 v) - { - this.x = v.x; - this.y = v.y; - this.z = v.z; - this.w = v.w; - } - - /// Constructs a double4 vector from a single half value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4(half v) - { - this.x = v; - this.y = v; - this.z = v; - this.w = v; - } - - /// Constructs a double4 vector from a half4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4(half4 v) - { - this.x = v.x; - this.y = v.y; - this.z = v.z; - this.w = v.w; - } - - /// Constructs a double4 vector from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4(float v) - { - this.x = v; - this.y = v; - this.z = v; - this.w = v; - } - - /// Constructs a double4 vector from a float4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4(float4 v) - { - this.x = v.x; - this.y = v.y; - this.z = v.z; - this.w = v.w; - } - - - /// Implicitly converts a single double value to a double4 vector by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4(double v) { return new double4(v); } - - /// Explicitly converts a single bool value to a double4 vector by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double4(bool v) { return new double4(v); } - - /// Explicitly converts a bool4 vector to a double4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double4(bool4 v) { return new double4(v); } - - /// Implicitly converts a single int value to a double4 vector by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4(int v) { return new double4(v); } - - /// Implicitly converts a int4 vector to a double4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4(int4 v) { return new double4(v); } - - /// Implicitly converts a single uint value to a double4 vector by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4(uint v) { return new double4(v); } - - /// Implicitly converts a uint4 vector to a double4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4(uint4 v) { return new double4(v); } - - /// Implicitly converts a single half value to a double4 vector by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4(half v) { return new double4(v); } - - /// Implicitly converts a half4 vector to a double4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4(half4 v) { return new double4(v); } - - /// Implicitly converts a single float value to a double4 vector by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4(float v) { return new double4(v); } - - /// Implicitly converts a float4 vector to a double4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4(float4 v) { return new double4(v); } - - - /// Returns the result of a componentwise multiplication operation on two double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 operator * (double4 lhs, double4 rhs) { return new double4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } - - /// Returns the result of a componentwise multiplication operation on a double4 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 operator * (double4 lhs, double rhs) { return new double4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } - - /// Returns the result of a componentwise multiplication operation on a double value and a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 operator * (double lhs, double4 rhs) { return new double4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } - - - /// Returns the result of a componentwise addition operation on two double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 operator + (double4 lhs, double4 rhs) { return new double4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } - - /// Returns the result of a componentwise addition operation on a double4 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 operator + (double4 lhs, double rhs) { return new double4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } - - /// Returns the result of a componentwise addition operation on a double value and a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 operator + (double lhs, double4 rhs) { return new double4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } - - - /// Returns the result of a componentwise subtraction operation on two double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 operator - (double4 lhs, double4 rhs) { return new double4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } - - /// Returns the result of a componentwise subtraction operation on a double4 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 operator - (double4 lhs, double rhs) { return new double4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } - - /// Returns the result of a componentwise subtraction operation on a double value and a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 operator - (double lhs, double4 rhs) { return new double4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } - - - /// Returns the result of a componentwise division operation on two double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 operator / (double4 lhs, double4 rhs) { return new double4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } - - /// Returns the result of a componentwise division operation on a double4 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 operator / (double4 lhs, double rhs) { return new double4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } - - /// Returns the result of a componentwise division operation on a double value and a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 operator / (double lhs, double4 rhs) { return new double4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } - - - /// Returns the result of a componentwise modulus operation on two double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 operator % (double4 lhs, double4 rhs) { return new double4 (lhs.x % rhs.x, lhs.y % rhs.y, lhs.z % rhs.z, lhs.w % rhs.w); } - - /// Returns the result of a componentwise modulus operation on a double4 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 operator % (double4 lhs, double rhs) { return new double4 (lhs.x % rhs, lhs.y % rhs, lhs.z % rhs, lhs.w % rhs); } - - /// Returns the result of a componentwise modulus operation on a double value and a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 operator % (double lhs, double4 rhs) { return new double4 (lhs % rhs.x, lhs % rhs.y, lhs % rhs.z, lhs % rhs.w); } - - - /// Returns the result of a componentwise increment operation on a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 operator ++ (double4 val) { return new double4 (++val.x, ++val.y, ++val.z, ++val.w); } - - - /// Returns the result of a componentwise decrement operation on a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 operator -- (double4 val) { return new double4 (--val.x, --val.y, --val.z, --val.w); } - - - /// Returns the result of a componentwise less than operation on two double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (double4 lhs, double4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } - - /// Returns the result of a componentwise less than operation on a double4 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (double4 lhs, double rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } - - /// Returns the result of a componentwise less than operation on a double value and a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (double lhs, double4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } - - - /// Returns the result of a componentwise less or equal operation on two double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (double4 lhs, double4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } - - /// Returns the result of a componentwise less or equal operation on a double4 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (double4 lhs, double rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a double value and a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (double lhs, double4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } - - - /// Returns the result of a componentwise greater than operation on two double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (double4 lhs, double4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } - - /// Returns the result of a componentwise greater than operation on a double4 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (double4 lhs, double rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } - - /// Returns the result of a componentwise greater than operation on a double value and a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (double lhs, double4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } - - - /// Returns the result of a componentwise greater or equal operation on two double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (double4 lhs, double4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } - - /// Returns the result of a componentwise greater or equal operation on a double4 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (double4 lhs, double rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a double value and a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (double lhs, double4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } - - - /// Returns the result of a componentwise unary minus operation on a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 operator - (double4 val) { return new double4 (-val.x, -val.y, -val.z, -val.w); } - - - /// Returns the result of a componentwise unary plus operation on a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 operator + (double4 val) { return new double4 (+val.x, +val.y, +val.z, +val.w); } - - - /// Returns the result of a componentwise equality operation on two double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (double4 lhs, double4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } - - /// Returns the result of a componentwise equality operation on a double4 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (double4 lhs, double rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } - - /// Returns the result of a componentwise equality operation on a double value and a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (double lhs, double4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } - - - /// Returns the result of a componentwise not equal operation on two double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (double4 lhs, double4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } - - /// Returns the result of a componentwise not equal operation on a double4 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (double4 lhs, double rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } - - /// Returns the result of a componentwise not equal operation on a double value and a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (double lhs, double4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } - - - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 xwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(x, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 yzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 ywxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 ywxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 ywxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 ywxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 ywyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 ywyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 ywyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 ywyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 ywzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 ywzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 ywzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 ywzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 ywwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 ywwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 ywwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 ywww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(y, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 zwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(z, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double4 wwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double4(w, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 xww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 ywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 ywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 ywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 yww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 zww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 wxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 wxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 wxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 wxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 wyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 wyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 wyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 wyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 wzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 wzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 wzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 wzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 wwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 wwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 wwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double3 www - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double3(w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 xw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 yw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 zw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 wx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 wy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 wz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public double2 ww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new double2(w, w); } - } - - - - /// Returns the double element at a specified index. - unsafe public double this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (double4* array = &this) { return ((double*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (double* array = &x) { array[index] = value; } - } - } - - /// Returns true if the double4 is equal to a given double4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(double4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } - - /// Returns true if the double4 is equal to a given double4, false otherwise. - public override bool Equals(object o) { return Equals((double4)o); } - - - /// Returns a hash code for the double4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the double4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("double4({0}, {1}, {2}, {3})", x, y, z, w); - } - - /// Returns a string representation of the double4 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("double4({0}, {1}, {2}, {3})", x.ToString(format, formatProvider), y.ToString(format, formatProvider), z.ToString(format, formatProvider), w.ToString(format, formatProvider)); - } - - internal sealed class DebuggerProxy - { - public double x; - public double y; - public double z; - public double w; - public DebuggerProxy(double4 v) - { - x = v.x; - y = v.y; - z = v.z; - w = v.w; - } - } - - } - - public static partial class math - { - /// Returns a double4 vector constructed from four double values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 double4(double x, double y, double z, double w) { return new double4(x, y, z, w); } - - /// Returns a double4 vector constructed from two double values and a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 double4(double x, double y, double2 zw) { return new double4(x, y, zw); } - - /// Returns a double4 vector constructed from a double value, a double2 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 double4(double x, double2 yz, double w) { return new double4(x, yz, w); } - - /// Returns a double4 vector constructed from a double value and a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 double4(double x, double3 yzw) { return new double4(x, yzw); } - - /// Returns a double4 vector constructed from a double2 vector and two double values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 double4(double2 xy, double z, double w) { return new double4(xy, z, w); } - - /// Returns a double4 vector constructed from two double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 double4(double2 xy, double2 zw) { return new double4(xy, zw); } - - /// Returns a double4 vector constructed from a double3 vector and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 double4(double3 xyz, double w) { return new double4(xyz, w); } - - /// Returns a double4 vector constructed from a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 double4(double4 xyzw) { return new double4(xyzw); } - - /// Returns a double4 vector constructed from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 double4(double v) { return new double4(v); } - - /// Returns a double4 vector constructed from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 double4(bool v) { return new double4(v); } - - /// Return a double4 vector constructed from a bool4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 double4(bool4 v) { return new double4(v); } - - /// Returns a double4 vector constructed from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 double4(int v) { return new double4(v); } - - /// Return a double4 vector constructed from a int4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 double4(int4 v) { return new double4(v); } - - /// Returns a double4 vector constructed from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 double4(uint v) { return new double4(v); } - - /// Return a double4 vector constructed from a uint4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 double4(uint4 v) { return new double4(v); } - - /// Returns a double4 vector constructed from a single half value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 double4(half v) { return new double4(v); } - - /// Return a double4 vector constructed from a half4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 double4(half4 v) { return new double4(v); } - - /// Returns a double4 vector constructed from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 double4(float v) { return new double4(v); } - - /// Return a double4 vector constructed from a float4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 double4(float4 v) { return new double4(v); } - - /// Returns a uint hash code of a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(double4 v) - { - return csum(fold_to_uint(v) * uint4(0x9F1C739Bu, 0x4B1BD187u, 0x9DF50593u, 0xF18EEB85u)) + 0x9E19BFC3u; - } - - /// - /// Returns a uint4 vector hash code of a double4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(double4 v) - { - return (fold_to_uint(v) * uint4(0x8196B06Fu, 0xD24EFA19u, 0x7D8048BBu, 0x713BD06Fu)) + 0x753AD6ADu; - } - - /// Returns the result of specified shuffling of the components from two double4 vectors into a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double shuffle(double4 a, double4 b, ShuffleComponent x) - { - return select_shuffle_component(a, b, x); - } - - /// Returns the result of specified shuffling of the components from two double4 vectors into a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 shuffle(double4 a, double4 b, ShuffleComponent x, ShuffleComponent y) - { - return double2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); - } - - /// Returns the result of specified shuffling of the components from two double4 vectors into a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 shuffle(double4 a, double4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) - { - return double3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); - } - - /// Returns the result of specified shuffling of the components from two double4 vectors into a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 shuffle(double4 a, double4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) - { - return double4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double select_shuffle_component(double4 a, double4 b, ShuffleComponent component) - { - switch(component) - { - case ShuffleComponent.LeftX: - return a.x; - case ShuffleComponent.LeftY: - return a.y; - case ShuffleComponent.LeftZ: - return a.z; - case ShuffleComponent.LeftW: - return a.w; - case ShuffleComponent.RightX: - return b.x; - case ShuffleComponent.RightY: - return b.y; - case ShuffleComponent.RightZ: - return b.z; - case ShuffleComponent.RightW: - return b.w; - default: - throw new System.ArgumentException("Invalid shuffle component: " + component); - } - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/double4x2.gen.cs b/Economy.Shared/Unity.Mathematics/double4x2.gen.cs deleted file mode 100644 index 0ba6e5090..000000000 --- a/Economy.Shared/Unity.Mathematics/double4x2.gen.cs +++ /dev/null @@ -1,445 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct double4x2 : System.IEquatable, IFormattable - { - public double4 c0; - public double4 c1; - - /// double4x2 zero value. - public static readonly double4x2 zero; - - /// Constructs a double4x2 matrix from two double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x2(double4 c0, double4 c1) - { - this.c0 = c0; - this.c1 = c1; - } - - /// Constructs a double4x2 matrix from 8 double values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x2(double m00, double m01, - double m10, double m11, - double m20, double m21, - double m30, double m31) - { - this.c0 = new double4(m00, m10, m20, m30); - this.c1 = new double4(m01, m11, m21, m31); - } - - /// Constructs a double4x2 matrix from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x2(double v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a double4x2 matrix from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x2(bool v) - { - this.c0 = math.select(new double4(0.0), new double4(1.0), v); - this.c1 = math.select(new double4(0.0), new double4(1.0), v); - } - - /// Constructs a double4x2 matrix from a bool4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x2(bool4x2 v) - { - this.c0 = math.select(new double4(0.0), new double4(1.0), v.c0); - this.c1 = math.select(new double4(0.0), new double4(1.0), v.c1); - } - - /// Constructs a double4x2 matrix from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x2(int v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a double4x2 matrix from a int4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x2(int4x2 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - } - - /// Constructs a double4x2 matrix from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x2(uint v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a double4x2 matrix from a uint4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x2(uint4x2 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - } - - /// Constructs a double4x2 matrix from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x2(float v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a double4x2 matrix from a float4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x2(float4x2 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - } - - - /// Implicitly converts a single double value to a double4x2 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x2(double v) { return new double4x2(v); } - - /// Explicitly converts a single bool value to a double4x2 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double4x2(bool v) { return new double4x2(v); } - - /// Explicitly converts a bool4x2 matrix to a double4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double4x2(bool4x2 v) { return new double4x2(v); } - - /// Implicitly converts a single int value to a double4x2 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x2(int v) { return new double4x2(v); } - - /// Implicitly converts a int4x2 matrix to a double4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x2(int4x2 v) { return new double4x2(v); } - - /// Implicitly converts a single uint value to a double4x2 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x2(uint v) { return new double4x2(v); } - - /// Implicitly converts a uint4x2 matrix to a double4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x2(uint4x2 v) { return new double4x2(v); } - - /// Implicitly converts a single float value to a double4x2 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x2(float v) { return new double4x2(v); } - - /// Implicitly converts a float4x2 matrix to a double4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x2(float4x2 v) { return new double4x2(v); } - - - /// Returns the result of a componentwise multiplication operation on two double4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 operator * (double4x2 lhs, double4x2 rhs) { return new double4x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } - - /// Returns the result of a componentwise multiplication operation on a double4x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 operator * (double4x2 lhs, double rhs) { return new double4x2 (lhs.c0 * rhs, lhs.c1 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a double value and a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 operator * (double lhs, double4x2 rhs) { return new double4x2 (lhs * rhs.c0, lhs * rhs.c1); } - - - /// Returns the result of a componentwise addition operation on two double4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 operator + (double4x2 lhs, double4x2 rhs) { return new double4x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } - - /// Returns the result of a componentwise addition operation on a double4x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 operator + (double4x2 lhs, double rhs) { return new double4x2 (lhs.c0 + rhs, lhs.c1 + rhs); } - - /// Returns the result of a componentwise addition operation on a double value and a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 operator + (double lhs, double4x2 rhs) { return new double4x2 (lhs + rhs.c0, lhs + rhs.c1); } - - - /// Returns the result of a componentwise subtraction operation on two double4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 operator - (double4x2 lhs, double4x2 rhs) { return new double4x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } - - /// Returns the result of a componentwise subtraction operation on a double4x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 operator - (double4x2 lhs, double rhs) { return new double4x2 (lhs.c0 - rhs, lhs.c1 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a double value and a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 operator - (double lhs, double4x2 rhs) { return new double4x2 (lhs - rhs.c0, lhs - rhs.c1); } - - - /// Returns the result of a componentwise division operation on two double4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 operator / (double4x2 lhs, double4x2 rhs) { return new double4x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } - - /// Returns the result of a componentwise division operation on a double4x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 operator / (double4x2 lhs, double rhs) { return new double4x2 (lhs.c0 / rhs, lhs.c1 / rhs); } - - /// Returns the result of a componentwise division operation on a double value and a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 operator / (double lhs, double4x2 rhs) { return new double4x2 (lhs / rhs.c0, lhs / rhs.c1); } - - - /// Returns the result of a componentwise modulus operation on two double4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 operator % (double4x2 lhs, double4x2 rhs) { return new double4x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } - - /// Returns the result of a componentwise modulus operation on a double4x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 operator % (double4x2 lhs, double rhs) { return new double4x2 (lhs.c0 % rhs, lhs.c1 % rhs); } - - /// Returns the result of a componentwise modulus operation on a double value and a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 operator % (double lhs, double4x2 rhs) { return new double4x2 (lhs % rhs.c0, lhs % rhs.c1); } - - - /// Returns the result of a componentwise increment operation on a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 operator ++ (double4x2 val) { return new double4x2 (++val.c0, ++val.c1); } - - - /// Returns the result of a componentwise decrement operation on a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 operator -- (double4x2 val) { return new double4x2 (--val.c0, --val.c1); } - - - /// Returns the result of a componentwise less than operation on two double4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator < (double4x2 lhs, double4x2 rhs) { return new bool4x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } - - /// Returns the result of a componentwise less than operation on a double4x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator < (double4x2 lhs, double rhs) { return new bool4x2 (lhs.c0 < rhs, lhs.c1 < rhs); } - - /// Returns the result of a componentwise less than operation on a double value and a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator < (double lhs, double4x2 rhs) { return new bool4x2 (lhs < rhs.c0, lhs < rhs.c1); } - - - /// Returns the result of a componentwise less or equal operation on two double4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator <= (double4x2 lhs, double4x2 rhs) { return new bool4x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } - - /// Returns the result of a componentwise less or equal operation on a double4x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator <= (double4x2 lhs, double rhs) { return new bool4x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a double value and a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator <= (double lhs, double4x2 rhs) { return new bool4x2 (lhs <= rhs.c0, lhs <= rhs.c1); } - - - /// Returns the result of a componentwise greater than operation on two double4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator > (double4x2 lhs, double4x2 rhs) { return new bool4x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } - - /// Returns the result of a componentwise greater than operation on a double4x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator > (double4x2 lhs, double rhs) { return new bool4x2 (lhs.c0 > rhs, lhs.c1 > rhs); } - - /// Returns the result of a componentwise greater than operation on a double value and a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator > (double lhs, double4x2 rhs) { return new bool4x2 (lhs > rhs.c0, lhs > rhs.c1); } - - - /// Returns the result of a componentwise greater or equal operation on two double4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator >= (double4x2 lhs, double4x2 rhs) { return new bool4x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } - - /// Returns the result of a componentwise greater or equal operation on a double4x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator >= (double4x2 lhs, double rhs) { return new bool4x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a double value and a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator >= (double lhs, double4x2 rhs) { return new bool4x2 (lhs >= rhs.c0, lhs >= rhs.c1); } - - - /// Returns the result of a componentwise unary minus operation on a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 operator - (double4x2 val) { return new double4x2 (-val.c0, -val.c1); } - - - /// Returns the result of a componentwise unary plus operation on a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 operator + (double4x2 val) { return new double4x2 (+val.c0, +val.c1); } - - - /// Returns the result of a componentwise equality operation on two double4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator == (double4x2 lhs, double4x2 rhs) { return new bool4x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } - - /// Returns the result of a componentwise equality operation on a double4x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator == (double4x2 lhs, double rhs) { return new bool4x2 (lhs.c0 == rhs, lhs.c1 == rhs); } - - /// Returns the result of a componentwise equality operation on a double value and a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator == (double lhs, double4x2 rhs) { return new bool4x2 (lhs == rhs.c0, lhs == rhs.c1); } - - - /// Returns the result of a componentwise not equal operation on two double4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator != (double4x2 lhs, double4x2 rhs) { return new bool4x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } - - /// Returns the result of a componentwise not equal operation on a double4x2 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator != (double4x2 lhs, double rhs) { return new bool4x2 (lhs.c0 != rhs, lhs.c1 != rhs); } - - /// Returns the result of a componentwise not equal operation on a double value and a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator != (double lhs, double4x2 rhs) { return new bool4x2 (lhs != rhs.c0, lhs != rhs.c1); } - - - - /// Returns the double4 element at a specified index. - unsafe public ref double4 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (double4x2* array = &this) { return ref ((double4*)array)[index]; } - } - } - - /// Returns true if the double4x2 is equal to a given double4x2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(double4x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } - - /// Returns true if the double4x2 is equal to a given double4x2, false otherwise. - public override bool Equals(object o) { return Equals((double4x2)o); } - - - /// Returns a hash code for the double4x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the double4x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("double4x2({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7})", c0.x, c1.x, c0.y, c1.y, c0.z, c1.z, c0.w, c1.w); - } - - /// Returns a string representation of the double4x2 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("double4x2({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)); - } - - } - - public static partial class math - { - /// Returns a double4x2 matrix constructed from two double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 double4x2(double4 c0, double4 c1) { return new double4x2(c0, c1); } - - /// Returns a double4x2 matrix constructed from from 8 double values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 double4x2(double m00, double m01, - double m10, double m11, - double m20, double m21, - double m30, double m31) - { - return new double4x2(m00, m01, - m10, m11, - m20, m21, - m30, m31); - } - - /// Returns a double4x2 matrix constructed from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 double4x2(double v) { return new double4x2(v); } - - /// Returns a double4x2 matrix constructed from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 double4x2(bool v) { return new double4x2(v); } - - /// Return a double4x2 matrix constructed from a bool4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 double4x2(bool4x2 v) { return new double4x2(v); } - - /// Returns a double4x2 matrix constructed from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 double4x2(int v) { return new double4x2(v); } - - /// Return a double4x2 matrix constructed from a int4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 double4x2(int4x2 v) { return new double4x2(v); } - - /// Returns a double4x2 matrix constructed from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 double4x2(uint v) { return new double4x2(v); } - - /// Return a double4x2 matrix constructed from a uint4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 double4x2(uint4x2 v) { return new double4x2(v); } - - /// Returns a double4x2 matrix constructed from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 double4x2(float v) { return new double4x2(v); } - - /// Return a double4x2 matrix constructed from a float4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 double4x2(float4x2 v) { return new double4x2(v); } - - /// Return the double2x4 transpose of a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 transpose(double4x2 v) - { - return double2x4( - v.c0.x, v.c0.y, v.c0.z, v.c0.w, - v.c1.x, v.c1.y, v.c1.z, v.c1.w); - } - - /// Returns a uint hash code of a double4x2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(double4x2 v) - { - return csum(fold_to_uint(v.c0) * uint4(0x5AB3E8CDu, 0x676E8407u, 0xB36DE767u, 0x6FCA387Du) + - fold_to_uint(v.c1) * uint4(0xAF0F3103u, 0xE4A056C7u, 0x841D8225u, 0xC9393C7Du)) + 0xD42EAFA3u; - } - - /// - /// Returns a uint4 vector hash code of a double4x2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(double4x2 v) - { - return (fold_to_uint(v.c0) * uint4(0xD9AFD06Du, 0x97A65421u, 0x7809205Fu, 0x9C9F0823u) + - fold_to_uint(v.c1) * uint4(0x5A9CA13Bu, 0xAFCDD5EFu, 0xA88D187Du, 0xCF6EBA1Du)) + 0x9D88E5A1u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/double4x3.gen.cs b/Economy.Shared/Unity.Mathematics/double4x3.gen.cs deleted file mode 100644 index b7afb458e..000000000 --- a/Economy.Shared/Unity.Mathematics/double4x3.gen.cs +++ /dev/null @@ -1,460 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct double4x3 : System.IEquatable, IFormattable - { - public double4 c0; - public double4 c1; - public double4 c2; - - /// double4x3 zero value. - public static readonly double4x3 zero; - - /// Constructs a double4x3 matrix from three double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x3(double4 c0, double4 c1, double4 c2) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - } - - /// Constructs a double4x3 matrix from 12 double values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x3(double m00, double m01, double m02, - double m10, double m11, double m12, - double m20, double m21, double m22, - double m30, double m31, double m32) - { - this.c0 = new double4(m00, m10, m20, m30); - this.c1 = new double4(m01, m11, m21, m31); - this.c2 = new double4(m02, m12, m22, m32); - } - - /// Constructs a double4x3 matrix from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x3(double v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a double4x3 matrix from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x3(bool v) - { - this.c0 = math.select(new double4(0.0), new double4(1.0), v); - this.c1 = math.select(new double4(0.0), new double4(1.0), v); - this.c2 = math.select(new double4(0.0), new double4(1.0), v); - } - - /// Constructs a double4x3 matrix from a bool4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x3(bool4x3 v) - { - this.c0 = math.select(new double4(0.0), new double4(1.0), v.c0); - this.c1 = math.select(new double4(0.0), new double4(1.0), v.c1); - this.c2 = math.select(new double4(0.0), new double4(1.0), v.c2); - } - - /// Constructs a double4x3 matrix from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x3(int v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a double4x3 matrix from a int4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x3(int4x3 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - } - - /// Constructs a double4x3 matrix from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x3(uint v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a double4x3 matrix from a uint4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x3(uint4x3 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - } - - /// Constructs a double4x3 matrix from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x3(float v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a double4x3 matrix from a float4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x3(float4x3 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - } - - - /// Implicitly converts a single double value to a double4x3 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x3(double v) { return new double4x3(v); } - - /// Explicitly converts a single bool value to a double4x3 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double4x3(bool v) { return new double4x3(v); } - - /// Explicitly converts a bool4x3 matrix to a double4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double4x3(bool4x3 v) { return new double4x3(v); } - - /// Implicitly converts a single int value to a double4x3 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x3(int v) { return new double4x3(v); } - - /// Implicitly converts a int4x3 matrix to a double4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x3(int4x3 v) { return new double4x3(v); } - - /// Implicitly converts a single uint value to a double4x3 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x3(uint v) { return new double4x3(v); } - - /// Implicitly converts a uint4x3 matrix to a double4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x3(uint4x3 v) { return new double4x3(v); } - - /// Implicitly converts a single float value to a double4x3 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x3(float v) { return new double4x3(v); } - - /// Implicitly converts a float4x3 matrix to a double4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x3(float4x3 v) { return new double4x3(v); } - - - /// Returns the result of a componentwise multiplication operation on two double4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 operator * (double4x3 lhs, double4x3 rhs) { return new double4x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } - - /// Returns the result of a componentwise multiplication operation on a double4x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 operator * (double4x3 lhs, double rhs) { return new double4x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a double value and a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 operator * (double lhs, double4x3 rhs) { return new double4x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } - - - /// Returns the result of a componentwise addition operation on two double4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 operator + (double4x3 lhs, double4x3 rhs) { return new double4x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } - - /// Returns the result of a componentwise addition operation on a double4x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 operator + (double4x3 lhs, double rhs) { return new double4x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } - - /// Returns the result of a componentwise addition operation on a double value and a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 operator + (double lhs, double4x3 rhs) { return new double4x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } - - - /// Returns the result of a componentwise subtraction operation on two double4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 operator - (double4x3 lhs, double4x3 rhs) { return new double4x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } - - /// Returns the result of a componentwise subtraction operation on a double4x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 operator - (double4x3 lhs, double rhs) { return new double4x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a double value and a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 operator - (double lhs, double4x3 rhs) { return new double4x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } - - - /// Returns the result of a componentwise division operation on two double4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 operator / (double4x3 lhs, double4x3 rhs) { return new double4x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } - - /// Returns the result of a componentwise division operation on a double4x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 operator / (double4x3 lhs, double rhs) { return new double4x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } - - /// Returns the result of a componentwise division operation on a double value and a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 operator / (double lhs, double4x3 rhs) { return new double4x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } - - - /// Returns the result of a componentwise modulus operation on two double4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 operator % (double4x3 lhs, double4x3 rhs) { return new double4x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } - - /// Returns the result of a componentwise modulus operation on a double4x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 operator % (double4x3 lhs, double rhs) { return new double4x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } - - /// Returns the result of a componentwise modulus operation on a double value and a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 operator % (double lhs, double4x3 rhs) { return new double4x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } - - - /// Returns the result of a componentwise increment operation on a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 operator ++ (double4x3 val) { return new double4x3 (++val.c0, ++val.c1, ++val.c2); } - - - /// Returns the result of a componentwise decrement operation on a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 operator -- (double4x3 val) { return new double4x3 (--val.c0, --val.c1, --val.c2); } - - - /// Returns the result of a componentwise less than operation on two double4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator < (double4x3 lhs, double4x3 rhs) { return new bool4x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } - - /// Returns the result of a componentwise less than operation on a double4x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator < (double4x3 lhs, double rhs) { return new bool4x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } - - /// Returns the result of a componentwise less than operation on a double value and a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator < (double lhs, double4x3 rhs) { return new bool4x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } - - - /// Returns the result of a componentwise less or equal operation on two double4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator <= (double4x3 lhs, double4x3 rhs) { return new bool4x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } - - /// Returns the result of a componentwise less or equal operation on a double4x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator <= (double4x3 lhs, double rhs) { return new bool4x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a double value and a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator <= (double lhs, double4x3 rhs) { return new bool4x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } - - - /// Returns the result of a componentwise greater than operation on two double4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator > (double4x3 lhs, double4x3 rhs) { return new bool4x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } - - /// Returns the result of a componentwise greater than operation on a double4x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator > (double4x3 lhs, double rhs) { return new bool4x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } - - /// Returns the result of a componentwise greater than operation on a double value and a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator > (double lhs, double4x3 rhs) { return new bool4x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } - - - /// Returns the result of a componentwise greater or equal operation on two double4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator >= (double4x3 lhs, double4x3 rhs) { return new bool4x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } - - /// Returns the result of a componentwise greater or equal operation on a double4x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator >= (double4x3 lhs, double rhs) { return new bool4x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a double value and a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator >= (double lhs, double4x3 rhs) { return new bool4x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } - - - /// Returns the result of a componentwise unary minus operation on a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 operator - (double4x3 val) { return new double4x3 (-val.c0, -val.c1, -val.c2); } - - - /// Returns the result of a componentwise unary plus operation on a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 operator + (double4x3 val) { return new double4x3 (+val.c0, +val.c1, +val.c2); } - - - /// Returns the result of a componentwise equality operation on two double4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator == (double4x3 lhs, double4x3 rhs) { return new bool4x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } - - /// Returns the result of a componentwise equality operation on a double4x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator == (double4x3 lhs, double rhs) { return new bool4x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } - - /// Returns the result of a componentwise equality operation on a double value and a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator == (double lhs, double4x3 rhs) { return new bool4x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } - - - /// Returns the result of a componentwise not equal operation on two double4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator != (double4x3 lhs, double4x3 rhs) { return new bool4x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } - - /// Returns the result of a componentwise not equal operation on a double4x3 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator != (double4x3 lhs, double rhs) { return new bool4x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } - - /// Returns the result of a componentwise not equal operation on a double value and a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator != (double lhs, double4x3 rhs) { return new bool4x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } - - - - /// Returns the double4 element at a specified index. - unsafe public ref double4 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (double4x3* array = &this) { return ref ((double4*)array)[index]; } - } - } - - /// Returns true if the double4x3 is equal to a given double4x3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(double4x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } - - /// Returns true if the double4x3 is equal to a given double4x3, false otherwise. - public override bool Equals(object o) { return Equals((double4x3)o); } - - - /// Returns a hash code for the double4x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the double4x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("double4x3({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); - } - - /// Returns a string representation of the double4x3 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("double4x3({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)); - } - - } - - public static partial class math - { - /// Returns a double4x3 matrix constructed from three double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 double4x3(double4 c0, double4 c1, double4 c2) { return new double4x3(c0, c1, c2); } - - /// Returns a double4x3 matrix constructed from from 12 double values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 double4x3(double m00, double m01, double m02, - double m10, double m11, double m12, - double m20, double m21, double m22, - double m30, double m31, double m32) - { - return new double4x3(m00, m01, m02, - m10, m11, m12, - m20, m21, m22, - m30, m31, m32); - } - - /// Returns a double4x3 matrix constructed from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 double4x3(double v) { return new double4x3(v); } - - /// Returns a double4x3 matrix constructed from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 double4x3(bool v) { return new double4x3(v); } - - /// Return a double4x3 matrix constructed from a bool4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 double4x3(bool4x3 v) { return new double4x3(v); } - - /// Returns a double4x3 matrix constructed from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 double4x3(int v) { return new double4x3(v); } - - /// Return a double4x3 matrix constructed from a int4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 double4x3(int4x3 v) { return new double4x3(v); } - - /// Returns a double4x3 matrix constructed from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 double4x3(uint v) { return new double4x3(v); } - - /// Return a double4x3 matrix constructed from a uint4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 double4x3(uint4x3 v) { return new double4x3(v); } - - /// Returns a double4x3 matrix constructed from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 double4x3(float v) { return new double4x3(v); } - - /// Return a double4x3 matrix constructed from a float4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 double4x3(float4x3 v) { return new double4x3(v); } - - /// Return the double3x4 transpose of a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 transpose(double4x3 v) - { - return double3x4( - v.c0.x, v.c0.y, v.c0.z, v.c0.w, - v.c1.x, v.c1.y, v.c1.z, v.c1.w, - v.c2.x, v.c2.y, v.c2.z, v.c2.w); - } - - /// Returns a uint hash code of a double4x3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(double4x3 v) - { - return csum(fold_to_uint(v.c0) * uint4(0x7AA07CD3u, 0xAF642BA9u, 0xA8F2213Bu, 0x9F3FDC37u) + - fold_to_uint(v.c1) * uint4(0xAC60D0C3u, 0x9263662Fu, 0xE69626FFu, 0xBD010EEBu) + - fold_to_uint(v.c2) * uint4(0x9CEDE1D1u, 0x43BE0B51u, 0xAF836EE1u, 0xB130C137u)) + 0x54834775u; - } - - /// - /// Returns a uint4 vector hash code of a double4x3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(double4x3 v) - { - return (fold_to_uint(v.c0) * uint4(0x7C022221u, 0xA2D00EDFu, 0xA8977779u, 0x9F1C739Bu) + - fold_to_uint(v.c1) * uint4(0x4B1BD187u, 0x9DF50593u, 0xF18EEB85u, 0x9E19BFC3u) + - fold_to_uint(v.c2) * uint4(0x8196B06Fu, 0xD24EFA19u, 0x7D8048BBu, 0x713BD06Fu)) + 0x753AD6ADu; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/double4x4.gen.cs b/Economy.Shared/Unity.Mathematics/double4x4.gen.cs deleted file mode 100644 index b4a0851e0..000000000 --- a/Economy.Shared/Unity.Mathematics/double4x4.gen.cs +++ /dev/null @@ -1,596 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct double4x4 : System.IEquatable, IFormattable - { - public double4 c0; - public double4 c1; - public double4 c2; - public double4 c3; - - /// double4x4 identity transform. - public static readonly double4x4 identity = new double4x4(1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0); - - /// double4x4 zero value. - public static readonly double4x4 zero; - - /// Constructs a double4x4 matrix from four double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x4(double4 c0, double4 c1, double4 c2, double4 c3) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - this.c3 = c3; - } - - /// Constructs a double4x4 matrix from 16 double values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x4(double m00, double m01, double m02, double m03, - double m10, double m11, double m12, double m13, - double m20, double m21, double m22, double m23, - double m30, double m31, double m32, double m33) - { - this.c0 = new double4(m00, m10, m20, m30); - this.c1 = new double4(m01, m11, m21, m31); - this.c2 = new double4(m02, m12, m22, m32); - this.c3 = new double4(m03, m13, m23, m33); - } - - /// Constructs a double4x4 matrix from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x4(double v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a double4x4 matrix from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x4(bool v) - { - this.c0 = math.select(new double4(0.0), new double4(1.0), v); - this.c1 = math.select(new double4(0.0), new double4(1.0), v); - this.c2 = math.select(new double4(0.0), new double4(1.0), v); - this.c3 = math.select(new double4(0.0), new double4(1.0), v); - } - - /// Constructs a double4x4 matrix from a bool4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x4(bool4x4 v) - { - this.c0 = math.select(new double4(0.0), new double4(1.0), v.c0); - this.c1 = math.select(new double4(0.0), new double4(1.0), v.c1); - this.c2 = math.select(new double4(0.0), new double4(1.0), v.c2); - this.c3 = math.select(new double4(0.0), new double4(1.0), v.c3); - } - - /// Constructs a double4x4 matrix from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x4(int v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a double4x4 matrix from a int4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x4(int4x4 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - this.c3 = v.c3; - } - - /// Constructs a double4x4 matrix from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x4(uint v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a double4x4 matrix from a uint4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x4(uint4x4 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - this.c3 = v.c3; - } - - /// Constructs a double4x4 matrix from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x4(float v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a double4x4 matrix from a float4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4x4(float4x4 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - this.c3 = v.c3; - } - - - /// Implicitly converts a single double value to a double4x4 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x4(double v) { return new double4x4(v); } - - /// Explicitly converts a single bool value to a double4x4 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double4x4(bool v) { return new double4x4(v); } - - /// Explicitly converts a bool4x4 matrix to a double4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator double4x4(bool4x4 v) { return new double4x4(v); } - - /// Implicitly converts a single int value to a double4x4 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x4(int v) { return new double4x4(v); } - - /// Implicitly converts a int4x4 matrix to a double4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x4(int4x4 v) { return new double4x4(v); } - - /// Implicitly converts a single uint value to a double4x4 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x4(uint v) { return new double4x4(v); } - - /// Implicitly converts a uint4x4 matrix to a double4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x4(uint4x4 v) { return new double4x4(v); } - - /// Implicitly converts a single float value to a double4x4 matrix by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x4(float v) { return new double4x4(v); } - - /// Implicitly converts a float4x4 matrix to a double4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double4x4(float4x4 v) { return new double4x4(v); } - - - /// Returns the result of a componentwise multiplication operation on two double4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 operator * (double4x4 lhs, double4x4 rhs) { return new double4x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } - - /// Returns the result of a componentwise multiplication operation on a double4x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 operator * (double4x4 lhs, double rhs) { return new double4x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a double value and a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 operator * (double lhs, double4x4 rhs) { return new double4x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } - - - /// Returns the result of a componentwise addition operation on two double4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 operator + (double4x4 lhs, double4x4 rhs) { return new double4x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } - - /// Returns the result of a componentwise addition operation on a double4x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 operator + (double4x4 lhs, double rhs) { return new double4x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } - - /// Returns the result of a componentwise addition operation on a double value and a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 operator + (double lhs, double4x4 rhs) { return new double4x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } - - - /// Returns the result of a componentwise subtraction operation on two double4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 operator - (double4x4 lhs, double4x4 rhs) { return new double4x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } - - /// Returns the result of a componentwise subtraction operation on a double4x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 operator - (double4x4 lhs, double rhs) { return new double4x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a double value and a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 operator - (double lhs, double4x4 rhs) { return new double4x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } - - - /// Returns the result of a componentwise division operation on two double4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 operator / (double4x4 lhs, double4x4 rhs) { return new double4x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } - - /// Returns the result of a componentwise division operation on a double4x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 operator / (double4x4 lhs, double rhs) { return new double4x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } - - /// Returns the result of a componentwise division operation on a double value and a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 operator / (double lhs, double4x4 rhs) { return new double4x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } - - - /// Returns the result of a componentwise modulus operation on two double4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 operator % (double4x4 lhs, double4x4 rhs) { return new double4x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } - - /// Returns the result of a componentwise modulus operation on a double4x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 operator % (double4x4 lhs, double rhs) { return new double4x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } - - /// Returns the result of a componentwise modulus operation on a double value and a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 operator % (double lhs, double4x4 rhs) { return new double4x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } - - - /// Returns the result of a componentwise increment operation on a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 operator ++ (double4x4 val) { return new double4x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } - - - /// Returns the result of a componentwise decrement operation on a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 operator -- (double4x4 val) { return new double4x4 (--val.c0, --val.c1, --val.c2, --val.c3); } - - - /// Returns the result of a componentwise less than operation on two double4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator < (double4x4 lhs, double4x4 rhs) { return new bool4x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } - - /// Returns the result of a componentwise less than operation on a double4x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator < (double4x4 lhs, double rhs) { return new bool4x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } - - /// Returns the result of a componentwise less than operation on a double value and a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator < (double lhs, double4x4 rhs) { return new bool4x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } - - - /// Returns the result of a componentwise less or equal operation on two double4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator <= (double4x4 lhs, double4x4 rhs) { return new bool4x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } - - /// Returns the result of a componentwise less or equal operation on a double4x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator <= (double4x4 lhs, double rhs) { return new bool4x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a double value and a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator <= (double lhs, double4x4 rhs) { return new bool4x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } - - - /// Returns the result of a componentwise greater than operation on two double4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator > (double4x4 lhs, double4x4 rhs) { return new bool4x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } - - /// Returns the result of a componentwise greater than operation on a double4x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator > (double4x4 lhs, double rhs) { return new bool4x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } - - /// Returns the result of a componentwise greater than operation on a double value and a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator > (double lhs, double4x4 rhs) { return new bool4x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } - - - /// Returns the result of a componentwise greater or equal operation on two double4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator >= (double4x4 lhs, double4x4 rhs) { return new bool4x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } - - /// Returns the result of a componentwise greater or equal operation on a double4x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator >= (double4x4 lhs, double rhs) { return new bool4x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a double value and a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator >= (double lhs, double4x4 rhs) { return new bool4x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } - - - /// Returns the result of a componentwise unary minus operation on a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 operator - (double4x4 val) { return new double4x4 (-val.c0, -val.c1, -val.c2, -val.c3); } - - - /// Returns the result of a componentwise unary plus operation on a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 operator + (double4x4 val) { return new double4x4 (+val.c0, +val.c1, +val.c2, +val.c3); } - - - /// Returns the result of a componentwise equality operation on two double4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator == (double4x4 lhs, double4x4 rhs) { return new bool4x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } - - /// Returns the result of a componentwise equality operation on a double4x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator == (double4x4 lhs, double rhs) { return new bool4x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } - - /// Returns the result of a componentwise equality operation on a double value and a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator == (double lhs, double4x4 rhs) { return new bool4x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } - - - /// Returns the result of a componentwise not equal operation on two double4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator != (double4x4 lhs, double4x4 rhs) { return new bool4x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } - - /// Returns the result of a componentwise not equal operation on a double4x4 matrix and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator != (double4x4 lhs, double rhs) { return new bool4x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } - - /// Returns the result of a componentwise not equal operation on a double value and a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator != (double lhs, double4x4 rhs) { return new bool4x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } - - - - /// Returns the double4 element at a specified index. - unsafe public ref double4 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (double4x4* array = &this) { return ref ((double4*)array)[index]; } - } - } - - /// Returns true if the double4x4 is equal to a given double4x4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(double4x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } - - /// Returns true if the double4x4 is equal to a given double4x4, false otherwise. - public override bool Equals(object o) { return Equals((double4x4)o); } - - - /// Returns a hash code for the double4x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the double4x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("double4x4({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); - } - - /// Returns a string representation of the double4x4 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("double4x4({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)); - } - - } - - public static partial class math - { - /// Returns a double4x4 matrix constructed from four double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 double4x4(double4 c0, double4 c1, double4 c2, double4 c3) { return new double4x4(c0, c1, c2, c3); } - - /// Returns a double4x4 matrix constructed from from 16 double values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 double4x4(double m00, double m01, double m02, double m03, - double m10, double m11, double m12, double m13, - double m20, double m21, double m22, double m23, - double m30, double m31, double m32, double m33) - { - return new double4x4(m00, m01, m02, m03, - m10, m11, m12, m13, - m20, m21, m22, m23, - m30, m31, m32, m33); - } - - /// Returns a double4x4 matrix constructed from a single double value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 double4x4(double v) { return new double4x4(v); } - - /// Returns a double4x4 matrix constructed from a single bool value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 double4x4(bool v) { return new double4x4(v); } - - /// Return a double4x4 matrix constructed from a bool4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 double4x4(bool4x4 v) { return new double4x4(v); } - - /// Returns a double4x4 matrix constructed from a single int value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 double4x4(int v) { return new double4x4(v); } - - /// Return a double4x4 matrix constructed from a int4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 double4x4(int4x4 v) { return new double4x4(v); } - - /// Returns a double4x4 matrix constructed from a single uint value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 double4x4(uint v) { return new double4x4(v); } - - /// Return a double4x4 matrix constructed from a uint4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 double4x4(uint4x4 v) { return new double4x4(v); } - - /// Returns a double4x4 matrix constructed from a single float value by converting it to double and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 double4x4(float v) { return new double4x4(v); } - - /// Return a double4x4 matrix constructed from a float4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 double4x4(float4x4 v) { return new double4x4(v); } - - /// Return the result of rotating a double3 vector by a double4x4 matrix - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 rotate(double4x4 a, double3 b) - { - return (a.c0 * b.x + a.c1 * b.y + a.c2 * b.z).xyz; - } - - /// Return the result of transforming a double3 point by a double4x4 matrix - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 transform(double4x4 a, double3 b) - { - return (a.c0 * b.x + a.c1 * b.y + a.c2 * b.z + a.c3).xyz; - } - - /// Return the double4x4 transpose of a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 transpose(double4x4 v) - { - return double4x4( - v.c0.x, v.c0.y, v.c0.z, v.c0.w, - v.c1.x, v.c1.y, v.c1.z, v.c1.w, - v.c2.x, v.c2.y, v.c2.z, v.c2.w, - v.c3.x, v.c3.y, v.c3.z, v.c3.w); - } - - /// Returns the double4x4 full inverse of a double4x4 matrix. - public static double4x4 inverse(double4x4 m) - { - double4 c0 = m.c0; - double4 c1 = m.c1; - double4 c2 = m.c2; - double4 c3 = m.c3; - - double4 r0y_r1y_r0x_r1x = movelh(c1, c0); - double4 r0z_r1z_r0w_r1w = movelh(c2, c3); - double4 r2y_r3y_r2x_r3x = movehl(c0, c1); - double4 r2z_r3z_r2w_r3w = movehl(c3, c2); - - double4 r1y_r2y_r1x_r2x = shuffle(c1, c0, ShuffleComponent.LeftY, ShuffleComponent.LeftZ, ShuffleComponent.RightY, ShuffleComponent.RightZ); - double4 r1z_r2z_r1w_r2w = shuffle(c2, c3, ShuffleComponent.LeftY, ShuffleComponent.LeftZ, ShuffleComponent.RightY, ShuffleComponent.RightZ); - double4 r3y_r0y_r3x_r0x = shuffle(c1, c0, ShuffleComponent.LeftW, ShuffleComponent.LeftX, ShuffleComponent.RightW, ShuffleComponent.RightX); - double4 r3z_r0z_r3w_r0w = shuffle(c2, c3, ShuffleComponent.LeftW, ShuffleComponent.LeftX, ShuffleComponent.RightW, ShuffleComponent.RightX); - - double4 r0_wzyx = shuffle(r0z_r1z_r0w_r1w, r0y_r1y_r0x_r1x, ShuffleComponent.LeftZ, ShuffleComponent.LeftX, ShuffleComponent.RightX, ShuffleComponent.RightZ); - double4 r1_wzyx = shuffle(r0z_r1z_r0w_r1w, r0y_r1y_r0x_r1x, ShuffleComponent.LeftW, ShuffleComponent.LeftY, ShuffleComponent.RightY, ShuffleComponent.RightW); - double4 r2_wzyx = shuffle(r2z_r3z_r2w_r3w, r2y_r3y_r2x_r3x, ShuffleComponent.LeftZ, ShuffleComponent.LeftX, ShuffleComponent.RightX, ShuffleComponent.RightZ); - double4 r3_wzyx = shuffle(r2z_r3z_r2w_r3w, r2y_r3y_r2x_r3x, ShuffleComponent.LeftW, ShuffleComponent.LeftY, ShuffleComponent.RightY, ShuffleComponent.RightW); - double4 r0_xyzw = shuffle(r0y_r1y_r0x_r1x, r0z_r1z_r0w_r1w, ShuffleComponent.LeftZ, ShuffleComponent.LeftX, ShuffleComponent.RightX, ShuffleComponent.RightZ); - - // Calculate remaining inner term pairs. inner terms have zw=-xy, so we only have to calculate xy and can pack two pairs per vector. - double4 inner12_23 = r1y_r2y_r1x_r2x * r2z_r3z_r2w_r3w - r1z_r2z_r1w_r2w * r2y_r3y_r2x_r3x; - double4 inner02_13 = r0y_r1y_r0x_r1x * r2z_r3z_r2w_r3w - r0z_r1z_r0w_r1w * r2y_r3y_r2x_r3x; - double4 inner30_01 = r3z_r0z_r3w_r0w * r0y_r1y_r0x_r1x - r3y_r0y_r3x_r0x * r0z_r1z_r0w_r1w; - - // Expand inner terms back to 4 components. zw signs still need to be flipped - double4 inner12 = shuffle(inner12_23, inner12_23, ShuffleComponent.LeftX, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.RightX); - double4 inner23 = shuffle(inner12_23, inner12_23, ShuffleComponent.LeftY, ShuffleComponent.LeftW, ShuffleComponent.RightW, ShuffleComponent.RightY); - - double4 inner02 = shuffle(inner02_13, inner02_13, ShuffleComponent.LeftX, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.RightX); - double4 inner13 = shuffle(inner02_13, inner02_13, ShuffleComponent.LeftY, ShuffleComponent.LeftW, ShuffleComponent.RightW, ShuffleComponent.RightY); - - // Calculate minors - double4 minors0 = r3_wzyx * inner12 - r2_wzyx * inner13 + r1_wzyx * inner23; - - double4 denom = r0_xyzw * minors0; - - // Horizontal sum of denominator. Free sign flip of z and w compensates for missing flip in inner terms. - denom = denom + shuffle(denom, denom, ShuffleComponent.LeftY, ShuffleComponent.LeftX, ShuffleComponent.RightW, ShuffleComponent.RightZ); // x+y x+y z+w z+w - denom = denom - shuffle(denom, denom, ShuffleComponent.LeftZ, ShuffleComponent.LeftZ, ShuffleComponent.RightX, ShuffleComponent.RightX); // x+y-z-w x+y-z-w z+w-x-y z+w-x-y - - double4 rcp_denom_ppnn = double4(1.0) / denom; - double4x4 res; - res.c0 = minors0 * rcp_denom_ppnn; - - double4 inner30 = shuffle(inner30_01, inner30_01, ShuffleComponent.LeftX, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.RightX); - double4 inner01 = shuffle(inner30_01, inner30_01, ShuffleComponent.LeftY, ShuffleComponent.LeftW, ShuffleComponent.RightW, ShuffleComponent.RightY); - - double4 minors1 = r2_wzyx * inner30 - r0_wzyx * inner23 - r3_wzyx * inner02; - res.c1 = minors1 * rcp_denom_ppnn; - - double4 minors2 = r0_wzyx * inner13 - r1_wzyx * inner30 - r3_wzyx * inner01; - res.c2 = minors2 * rcp_denom_ppnn; - - double4 minors3 = r1_wzyx * inner02 - r0_wzyx * inner12 + r2_wzyx * inner01; - res.c3 = minors3 * rcp_denom_ppnn; - return res; - } - - // Fast matrix inverse for rigid transforms (Orthonormal basis and translation) - public static double4x4 fastinverse(double4x4 m) - { - double4 c0 = m.c0; - double4 c1 = m.c1; - double4 c2 = m.c2; - double4 pos = m.c3; - - double4 zero = double4(0); - - double4 t0 = unpacklo(c0, c2); - double4 t1 = unpacklo(c1, zero); - double4 t2 = unpackhi(c0, c2); - double4 t3 = unpackhi(c1, zero); - - double4 r0 = unpacklo(t0, t1); - double4 r1 = unpackhi(t0, t1); - double4 r2 = unpacklo(t2, t3); - - pos = -(r0 * pos.x + r1 * pos.y + r2 * pos.z); - pos.w = 1.0f; - - return double4x4(r0, r1, r2, pos); - } - - /// Returns the determinant of a double4x4 matrix. - public static double determinant(double4x4 m) - { - double4 c0 = m.c0; - double4 c1 = m.c1; - double4 c2 = m.c2; - double4 c3 = m.c3; - - double m00 = c1.y * (c2.z * c3.w - c2.w * c3.z) - c2.y * (c1.z * c3.w - c1.w * c3.z) + c3.y * (c1.z * c2.w - c1.w * c2.z); - double m01 = c0.y * (c2.z * c3.w - c2.w * c3.z) - c2.y * (c0.z * c3.w - c0.w * c3.z) + c3.y * (c0.z * c2.w - c0.w * c2.z); - double m02 = c0.y * (c1.z * c3.w - c1.w * c3.z) - c1.y * (c0.z * c3.w - c0.w * c3.z) + c3.y * (c0.z * c1.w - c0.w * c1.z); - double m03 = c0.y * (c1.z * c2.w - c1.w * c2.z) - c1.y * (c0.z * c2.w - c0.w * c2.z) + c2.y * (c0.z * c1.w - c0.w * c1.z); - - return c0.x * m00 - c1.x * m01 + c2.x * m02 - c3.x * m03; - } - - /// Returns a uint hash code of a double4x4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(double4x4 v) - { - return csum(fold_to_uint(v.c0) * uint4(0x4DDC6509u, 0x7CF083CBu, 0x5C4D6CEDu, 0xF9137117u) + - fold_to_uint(v.c1) * uint4(0xE857DCE1u, 0xF62213C5u, 0x9CDAA959u, 0xAA269ABFu) + - fold_to_uint(v.c2) * uint4(0xD54BA36Fu, 0xFD0847B9u, 0x8189A683u, 0xB139D651u) + - fold_to_uint(v.c3) * uint4(0xE7579997u, 0xEF7D56C7u, 0x66F38F0Bu, 0x624256A3u)) + 0x5292ADE1u; - } - - /// - /// Returns a uint4 vector hash code of a double4x4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(double4x4 v) - { - return (fold_to_uint(v.c0) * uint4(0xD2E590E5u, 0xF25BE857u, 0x9BC17CE7u, 0xC8B86851u) + - fold_to_uint(v.c1) * uint4(0x64095221u, 0xADF428FFu, 0xA3977109u, 0x745ED837u) + - fold_to_uint(v.c2) * uint4(0x9CDC88F5u, 0xFA62D721u, 0x7E4DB1CFu, 0x68EEE0F5u) + - fold_to_uint(v.c3) * uint4(0xBC3B0A59u, 0x816EFB5Du, 0xA24E82B7u, 0x45A22087u)) + 0xFC104C3Bu; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/float2.gen.cs b/Economy.Shared/Unity.Mathematics/float2.gen.cs deleted file mode 100644 index 4326c26fd..000000000 --- a/Economy.Shared/Unity.Mathematics/float2.gen.cs +++ /dev/null @@ -1,760 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; -using System.Diagnostics; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [DebuggerTypeProxy(typeof(float2.DebuggerProxy))] - [System.Serializable] - public partial struct float2 : System.IEquatable, IFormattable - { - public float x; - public float y; - - /// float2 zero value. - public static readonly float2 zero; - - /// Constructs a float2 vector from two float values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2(float x, float y) - { - this.x = x; - this.y = y; - } - - /// Constructs a float2 vector from a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2(float2 xy) - { - this.x = xy.x; - this.y = xy.y; - } - - /// Constructs a float2 vector from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2(float v) - { - this.x = v; - this.y = v; - } - - /// Constructs a float2 vector from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2(bool v) - { - this.x = v ? 1.0f : 0.0f; - this.y = v ? 1.0f : 0.0f; - } - - /// Constructs a float2 vector from a bool2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2(bool2 v) - { - this.x = v.x ? 1.0f : 0.0f; - this.y = v.y ? 1.0f : 0.0f; - } - - /// Constructs a float2 vector from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2(int v) - { - this.x = v; - this.y = v; - } - - /// Constructs a float2 vector from a int2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2(int2 v) - { - this.x = v.x; - this.y = v.y; - } - - /// Constructs a float2 vector from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2(uint v) - { - this.x = v; - this.y = v; - } - - /// Constructs a float2 vector from a uint2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2(uint2 v) - { - this.x = v.x; - this.y = v.y; - } - - /// Constructs a float2 vector from a single half value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2(half v) - { - this.x = v; - this.y = v; - } - - /// Constructs a float2 vector from a half2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2(half2 v) - { - this.x = v.x; - this.y = v.y; - } - - /// Constructs a float2 vector from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2(double v) - { - this.x = (float)v; - this.y = (float)v; - } - - /// Constructs a float2 vector from a double2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2(double2 v) - { - this.x = (float)v.x; - this.y = (float)v.y; - } - - - /// Implicitly converts a single float value to a float2 vector by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2(float v) { return new float2(v); } - - /// Explicitly converts a single bool value to a float2 vector by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float2(bool v) { return new float2(v); } - - /// Explicitly converts a bool2 vector to a float2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float2(bool2 v) { return new float2(v); } - - /// Implicitly converts a single int value to a float2 vector by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2(int v) { return new float2(v); } - - /// Implicitly converts a int2 vector to a float2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2(int2 v) { return new float2(v); } - - /// Implicitly converts a single uint value to a float2 vector by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2(uint v) { return new float2(v); } - - /// Implicitly converts a uint2 vector to a float2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2(uint2 v) { return new float2(v); } - - /// Implicitly converts a single half value to a float2 vector by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2(half v) { return new float2(v); } - - /// Implicitly converts a half2 vector to a float2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2(half2 v) { return new float2(v); } - - /// Explicitly converts a single double value to a float2 vector by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float2(double v) { return new float2(v); } - - /// Explicitly converts a double2 vector to a float2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float2(double2 v) { return new float2(v); } - - - /// Returns the result of a componentwise multiplication operation on two float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator * (float2 lhs, float2 rhs) { return new float2 (lhs.x * rhs.x, lhs.y * rhs.y); } - - /// Returns the result of a componentwise multiplication operation on a float2 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator * (float2 lhs, float rhs) { return new float2 (lhs.x * rhs, lhs.y * rhs); } - - /// Returns the result of a componentwise multiplication operation on a float value and a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator * (float lhs, float2 rhs) { return new float2 (lhs * rhs.x, lhs * rhs.y); } - - - /// Returns the result of a componentwise addition operation on two float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator + (float2 lhs, float2 rhs) { return new float2 (lhs.x + rhs.x, lhs.y + rhs.y); } - - /// Returns the result of a componentwise addition operation on a float2 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator + (float2 lhs, float rhs) { return new float2 (lhs.x + rhs, lhs.y + rhs); } - - /// Returns the result of a componentwise addition operation on a float value and a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator + (float lhs, float2 rhs) { return new float2 (lhs + rhs.x, lhs + rhs.y); } - - - /// Returns the result of a componentwise subtraction operation on two float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator - (float2 lhs, float2 rhs) { return new float2 (lhs.x - rhs.x, lhs.y - rhs.y); } - - /// Returns the result of a componentwise subtraction operation on a float2 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator - (float2 lhs, float rhs) { return new float2 (lhs.x - rhs, lhs.y - rhs); } - - /// Returns the result of a componentwise subtraction operation on a float value and a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator - (float lhs, float2 rhs) { return new float2 (lhs - rhs.x, lhs - rhs.y); } - - - /// Returns the result of a componentwise division operation on two float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator / (float2 lhs, float2 rhs) { return new float2 (lhs.x / rhs.x, lhs.y / rhs.y); } - - /// Returns the result of a componentwise division operation on a float2 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator / (float2 lhs, float rhs) { return new float2 (lhs.x / rhs, lhs.y / rhs); } - - /// Returns the result of a componentwise division operation on a float value and a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator / (float lhs, float2 rhs) { return new float2 (lhs / rhs.x, lhs / rhs.y); } - - - /// Returns the result of a componentwise modulus operation on two float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator % (float2 lhs, float2 rhs) { return new float2 (lhs.x % rhs.x, lhs.y % rhs.y); } - - /// Returns the result of a componentwise modulus operation on a float2 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator % (float2 lhs, float rhs) { return new float2 (lhs.x % rhs, lhs.y % rhs); } - - /// Returns the result of a componentwise modulus operation on a float value and a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator % (float lhs, float2 rhs) { return new float2 (lhs % rhs.x, lhs % rhs.y); } - - - /// Returns the result of a componentwise increment operation on a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator ++ (float2 val) { return new float2 (++val.x, ++val.y); } - - - /// Returns the result of a componentwise decrement operation on a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator -- (float2 val) { return new float2 (--val.x, --val.y); } - - - /// Returns the result of a componentwise less than operation on two float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (float2 lhs, float2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } - - /// Returns the result of a componentwise less than operation on a float2 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (float2 lhs, float rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } - - /// Returns the result of a componentwise less than operation on a float value and a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (float lhs, float2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } - - - /// Returns the result of a componentwise less or equal operation on two float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (float2 lhs, float2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } - - /// Returns the result of a componentwise less or equal operation on a float2 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (float2 lhs, float rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a float value and a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (float lhs, float2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } - - - /// Returns the result of a componentwise greater than operation on two float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (float2 lhs, float2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } - - /// Returns the result of a componentwise greater than operation on a float2 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (float2 lhs, float rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } - - /// Returns the result of a componentwise greater than operation on a float value and a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (float lhs, float2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } - - - /// Returns the result of a componentwise greater or equal operation on two float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (float2 lhs, float2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } - - /// Returns the result of a componentwise greater or equal operation on a float2 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (float2 lhs, float rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a float value and a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (float lhs, float2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } - - - /// Returns the result of a componentwise unary minus operation on a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator - (float2 val) { return new float2 (-val.x, -val.y); } - - - /// Returns the result of a componentwise unary plus operation on a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator + (float2 val) { return new float2 (+val.x, +val.y); } - - - /// Returns the result of a componentwise equality operation on two float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (float2 lhs, float2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } - - /// Returns the result of a componentwise equality operation on a float2 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (float2 lhs, float rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } - - /// Returns the result of a componentwise equality operation on a float value and a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (float lhs, float2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } - - - /// Returns the result of a componentwise not equal operation on two float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (float2 lhs, float2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } - - /// Returns the result of a componentwise not equal operation on a float2 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (float2 lhs, float rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } - - /// Returns the result of a componentwise not equal operation on a float value and a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (float lhs, float2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } - - - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(y, y); } - } - - - - /// Returns the float element at a specified index. - unsafe public float this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (float2* array = &this) { return ((float*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (float* array = &x) { array[index] = value; } - } - } - - /// Returns true if the float2 is equal to a given float2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(float2 rhs) { return x == rhs.x && y == rhs.y; } - - /// Returns true if the float2 is equal to a given float2, false otherwise. - public override bool Equals(object o) { return Equals((float2)o); } - - - /// Returns a hash code for the float2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the float2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("float2({0}f, {1}f)", x, y); - } - - /// Returns a string representation of the float2 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("float2({0}f, {1}f)", x.ToString(format, formatProvider), y.ToString(format, formatProvider)); - } - - internal sealed class DebuggerProxy - { - public float x; - public float y; - public DebuggerProxy(float2 v) - { - x = v.x; - y = v.y; - } - } - - } - - public static partial class math - { - /// Returns a float2 vector constructed from two float values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 float2(float x, float y) { return new float2(x, y); } - - /// Returns a float2 vector constructed from a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 float2(float2 xy) { return new float2(xy); } - - /// Returns a float2 vector constructed from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 float2(float v) { return new float2(v); } - - /// Returns a float2 vector constructed from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 float2(bool v) { return new float2(v); } - - /// Return a float2 vector constructed from a bool2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 float2(bool2 v) { return new float2(v); } - - /// Returns a float2 vector constructed from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 float2(int v) { return new float2(v); } - - /// Return a float2 vector constructed from a int2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 float2(int2 v) { return new float2(v); } - - /// Returns a float2 vector constructed from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 float2(uint v) { return new float2(v); } - - /// Return a float2 vector constructed from a uint2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 float2(uint2 v) { return new float2(v); } - - /// Returns a float2 vector constructed from a single half value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 float2(half v) { return new float2(v); } - - /// Return a float2 vector constructed from a half2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 float2(half2 v) { return new float2(v); } - - /// Returns a float2 vector constructed from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 float2(double v) { return new float2(v); } - - /// Return a float2 vector constructed from a double2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 float2(double2 v) { return new float2(v); } - - /// Returns a uint hash code of a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(float2 v) - { - return csum(asuint(v) * uint2(0xFA3A3285u, 0xAD55999Du)) + 0xDCDD5341u; - } - - /// - /// Returns a uint2 vector hash code of a float2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(float2 v) - { - return (asuint(v) * uint2(0x94DDD769u, 0xA1E92D39u)) + 0x4583C801u; - } - - /// Returns the result of specified shuffling of the components from two float2 vectors into a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float shuffle(float2 a, float2 b, ShuffleComponent x) - { - return select_shuffle_component(a, b, x); - } - - /// Returns the result of specified shuffling of the components from two float2 vectors into a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 shuffle(float2 a, float2 b, ShuffleComponent x, ShuffleComponent y) - { - return float2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); - } - - /// Returns the result of specified shuffling of the components from two float2 vectors into a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 shuffle(float2 a, float2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) - { - return float3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); - } - - /// Returns the result of specified shuffling of the components from two float2 vectors into a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 shuffle(float2 a, float2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) - { - return float4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float select_shuffle_component(float2 a, float2 b, ShuffleComponent component) - { - switch(component) - { - case ShuffleComponent.LeftX: - return a.x; - case ShuffleComponent.LeftY: - return a.y; - case ShuffleComponent.RightX: - return b.x; - case ShuffleComponent.RightY: - return b.y; - default: - throw new System.ArgumentException("Invalid shuffle component: " + component); - } - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/float2x2.gen.cs b/Economy.Shared/Unity.Mathematics/float2x2.gen.cs deleted file mode 100644 index d0a42b290..000000000 --- a/Economy.Shared/Unity.Mathematics/float2x2.gen.cs +++ /dev/null @@ -1,468 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct float2x2 : System.IEquatable, IFormattable - { - public float2 c0; - public float2 c1; - - /// float2x2 identity transform. - public static readonly float2x2 identity = new float2x2(1.0f, 0.0f, 0.0f, 1.0f); - - /// float2x2 zero value. - public static readonly float2x2 zero; - - /// Constructs a float2x2 matrix from two float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x2(float2 c0, float2 c1) - { - this.c0 = c0; - this.c1 = c1; - } - - /// Constructs a float2x2 matrix from 4 float values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x2(float m00, float m01, - float m10, float m11) - { - this.c0 = new float2(m00, m10); - this.c1 = new float2(m01, m11); - } - - /// Constructs a float2x2 matrix from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x2(float v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a float2x2 matrix from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x2(bool v) - { - this.c0 = math.select(new float2(0.0f), new float2(1.0f), v); - this.c1 = math.select(new float2(0.0f), new float2(1.0f), v); - } - - /// Constructs a float2x2 matrix from a bool2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x2(bool2x2 v) - { - this.c0 = math.select(new float2(0.0f), new float2(1.0f), v.c0); - this.c1 = math.select(new float2(0.0f), new float2(1.0f), v.c1); - } - - /// Constructs a float2x2 matrix from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x2(int v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a float2x2 matrix from a int2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x2(int2x2 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - } - - /// Constructs a float2x2 matrix from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x2(uint v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a float2x2 matrix from a uint2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x2(uint2x2 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - } - - /// Constructs a float2x2 matrix from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x2(double v) - { - this.c0 = (float2)v; - this.c1 = (float2)v; - } - - /// Constructs a float2x2 matrix from a double2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x2(double2x2 v) - { - this.c0 = (float2)v.c0; - this.c1 = (float2)v.c1; - } - - - /// Implicitly converts a single float value to a float2x2 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2x2(float v) { return new float2x2(v); } - - /// Explicitly converts a single bool value to a float2x2 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float2x2(bool v) { return new float2x2(v); } - - /// Explicitly converts a bool2x2 matrix to a float2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float2x2(bool2x2 v) { return new float2x2(v); } - - /// Implicitly converts a single int value to a float2x2 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2x2(int v) { return new float2x2(v); } - - /// Implicitly converts a int2x2 matrix to a float2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2x2(int2x2 v) { return new float2x2(v); } - - /// Implicitly converts a single uint value to a float2x2 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2x2(uint v) { return new float2x2(v); } - - /// Implicitly converts a uint2x2 matrix to a float2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2x2(uint2x2 v) { return new float2x2(v); } - - /// Explicitly converts a single double value to a float2x2 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float2x2(double v) { return new float2x2(v); } - - /// Explicitly converts a double2x2 matrix to a float2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float2x2(double2x2 v) { return new float2x2(v); } - - - /// Returns the result of a componentwise multiplication operation on two float2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 operator * (float2x2 lhs, float2x2 rhs) { return new float2x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } - - /// Returns the result of a componentwise multiplication operation on a float2x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 operator * (float2x2 lhs, float rhs) { return new float2x2 (lhs.c0 * rhs, lhs.c1 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a float value and a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 operator * (float lhs, float2x2 rhs) { return new float2x2 (lhs * rhs.c0, lhs * rhs.c1); } - - - /// Returns the result of a componentwise addition operation on two float2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 operator + (float2x2 lhs, float2x2 rhs) { return new float2x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } - - /// Returns the result of a componentwise addition operation on a float2x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 operator + (float2x2 lhs, float rhs) { return new float2x2 (lhs.c0 + rhs, lhs.c1 + rhs); } - - /// Returns the result of a componentwise addition operation on a float value and a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 operator + (float lhs, float2x2 rhs) { return new float2x2 (lhs + rhs.c0, lhs + rhs.c1); } - - - /// Returns the result of a componentwise subtraction operation on two float2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 operator - (float2x2 lhs, float2x2 rhs) { return new float2x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } - - /// Returns the result of a componentwise subtraction operation on a float2x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 operator - (float2x2 lhs, float rhs) { return new float2x2 (lhs.c0 - rhs, lhs.c1 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a float value and a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 operator - (float lhs, float2x2 rhs) { return new float2x2 (lhs - rhs.c0, lhs - rhs.c1); } - - - /// Returns the result of a componentwise division operation on two float2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 operator / (float2x2 lhs, float2x2 rhs) { return new float2x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } - - /// Returns the result of a componentwise division operation on a float2x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 operator / (float2x2 lhs, float rhs) { return new float2x2 (lhs.c0 / rhs, lhs.c1 / rhs); } - - /// Returns the result of a componentwise division operation on a float value and a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 operator / (float lhs, float2x2 rhs) { return new float2x2 (lhs / rhs.c0, lhs / rhs.c1); } - - - /// Returns the result of a componentwise modulus operation on two float2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 operator % (float2x2 lhs, float2x2 rhs) { return new float2x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } - - /// Returns the result of a componentwise modulus operation on a float2x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 operator % (float2x2 lhs, float rhs) { return new float2x2 (lhs.c0 % rhs, lhs.c1 % rhs); } - - /// Returns the result of a componentwise modulus operation on a float value and a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 operator % (float lhs, float2x2 rhs) { return new float2x2 (lhs % rhs.c0, lhs % rhs.c1); } - - - /// Returns the result of a componentwise increment operation on a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 operator ++ (float2x2 val) { return new float2x2 (++val.c0, ++val.c1); } - - - /// Returns the result of a componentwise decrement operation on a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 operator -- (float2x2 val) { return new float2x2 (--val.c0, --val.c1); } - - - /// Returns the result of a componentwise less than operation on two float2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator < (float2x2 lhs, float2x2 rhs) { return new bool2x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } - - /// Returns the result of a componentwise less than operation on a float2x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator < (float2x2 lhs, float rhs) { return new bool2x2 (lhs.c0 < rhs, lhs.c1 < rhs); } - - /// Returns the result of a componentwise less than operation on a float value and a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator < (float lhs, float2x2 rhs) { return new bool2x2 (lhs < rhs.c0, lhs < rhs.c1); } - - - /// Returns the result of a componentwise less or equal operation on two float2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator <= (float2x2 lhs, float2x2 rhs) { return new bool2x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } - - /// Returns the result of a componentwise less or equal operation on a float2x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator <= (float2x2 lhs, float rhs) { return new bool2x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a float value and a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator <= (float lhs, float2x2 rhs) { return new bool2x2 (lhs <= rhs.c0, lhs <= rhs.c1); } - - - /// Returns the result of a componentwise greater than operation on two float2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator > (float2x2 lhs, float2x2 rhs) { return new bool2x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } - - /// Returns the result of a componentwise greater than operation on a float2x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator > (float2x2 lhs, float rhs) { return new bool2x2 (lhs.c0 > rhs, lhs.c1 > rhs); } - - /// Returns the result of a componentwise greater than operation on a float value and a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator > (float lhs, float2x2 rhs) { return new bool2x2 (lhs > rhs.c0, lhs > rhs.c1); } - - - /// Returns the result of a componentwise greater or equal operation on two float2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator >= (float2x2 lhs, float2x2 rhs) { return new bool2x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } - - /// Returns the result of a componentwise greater or equal operation on a float2x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator >= (float2x2 lhs, float rhs) { return new bool2x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a float value and a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator >= (float lhs, float2x2 rhs) { return new bool2x2 (lhs >= rhs.c0, lhs >= rhs.c1); } - - - /// Returns the result of a componentwise unary minus operation on a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 operator - (float2x2 val) { return new float2x2 (-val.c0, -val.c1); } - - - /// Returns the result of a componentwise unary plus operation on a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 operator + (float2x2 val) { return new float2x2 (+val.c0, +val.c1); } - - - /// Returns the result of a componentwise equality operation on two float2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator == (float2x2 lhs, float2x2 rhs) { return new bool2x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } - - /// Returns the result of a componentwise equality operation on a float2x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator == (float2x2 lhs, float rhs) { return new bool2x2 (lhs.c0 == rhs, lhs.c1 == rhs); } - - /// Returns the result of a componentwise equality operation on a float value and a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator == (float lhs, float2x2 rhs) { return new bool2x2 (lhs == rhs.c0, lhs == rhs.c1); } - - - /// Returns the result of a componentwise not equal operation on two float2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator != (float2x2 lhs, float2x2 rhs) { return new bool2x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } - - /// Returns the result of a componentwise not equal operation on a float2x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator != (float2x2 lhs, float rhs) { return new bool2x2 (lhs.c0 != rhs, lhs.c1 != rhs); } - - /// Returns the result of a componentwise not equal operation on a float value and a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator != (float lhs, float2x2 rhs) { return new bool2x2 (lhs != rhs.c0, lhs != rhs.c1); } - - - - /// Returns the float2 element at a specified index. - unsafe public ref float2 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (float2x2* array = &this) { return ref ((float2*)array)[index]; } - } - } - - /// Returns true if the float2x2 is equal to a given float2x2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(float2x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } - - /// Returns true if the float2x2 is equal to a given float2x2, false otherwise. - public override bool Equals(object o) { return Equals((float2x2)o); } - - - /// Returns a hash code for the float2x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the float2x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("float2x2({0}f, {1}f, {2}f, {3}f)", c0.x, c1.x, c0.y, c1.y); - } - - /// Returns a string representation of the float2x2 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("float2x2({0}f, {1}f, {2}f, {3}f)", c0.x.ToString(format, formatProvider), c1.x.ToString(format, formatProvider), c0.y.ToString(format, formatProvider), c1.y.ToString(format, formatProvider)); - } - - } - - public static partial class math - { - /// Returns a float2x2 matrix constructed from two float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 float2x2(float2 c0, float2 c1) { return new float2x2(c0, c1); } - - /// Returns a float2x2 matrix constructed from from 4 float values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 float2x2(float m00, float m01, - float m10, float m11) - { - return new float2x2(m00, m01, - m10, m11); - } - - /// Returns a float2x2 matrix constructed from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 float2x2(float v) { return new float2x2(v); } - - /// Returns a float2x2 matrix constructed from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 float2x2(bool v) { return new float2x2(v); } - - /// Return a float2x2 matrix constructed from a bool2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 float2x2(bool2x2 v) { return new float2x2(v); } - - /// Returns a float2x2 matrix constructed from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 float2x2(int v) { return new float2x2(v); } - - /// Return a float2x2 matrix constructed from a int2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 float2x2(int2x2 v) { return new float2x2(v); } - - /// Returns a float2x2 matrix constructed from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 float2x2(uint v) { return new float2x2(v); } - - /// Return a float2x2 matrix constructed from a uint2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 float2x2(uint2x2 v) { return new float2x2(v); } - - /// Returns a float2x2 matrix constructed from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 float2x2(double v) { return new float2x2(v); } - - /// Return a float2x2 matrix constructed from a double2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 float2x2(double2x2 v) { return new float2x2(v); } - - /// Return the float2x2 transpose of a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 transpose(float2x2 v) - { - return float2x2( - v.c0.x, v.c0.y, - v.c1.x, v.c1.y); - } - - /// Returns the float2x2 full inverse of a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 inverse(float2x2 m) - { - float a = m.c0.x; - float b = m.c1.x; - float c = m.c0.y; - float d = m.c1.y; - - float det = a * d - b * c; - - return float2x2(d, -b, -c, a) * (1.0f / det); - } - - /// Returns the determinant of a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float determinant(float2x2 m) - { - float a = m.c0.x; - float b = m.c1.x; - float c = m.c0.y; - float d = m.c1.y; - - return a * d - b * c; - } - - /// Returns a uint hash code of a float2x2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(float2x2 v) - { - return csum(asuint(v.c0) * uint2(0x9C9F0823u, 0x5A9CA13Bu) + - asuint(v.c1) * uint2(0xAFCDD5EFu, 0xA88D187Du)) + 0xCF6EBA1Du; - } - - /// - /// Returns a uint2 vector hash code of a float2x2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(float2x2 v) - { - return (asuint(v.c0) * uint2(0x9D88E5A1u, 0xEADF0775u) + - asuint(v.c1) * uint2(0x747A9D7Bu, 0x4111F799u)) + 0xB5F05AF1u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/float2x3.gen.cs b/Economy.Shared/Unity.Mathematics/float2x3.gen.cs deleted file mode 100644 index 54d4bc98a..000000000 --- a/Economy.Shared/Unity.Mathematics/float2x3.gen.cs +++ /dev/null @@ -1,454 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct float2x3 : System.IEquatable, IFormattable - { - public float2 c0; - public float2 c1; - public float2 c2; - - /// float2x3 zero value. - public static readonly float2x3 zero; - - /// Constructs a float2x3 matrix from three float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x3(float2 c0, float2 c1, float2 c2) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - } - - /// Constructs a float2x3 matrix from 6 float values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x3(float m00, float m01, float m02, - float m10, float m11, float m12) - { - this.c0 = new float2(m00, m10); - this.c1 = new float2(m01, m11); - this.c2 = new float2(m02, m12); - } - - /// Constructs a float2x3 matrix from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x3(float v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a float2x3 matrix from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x3(bool v) - { - this.c0 = math.select(new float2(0.0f), new float2(1.0f), v); - this.c1 = math.select(new float2(0.0f), new float2(1.0f), v); - this.c2 = math.select(new float2(0.0f), new float2(1.0f), v); - } - - /// Constructs a float2x3 matrix from a bool2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x3(bool2x3 v) - { - this.c0 = math.select(new float2(0.0f), new float2(1.0f), v.c0); - this.c1 = math.select(new float2(0.0f), new float2(1.0f), v.c1); - this.c2 = math.select(new float2(0.0f), new float2(1.0f), v.c2); - } - - /// Constructs a float2x3 matrix from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x3(int v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a float2x3 matrix from a int2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x3(int2x3 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - } - - /// Constructs a float2x3 matrix from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x3(uint v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a float2x3 matrix from a uint2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x3(uint2x3 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - } - - /// Constructs a float2x3 matrix from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x3(double v) - { - this.c0 = (float2)v; - this.c1 = (float2)v; - this.c2 = (float2)v; - } - - /// Constructs a float2x3 matrix from a double2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x3(double2x3 v) - { - this.c0 = (float2)v.c0; - this.c1 = (float2)v.c1; - this.c2 = (float2)v.c2; - } - - - /// Implicitly converts a single float value to a float2x3 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2x3(float v) { return new float2x3(v); } - - /// Explicitly converts a single bool value to a float2x3 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float2x3(bool v) { return new float2x3(v); } - - /// Explicitly converts a bool2x3 matrix to a float2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float2x3(bool2x3 v) { return new float2x3(v); } - - /// Implicitly converts a single int value to a float2x3 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2x3(int v) { return new float2x3(v); } - - /// Implicitly converts a int2x3 matrix to a float2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2x3(int2x3 v) { return new float2x3(v); } - - /// Implicitly converts a single uint value to a float2x3 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2x3(uint v) { return new float2x3(v); } - - /// Implicitly converts a uint2x3 matrix to a float2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2x3(uint2x3 v) { return new float2x3(v); } - - /// Explicitly converts a single double value to a float2x3 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float2x3(double v) { return new float2x3(v); } - - /// Explicitly converts a double2x3 matrix to a float2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float2x3(double2x3 v) { return new float2x3(v); } - - - /// Returns the result of a componentwise multiplication operation on two float2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 operator * (float2x3 lhs, float2x3 rhs) { return new float2x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } - - /// Returns the result of a componentwise multiplication operation on a float2x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 operator * (float2x3 lhs, float rhs) { return new float2x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a float value and a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 operator * (float lhs, float2x3 rhs) { return new float2x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } - - - /// Returns the result of a componentwise addition operation on two float2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 operator + (float2x3 lhs, float2x3 rhs) { return new float2x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } - - /// Returns the result of a componentwise addition operation on a float2x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 operator + (float2x3 lhs, float rhs) { return new float2x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } - - /// Returns the result of a componentwise addition operation on a float value and a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 operator + (float lhs, float2x3 rhs) { return new float2x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } - - - /// Returns the result of a componentwise subtraction operation on two float2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 operator - (float2x3 lhs, float2x3 rhs) { return new float2x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } - - /// Returns the result of a componentwise subtraction operation on a float2x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 operator - (float2x3 lhs, float rhs) { return new float2x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a float value and a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 operator - (float lhs, float2x3 rhs) { return new float2x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } - - - /// Returns the result of a componentwise division operation on two float2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 operator / (float2x3 lhs, float2x3 rhs) { return new float2x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } - - /// Returns the result of a componentwise division operation on a float2x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 operator / (float2x3 lhs, float rhs) { return new float2x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } - - /// Returns the result of a componentwise division operation on a float value and a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 operator / (float lhs, float2x3 rhs) { return new float2x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } - - - /// Returns the result of a componentwise modulus operation on two float2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 operator % (float2x3 lhs, float2x3 rhs) { return new float2x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } - - /// Returns the result of a componentwise modulus operation on a float2x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 operator % (float2x3 lhs, float rhs) { return new float2x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } - - /// Returns the result of a componentwise modulus operation on a float value and a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 operator % (float lhs, float2x3 rhs) { return new float2x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } - - - /// Returns the result of a componentwise increment operation on a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 operator ++ (float2x3 val) { return new float2x3 (++val.c0, ++val.c1, ++val.c2); } - - - /// Returns the result of a componentwise decrement operation on a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 operator -- (float2x3 val) { return new float2x3 (--val.c0, --val.c1, --val.c2); } - - - /// Returns the result of a componentwise less than operation on two float2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator < (float2x3 lhs, float2x3 rhs) { return new bool2x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } - - /// Returns the result of a componentwise less than operation on a float2x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator < (float2x3 lhs, float rhs) { return new bool2x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } - - /// Returns the result of a componentwise less than operation on a float value and a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator < (float lhs, float2x3 rhs) { return new bool2x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } - - - /// Returns the result of a componentwise less or equal operation on two float2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator <= (float2x3 lhs, float2x3 rhs) { return new bool2x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } - - /// Returns the result of a componentwise less or equal operation on a float2x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator <= (float2x3 lhs, float rhs) { return new bool2x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a float value and a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator <= (float lhs, float2x3 rhs) { return new bool2x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } - - - /// Returns the result of a componentwise greater than operation on two float2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator > (float2x3 lhs, float2x3 rhs) { return new bool2x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } - - /// Returns the result of a componentwise greater than operation on a float2x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator > (float2x3 lhs, float rhs) { return new bool2x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } - - /// Returns the result of a componentwise greater than operation on a float value and a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator > (float lhs, float2x3 rhs) { return new bool2x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } - - - /// Returns the result of a componentwise greater or equal operation on two float2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator >= (float2x3 lhs, float2x3 rhs) { return new bool2x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } - - /// Returns the result of a componentwise greater or equal operation on a float2x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator >= (float2x3 lhs, float rhs) { return new bool2x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a float value and a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator >= (float lhs, float2x3 rhs) { return new bool2x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } - - - /// Returns the result of a componentwise unary minus operation on a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 operator - (float2x3 val) { return new float2x3 (-val.c0, -val.c1, -val.c2); } - - - /// Returns the result of a componentwise unary plus operation on a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 operator + (float2x3 val) { return new float2x3 (+val.c0, +val.c1, +val.c2); } - - - /// Returns the result of a componentwise equality operation on two float2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator == (float2x3 lhs, float2x3 rhs) { return new bool2x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } - - /// Returns the result of a componentwise equality operation on a float2x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator == (float2x3 lhs, float rhs) { return new bool2x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } - - /// Returns the result of a componentwise equality operation on a float value and a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator == (float lhs, float2x3 rhs) { return new bool2x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } - - - /// Returns the result of a componentwise not equal operation on two float2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator != (float2x3 lhs, float2x3 rhs) { return new bool2x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } - - /// Returns the result of a componentwise not equal operation on a float2x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator != (float2x3 lhs, float rhs) { return new bool2x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } - - /// Returns the result of a componentwise not equal operation on a float value and a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator != (float lhs, float2x3 rhs) { return new bool2x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } - - - - /// Returns the float2 element at a specified index. - unsafe public ref float2 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (float2x3* array = &this) { return ref ((float2*)array)[index]; } - } - } - - /// Returns true if the float2x3 is equal to a given float2x3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(float2x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } - - /// Returns true if the float2x3 is equal to a given float2x3, false otherwise. - public override bool Equals(object o) { return Equals((float2x3)o); } - - - /// Returns a hash code for the float2x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the float2x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("float2x3({0}f, {1}f, {2}f, {3}f, {4}f, {5}f)", c0.x, c1.x, c2.x, c0.y, c1.y, c2.y); - } - - /// Returns a string representation of the float2x3 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("float2x3({0}f, {1}f, {2}f, {3}f, {4}f, {5}f)", 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)); - } - - } - - public static partial class math - { - /// Returns a float2x3 matrix constructed from three float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 float2x3(float2 c0, float2 c1, float2 c2) { return new float2x3(c0, c1, c2); } - - /// Returns a float2x3 matrix constructed from from 6 float values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 float2x3(float m00, float m01, float m02, - float m10, float m11, float m12) - { - return new float2x3(m00, m01, m02, - m10, m11, m12); - } - - /// Returns a float2x3 matrix constructed from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 float2x3(float v) { return new float2x3(v); } - - /// Returns a float2x3 matrix constructed from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 float2x3(bool v) { return new float2x3(v); } - - /// Return a float2x3 matrix constructed from a bool2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 float2x3(bool2x3 v) { return new float2x3(v); } - - /// Returns a float2x3 matrix constructed from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 float2x3(int v) { return new float2x3(v); } - - /// Return a float2x3 matrix constructed from a int2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 float2x3(int2x3 v) { return new float2x3(v); } - - /// Returns a float2x3 matrix constructed from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 float2x3(uint v) { return new float2x3(v); } - - /// Return a float2x3 matrix constructed from a uint2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 float2x3(uint2x3 v) { return new float2x3(v); } - - /// Returns a float2x3 matrix constructed from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 float2x3(double v) { return new float2x3(v); } - - /// Return a float2x3 matrix constructed from a double2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 float2x3(double2x3 v) { return new float2x3(v); } - - /// Return the float3x2 transpose of a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 transpose(float2x3 v) - { - return float3x2( - v.c0.x, v.c0.y, - v.c1.x, v.c1.y, - v.c2.x, v.c2.y); - } - - /// Returns a uint hash code of a float2x3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(float2x3 v) - { - return csum(asuint(v.c0) * uint2(0xE857DCE1u, 0xF62213C5u) + - asuint(v.c1) * uint2(0x9CDAA959u, 0xAA269ABFu) + - asuint(v.c2) * uint2(0xD54BA36Fu, 0xFD0847B9u)) + 0x8189A683u; - } - - /// - /// Returns a uint2 vector hash code of a float2x3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(float2x3 v) - { - return (asuint(v.c0) * uint2(0xB139D651u, 0xE7579997u) + - asuint(v.c1) * uint2(0xEF7D56C7u, 0x66F38F0Bu) + - asuint(v.c2) * uint2(0x624256A3u, 0x5292ADE1u)) + 0xD2E590E5u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/float2x4.gen.cs b/Economy.Shared/Unity.Mathematics/float2x4.gen.cs deleted file mode 100644 index 5e668893e..000000000 --- a/Economy.Shared/Unity.Mathematics/float2x4.gen.cs +++ /dev/null @@ -1,469 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct float2x4 : System.IEquatable, IFormattable - { - public float2 c0; - public float2 c1; - public float2 c2; - public float2 c3; - - /// float2x4 zero value. - public static readonly float2x4 zero; - - /// Constructs a float2x4 matrix from four float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x4(float2 c0, float2 c1, float2 c2, float2 c3) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - this.c3 = c3; - } - - /// Constructs a float2x4 matrix from 8 float values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x4(float m00, float m01, float m02, float m03, - float m10, float m11, float m12, float m13) - { - this.c0 = new float2(m00, m10); - this.c1 = new float2(m01, m11); - this.c2 = new float2(m02, m12); - this.c3 = new float2(m03, m13); - } - - /// Constructs a float2x4 matrix from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x4(float v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a float2x4 matrix from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x4(bool v) - { - this.c0 = math.select(new float2(0.0f), new float2(1.0f), v); - this.c1 = math.select(new float2(0.0f), new float2(1.0f), v); - this.c2 = math.select(new float2(0.0f), new float2(1.0f), v); - this.c3 = math.select(new float2(0.0f), new float2(1.0f), v); - } - - /// Constructs a float2x4 matrix from a bool2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x4(bool2x4 v) - { - this.c0 = math.select(new float2(0.0f), new float2(1.0f), v.c0); - this.c1 = math.select(new float2(0.0f), new float2(1.0f), v.c1); - this.c2 = math.select(new float2(0.0f), new float2(1.0f), v.c2); - this.c3 = math.select(new float2(0.0f), new float2(1.0f), v.c3); - } - - /// Constructs a float2x4 matrix from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x4(int v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a float2x4 matrix from a int2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x4(int2x4 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - this.c3 = v.c3; - } - - /// Constructs a float2x4 matrix from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x4(uint v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a float2x4 matrix from a uint2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x4(uint2x4 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - this.c3 = v.c3; - } - - /// Constructs a float2x4 matrix from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x4(double v) - { - this.c0 = (float2)v; - this.c1 = (float2)v; - this.c2 = (float2)v; - this.c3 = (float2)v; - } - - /// Constructs a float2x4 matrix from a double2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2x4(double2x4 v) - { - this.c0 = (float2)v.c0; - this.c1 = (float2)v.c1; - this.c2 = (float2)v.c2; - this.c3 = (float2)v.c3; - } - - - /// Implicitly converts a single float value to a float2x4 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2x4(float v) { return new float2x4(v); } - - /// Explicitly converts a single bool value to a float2x4 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float2x4(bool v) { return new float2x4(v); } - - /// Explicitly converts a bool2x4 matrix to a float2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float2x4(bool2x4 v) { return new float2x4(v); } - - /// Implicitly converts a single int value to a float2x4 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2x4(int v) { return new float2x4(v); } - - /// Implicitly converts a int2x4 matrix to a float2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2x4(int2x4 v) { return new float2x4(v); } - - /// Implicitly converts a single uint value to a float2x4 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2x4(uint v) { return new float2x4(v); } - - /// Implicitly converts a uint2x4 matrix to a float2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float2x4(uint2x4 v) { return new float2x4(v); } - - /// Explicitly converts a single double value to a float2x4 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float2x4(double v) { return new float2x4(v); } - - /// Explicitly converts a double2x4 matrix to a float2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float2x4(double2x4 v) { return new float2x4(v); } - - - /// Returns the result of a componentwise multiplication operation on two float2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 operator * (float2x4 lhs, float2x4 rhs) { return new float2x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } - - /// Returns the result of a componentwise multiplication operation on a float2x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 operator * (float2x4 lhs, float rhs) { return new float2x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a float value and a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 operator * (float lhs, float2x4 rhs) { return new float2x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } - - - /// Returns the result of a componentwise addition operation on two float2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 operator + (float2x4 lhs, float2x4 rhs) { return new float2x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } - - /// Returns the result of a componentwise addition operation on a float2x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 operator + (float2x4 lhs, float rhs) { return new float2x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } - - /// Returns the result of a componentwise addition operation on a float value and a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 operator + (float lhs, float2x4 rhs) { return new float2x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } - - - /// Returns the result of a componentwise subtraction operation on two float2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 operator - (float2x4 lhs, float2x4 rhs) { return new float2x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } - - /// Returns the result of a componentwise subtraction operation on a float2x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 operator - (float2x4 lhs, float rhs) { return new float2x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a float value and a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 operator - (float lhs, float2x4 rhs) { return new float2x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } - - - /// Returns the result of a componentwise division operation on two float2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 operator / (float2x4 lhs, float2x4 rhs) { return new float2x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } - - /// Returns the result of a componentwise division operation on a float2x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 operator / (float2x4 lhs, float rhs) { return new float2x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } - - /// Returns the result of a componentwise division operation on a float value and a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 operator / (float lhs, float2x4 rhs) { return new float2x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } - - - /// Returns the result of a componentwise modulus operation on two float2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 operator % (float2x4 lhs, float2x4 rhs) { return new float2x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } - - /// Returns the result of a componentwise modulus operation on a float2x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 operator % (float2x4 lhs, float rhs) { return new float2x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } - - /// Returns the result of a componentwise modulus operation on a float value and a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 operator % (float lhs, float2x4 rhs) { return new float2x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } - - - /// Returns the result of a componentwise increment operation on a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 operator ++ (float2x4 val) { return new float2x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } - - - /// Returns the result of a componentwise decrement operation on a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 operator -- (float2x4 val) { return new float2x4 (--val.c0, --val.c1, --val.c2, --val.c3); } - - - /// Returns the result of a componentwise less than operation on two float2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator < (float2x4 lhs, float2x4 rhs) { return new bool2x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } - - /// Returns the result of a componentwise less than operation on a float2x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator < (float2x4 lhs, float rhs) { return new bool2x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } - - /// Returns the result of a componentwise less than operation on a float value and a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator < (float lhs, float2x4 rhs) { return new bool2x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } - - - /// Returns the result of a componentwise less or equal operation on two float2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator <= (float2x4 lhs, float2x4 rhs) { return new bool2x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } - - /// Returns the result of a componentwise less or equal operation on a float2x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator <= (float2x4 lhs, float rhs) { return new bool2x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a float value and a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator <= (float lhs, float2x4 rhs) { return new bool2x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } - - - /// Returns the result of a componentwise greater than operation on two float2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator > (float2x4 lhs, float2x4 rhs) { return new bool2x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } - - /// Returns the result of a componentwise greater than operation on a float2x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator > (float2x4 lhs, float rhs) { return new bool2x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } - - /// Returns the result of a componentwise greater than operation on a float value and a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator > (float lhs, float2x4 rhs) { return new bool2x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } - - - /// Returns the result of a componentwise greater or equal operation on two float2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator >= (float2x4 lhs, float2x4 rhs) { return new bool2x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } - - /// Returns the result of a componentwise greater or equal operation on a float2x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator >= (float2x4 lhs, float rhs) { return new bool2x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a float value and a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator >= (float lhs, float2x4 rhs) { return new bool2x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } - - - /// Returns the result of a componentwise unary minus operation on a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 operator - (float2x4 val) { return new float2x4 (-val.c0, -val.c1, -val.c2, -val.c3); } - - - /// Returns the result of a componentwise unary plus operation on a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 operator + (float2x4 val) { return new float2x4 (+val.c0, +val.c1, +val.c2, +val.c3); } - - - /// Returns the result of a componentwise equality operation on two float2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator == (float2x4 lhs, float2x4 rhs) { return new bool2x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } - - /// Returns the result of a componentwise equality operation on a float2x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator == (float2x4 lhs, float rhs) { return new bool2x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } - - /// Returns the result of a componentwise equality operation on a float value and a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator == (float lhs, float2x4 rhs) { return new bool2x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } - - - /// Returns the result of a componentwise not equal operation on two float2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator != (float2x4 lhs, float2x4 rhs) { return new bool2x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } - - /// Returns the result of a componentwise not equal operation on a float2x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator != (float2x4 lhs, float rhs) { return new bool2x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } - - /// Returns the result of a componentwise not equal operation on a float value and a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator != (float lhs, float2x4 rhs) { return new bool2x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } - - - - /// Returns the float2 element at a specified index. - unsafe public ref float2 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (float2x4* array = &this) { return ref ((float2*)array)[index]; } - } - } - - /// Returns true if the float2x4 is equal to a given float2x4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(float2x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } - - /// Returns true if the float2x4 is equal to a given float2x4, false otherwise. - public override bool Equals(object o) { return Equals((float2x4)o); } - - - /// Returns a hash code for the float2x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the float2x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("float2x4({0}f, {1}f, {2}f, {3}f, {4}f, {5}f, {6}f, {7}f)", c0.x, c1.x, c2.x, c3.x, c0.y, c1.y, c2.y, c3.y); - } - - /// Returns a string representation of the float2x4 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("float2x4({0}f, {1}f, {2}f, {3}f, {4}f, {5}f, {6}f, {7}f)", 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)); - } - - } - - public static partial class math - { - /// Returns a float2x4 matrix constructed from four float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 float2x4(float2 c0, float2 c1, float2 c2, float2 c3) { return new float2x4(c0, c1, c2, c3); } - - /// Returns a float2x4 matrix constructed from from 8 float values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 float2x4(float m00, float m01, float m02, float m03, - float m10, float m11, float m12, float m13) - { - return new float2x4(m00, m01, m02, m03, - m10, m11, m12, m13); - } - - /// Returns a float2x4 matrix constructed from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 float2x4(float v) { return new float2x4(v); } - - /// Returns a float2x4 matrix constructed from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 float2x4(bool v) { return new float2x4(v); } - - /// Return a float2x4 matrix constructed from a bool2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 float2x4(bool2x4 v) { return new float2x4(v); } - - /// Returns a float2x4 matrix constructed from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 float2x4(int v) { return new float2x4(v); } - - /// Return a float2x4 matrix constructed from a int2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 float2x4(int2x4 v) { return new float2x4(v); } - - /// Returns a float2x4 matrix constructed from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 float2x4(uint v) { return new float2x4(v); } - - /// Return a float2x4 matrix constructed from a uint2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 float2x4(uint2x4 v) { return new float2x4(v); } - - /// Returns a float2x4 matrix constructed from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 float2x4(double v) { return new float2x4(v); } - - /// Return a float2x4 matrix constructed from a double2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 float2x4(double2x4 v) { return new float2x4(v); } - - /// Return the float4x2 transpose of a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 transpose(float2x4 v) - { - return float4x2( - v.c0.x, v.c0.y, - v.c1.x, v.c1.y, - v.c2.x, v.c2.y, - v.c3.x, v.c3.y); - } - - /// Returns a uint hash code of a float2x4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(float2x4 v) - { - return csum(asuint(v.c0) * uint2(0xD35C9B2Du, 0xA10D9E27u) + - asuint(v.c1) * uint2(0x568DAAA9u, 0x7530254Fu) + - asuint(v.c2) * uint2(0x9F090439u, 0x5E9F85C9u) + - asuint(v.c3) * uint2(0x8C4CA03Fu, 0xB8D969EDu)) + 0xAC5DB57Bu; - } - - /// - /// Returns a uint2 vector hash code of a float2x4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(float2x4 v) - { - return (asuint(v.c0) * uint2(0xA91A02EDu, 0xB3C49313u) + - asuint(v.c1) * uint2(0xF43A9ABBu, 0x84E7E01Bu) + - asuint(v.c2) * uint2(0x8E055BE5u, 0x6E624EB7u) + - asuint(v.c3) * uint2(0x7383ED49u, 0xDD49C23Bu)) + 0xEBD0D005u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/float3.gen.cs b/Economy.Shared/Unity.Mathematics/float3.gen.cs deleted file mode 100644 index b03206b34..000000000 --- a/Economy.Shared/Unity.Mathematics/float3.gen.cs +++ /dev/null @@ -1,1538 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; -using System.Diagnostics; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [DebuggerTypeProxy(typeof(float3.DebuggerProxy))] - [System.Serializable] - public partial struct float3 : System.IEquatable, IFormattable - { - public float x; - public float y; - public float z; - - /// float3 zero value. - public static readonly float3 zero; - - /// Constructs a float3 vector from three float values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(float x, float y, float z) - { - this.x = x; - this.y = y; - this.z = z; - } - - /// Constructs a float3 vector from a float value and a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(float x, float2 yz) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - } - - /// Constructs a float3 vector from a float2 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(float2 xy, float z) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - } - - /// Constructs a float3 vector from a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(float3 xyz) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - } - - /// Constructs a float3 vector from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(float v) - { - this.x = v; - this.y = v; - this.z = v; - } - - /// Constructs a float3 vector from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(bool v) - { - this.x = v ? 1.0f : 0.0f; - this.y = v ? 1.0f : 0.0f; - this.z = v ? 1.0f : 0.0f; - } - - /// Constructs a float3 vector from a bool3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(bool3 v) - { - this.x = v.x ? 1.0f : 0.0f; - this.y = v.y ? 1.0f : 0.0f; - this.z = v.z ? 1.0f : 0.0f; - } - - /// Constructs a float3 vector from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(int v) - { - this.x = v; - this.y = v; - this.z = v; - } - - /// Constructs a float3 vector from a int3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(int3 v) - { - this.x = v.x; - this.y = v.y; - this.z = v.z; - } - - /// Constructs a float3 vector from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(uint v) - { - this.x = v; - this.y = v; - this.z = v; - } - - /// Constructs a float3 vector from a uint3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(uint3 v) - { - this.x = v.x; - this.y = v.y; - this.z = v.z; - } - - /// Constructs a float3 vector from a single half value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(half v) - { - this.x = v; - this.y = v; - this.z = v; - } - - /// Constructs a float3 vector from a half3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(half3 v) - { - this.x = v.x; - this.y = v.y; - this.z = v.z; - } - - /// Constructs a float3 vector from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(double v) - { - this.x = (float)v; - this.y = (float)v; - this.z = (float)v; - } - - /// Constructs a float3 vector from a double3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(double3 v) - { - this.x = (float)v.x; - this.y = (float)v.y; - this.z = (float)v.z; - } - - - /// Implicitly converts a single float value to a float3 vector by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3(float v) { return new float3(v); } - - /// Explicitly converts a single bool value to a float3 vector by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float3(bool v) { return new float3(v); } - - /// Explicitly converts a bool3 vector to a float3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float3(bool3 v) { return new float3(v); } - - /// Implicitly converts a single int value to a float3 vector by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3(int v) { return new float3(v); } - - /// Implicitly converts a int3 vector to a float3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3(int3 v) { return new float3(v); } - - /// Implicitly converts a single uint value to a float3 vector by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3(uint v) { return new float3(v); } - - /// Implicitly converts a uint3 vector to a float3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3(uint3 v) { return new float3(v); } - - /// Implicitly converts a single half value to a float3 vector by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3(half v) { return new float3(v); } - - /// Implicitly converts a half3 vector to a float3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3(half3 v) { return new float3(v); } - - /// Explicitly converts a single double value to a float3 vector by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float3(double v) { return new float3(v); } - - /// Explicitly converts a double3 vector to a float3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float3(double3 v) { return new float3(v); } - - - /// Returns the result of a componentwise multiplication operation on two float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator * (float3 lhs, float3 rhs) { return new float3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } - - /// Returns the result of a componentwise multiplication operation on a float3 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator * (float3 lhs, float rhs) { return new float3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } - - /// Returns the result of a componentwise multiplication operation on a float value and a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator * (float lhs, float3 rhs) { return new float3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } - - - /// Returns the result of a componentwise addition operation on two float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator + (float3 lhs, float3 rhs) { return new float3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } - - /// Returns the result of a componentwise addition operation on a float3 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator + (float3 lhs, float rhs) { return new float3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } - - /// Returns the result of a componentwise addition operation on a float value and a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator + (float lhs, float3 rhs) { return new float3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } - - - /// Returns the result of a componentwise subtraction operation on two float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator - (float3 lhs, float3 rhs) { return new float3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } - - /// Returns the result of a componentwise subtraction operation on a float3 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator - (float3 lhs, float rhs) { return new float3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } - - /// Returns the result of a componentwise subtraction operation on a float value and a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator - (float lhs, float3 rhs) { return new float3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } - - - /// Returns the result of a componentwise division operation on two float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator / (float3 lhs, float3 rhs) { return new float3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } - - /// Returns the result of a componentwise division operation on a float3 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator / (float3 lhs, float rhs) { return new float3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } - - /// Returns the result of a componentwise division operation on a float value and a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator / (float lhs, float3 rhs) { return new float3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } - - - /// Returns the result of a componentwise modulus operation on two float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator % (float3 lhs, float3 rhs) { return new float3 (lhs.x % rhs.x, lhs.y % rhs.y, lhs.z % rhs.z); } - - /// Returns the result of a componentwise modulus operation on a float3 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator % (float3 lhs, float rhs) { return new float3 (lhs.x % rhs, lhs.y % rhs, lhs.z % rhs); } - - /// Returns the result of a componentwise modulus operation on a float value and a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator % (float lhs, float3 rhs) { return new float3 (lhs % rhs.x, lhs % rhs.y, lhs % rhs.z); } - - - /// Returns the result of a componentwise increment operation on a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator ++ (float3 val) { return new float3 (++val.x, ++val.y, ++val.z); } - - - /// Returns the result of a componentwise decrement operation on a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator -- (float3 val) { return new float3 (--val.x, --val.y, --val.z); } - - - /// Returns the result of a componentwise less than operation on two float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (float3 lhs, float3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } - - /// Returns the result of a componentwise less than operation on a float3 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (float3 lhs, float rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } - - /// Returns the result of a componentwise less than operation on a float value and a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (float lhs, float3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } - - - /// Returns the result of a componentwise less or equal operation on two float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (float3 lhs, float3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } - - /// Returns the result of a componentwise less or equal operation on a float3 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (float3 lhs, float rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a float value and a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (float lhs, float3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } - - - /// Returns the result of a componentwise greater than operation on two float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (float3 lhs, float3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } - - /// Returns the result of a componentwise greater than operation on a float3 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (float3 lhs, float rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } - - /// Returns the result of a componentwise greater than operation on a float value and a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (float lhs, float3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } - - - /// Returns the result of a componentwise greater or equal operation on two float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (float3 lhs, float3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } - - /// Returns the result of a componentwise greater or equal operation on a float3 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (float3 lhs, float rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a float value and a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (float lhs, float3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } - - - /// Returns the result of a componentwise unary minus operation on a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator - (float3 val) { return new float3 (-val.x, -val.y, -val.z); } - - - /// Returns the result of a componentwise unary plus operation on a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator + (float3 val) { return new float3 (+val.x, +val.y, +val.z); } - - - /// Returns the result of a componentwise equality operation on two float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (float3 lhs, float3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } - - /// Returns the result of a componentwise equality operation on a float3 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (float3 lhs, float rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } - - /// Returns the result of a componentwise equality operation on a float value and a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (float lhs, float3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } - - - /// Returns the result of a componentwise not equal operation on two float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (float3 lhs, float3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } - - /// Returns the result of a componentwise not equal operation on a float3 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (float3 lhs, float rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } - - /// Returns the result of a componentwise not equal operation on a float value and a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (float lhs, float3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } - - - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(z, z); } - } - - - - /// Returns the float element at a specified index. - unsafe public float this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (float3* array = &this) { return ((float*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (float* array = &x) { array[index] = value; } - } - } - - /// Returns true if the float3 is equal to a given float3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(float3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } - - /// Returns true if the float3 is equal to a given float3, false otherwise. - public override bool Equals(object o) { return Equals((float3)o); } - - - /// Returns a hash code for the float3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the float3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("float3({0}f, {1}f, {2}f)", x, y, z); - } - - /// Returns a string representation of the float3 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("float3({0}f, {1}f, {2}f)", x.ToString(format, formatProvider), y.ToString(format, formatProvider), z.ToString(format, formatProvider)); - } - - internal sealed class DebuggerProxy - { - public float x; - public float y; - public float z; - public DebuggerProxy(float3 v) - { - x = v.x; - y = v.y; - z = v.z; - } - } - - } - - public static partial class math - { - /// Returns a float3 vector constructed from three float values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(float x, float y, float z) { return new float3(x, y, z); } - - /// Returns a float3 vector constructed from a float value and a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(float x, float2 yz) { return new float3(x, yz); } - - /// Returns a float3 vector constructed from a float2 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(float2 xy, float z) { return new float3(xy, z); } - - /// Returns a float3 vector constructed from a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(float3 xyz) { return new float3(xyz); } - - /// Returns a float3 vector constructed from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(float v) { return new float3(v); } - - /// Returns a float3 vector constructed from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(bool v) { return new float3(v); } - - /// Return a float3 vector constructed from a bool3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(bool3 v) { return new float3(v); } - - /// Returns a float3 vector constructed from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(int v) { return new float3(v); } - - /// Return a float3 vector constructed from a int3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(int3 v) { return new float3(v); } - - /// Returns a float3 vector constructed from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(uint v) { return new float3(v); } - - /// Return a float3 vector constructed from a uint3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(uint3 v) { return new float3(v); } - - /// Returns a float3 vector constructed from a single half value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(half v) { return new float3(v); } - - /// Return a float3 vector constructed from a half3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(half3 v) { return new float3(v); } - - /// Returns a float3 vector constructed from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(double v) { return new float3(v); } - - /// Return a float3 vector constructed from a double3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(double3 v) { return new float3(v); } - - /// Returns a uint hash code of a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(float3 v) - { - return csum(asuint(v) * uint3(0x9B13B92Du, 0x4ABF0813u, 0x86068063u)) + 0xD75513F9u; - } - - /// - /// Returns a uint3 vector hash code of a float3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(float3 v) - { - return (asuint(v) * uint3(0x5AB3E8CDu, 0x676E8407u, 0xB36DE767u)) + 0x6FCA387Du; - } - - /// Returns the result of specified shuffling of the components from two float3 vectors into a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float shuffle(float3 a, float3 b, ShuffleComponent x) - { - return select_shuffle_component(a, b, x); - } - - /// Returns the result of specified shuffling of the components from two float3 vectors into a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 shuffle(float3 a, float3 b, ShuffleComponent x, ShuffleComponent y) - { - return float2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); - } - - /// Returns the result of specified shuffling of the components from two float3 vectors into a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 shuffle(float3 a, float3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) - { - return float3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); - } - - /// Returns the result of specified shuffling of the components from two float3 vectors into a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 shuffle(float3 a, float3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) - { - return float4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float select_shuffle_component(float3 a, float3 b, ShuffleComponent component) - { - switch(component) - { - case ShuffleComponent.LeftX: - return a.x; - case ShuffleComponent.LeftY: - return a.y; - case ShuffleComponent.LeftZ: - return a.z; - case ShuffleComponent.RightX: - return b.x; - case ShuffleComponent.RightY: - return b.y; - case ShuffleComponent.RightZ: - return b.z; - default: - throw new System.ArgumentException("Invalid shuffle component: " + component); - } - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/float3x2.gen.cs b/Economy.Shared/Unity.Mathematics/float3x2.gen.cs deleted file mode 100644 index 793efb936..000000000 --- a/Economy.Shared/Unity.Mathematics/float3x2.gen.cs +++ /dev/null @@ -1,442 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct float3x2 : System.IEquatable, IFormattable - { - public float3 c0; - public float3 c1; - - /// float3x2 zero value. - public static readonly float3x2 zero; - - /// Constructs a float3x2 matrix from two float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x2(float3 c0, float3 c1) - { - this.c0 = c0; - this.c1 = c1; - } - - /// Constructs a float3x2 matrix from 6 float values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x2(float m00, float m01, - float m10, float m11, - float m20, float m21) - { - this.c0 = new float3(m00, m10, m20); - this.c1 = new float3(m01, m11, m21); - } - - /// Constructs a float3x2 matrix from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x2(float v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a float3x2 matrix from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x2(bool v) - { - this.c0 = math.select(new float3(0.0f), new float3(1.0f), v); - this.c1 = math.select(new float3(0.0f), new float3(1.0f), v); - } - - /// Constructs a float3x2 matrix from a bool3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x2(bool3x2 v) - { - this.c0 = math.select(new float3(0.0f), new float3(1.0f), v.c0); - this.c1 = math.select(new float3(0.0f), new float3(1.0f), v.c1); - } - - /// Constructs a float3x2 matrix from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x2(int v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a float3x2 matrix from a int3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x2(int3x2 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - } - - /// Constructs a float3x2 matrix from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x2(uint v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a float3x2 matrix from a uint3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x2(uint3x2 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - } - - /// Constructs a float3x2 matrix from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x2(double v) - { - this.c0 = (float3)v; - this.c1 = (float3)v; - } - - /// Constructs a float3x2 matrix from a double3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x2(double3x2 v) - { - this.c0 = (float3)v.c0; - this.c1 = (float3)v.c1; - } - - - /// Implicitly converts a single float value to a float3x2 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3x2(float v) { return new float3x2(v); } - - /// Explicitly converts a single bool value to a float3x2 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float3x2(bool v) { return new float3x2(v); } - - /// Explicitly converts a bool3x2 matrix to a float3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float3x2(bool3x2 v) { return new float3x2(v); } - - /// Implicitly converts a single int value to a float3x2 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3x2(int v) { return new float3x2(v); } - - /// Implicitly converts a int3x2 matrix to a float3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3x2(int3x2 v) { return new float3x2(v); } - - /// Implicitly converts a single uint value to a float3x2 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3x2(uint v) { return new float3x2(v); } - - /// Implicitly converts a uint3x2 matrix to a float3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3x2(uint3x2 v) { return new float3x2(v); } - - /// Explicitly converts a single double value to a float3x2 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float3x2(double v) { return new float3x2(v); } - - /// Explicitly converts a double3x2 matrix to a float3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float3x2(double3x2 v) { return new float3x2(v); } - - - /// Returns the result of a componentwise multiplication operation on two float3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 operator * (float3x2 lhs, float3x2 rhs) { return new float3x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } - - /// Returns the result of a componentwise multiplication operation on a float3x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 operator * (float3x2 lhs, float rhs) { return new float3x2 (lhs.c0 * rhs, lhs.c1 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a float value and a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 operator * (float lhs, float3x2 rhs) { return new float3x2 (lhs * rhs.c0, lhs * rhs.c1); } - - - /// Returns the result of a componentwise addition operation on two float3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 operator + (float3x2 lhs, float3x2 rhs) { return new float3x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } - - /// Returns the result of a componentwise addition operation on a float3x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 operator + (float3x2 lhs, float rhs) { return new float3x2 (lhs.c0 + rhs, lhs.c1 + rhs); } - - /// Returns the result of a componentwise addition operation on a float value and a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 operator + (float lhs, float3x2 rhs) { return new float3x2 (lhs + rhs.c0, lhs + rhs.c1); } - - - /// Returns the result of a componentwise subtraction operation on two float3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 operator - (float3x2 lhs, float3x2 rhs) { return new float3x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } - - /// Returns the result of a componentwise subtraction operation on a float3x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 operator - (float3x2 lhs, float rhs) { return new float3x2 (lhs.c0 - rhs, lhs.c1 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a float value and a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 operator - (float lhs, float3x2 rhs) { return new float3x2 (lhs - rhs.c0, lhs - rhs.c1); } - - - /// Returns the result of a componentwise division operation on two float3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 operator / (float3x2 lhs, float3x2 rhs) { return new float3x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } - - /// Returns the result of a componentwise division operation on a float3x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 operator / (float3x2 lhs, float rhs) { return new float3x2 (lhs.c0 / rhs, lhs.c1 / rhs); } - - /// Returns the result of a componentwise division operation on a float value and a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 operator / (float lhs, float3x2 rhs) { return new float3x2 (lhs / rhs.c0, lhs / rhs.c1); } - - - /// Returns the result of a componentwise modulus operation on two float3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 operator % (float3x2 lhs, float3x2 rhs) { return new float3x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } - - /// Returns the result of a componentwise modulus operation on a float3x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 operator % (float3x2 lhs, float rhs) { return new float3x2 (lhs.c0 % rhs, lhs.c1 % rhs); } - - /// Returns the result of a componentwise modulus operation on a float value and a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 operator % (float lhs, float3x2 rhs) { return new float3x2 (lhs % rhs.c0, lhs % rhs.c1); } - - - /// Returns the result of a componentwise increment operation on a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 operator ++ (float3x2 val) { return new float3x2 (++val.c0, ++val.c1); } - - - /// Returns the result of a componentwise decrement operation on a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 operator -- (float3x2 val) { return new float3x2 (--val.c0, --val.c1); } - - - /// Returns the result of a componentwise less than operation on two float3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator < (float3x2 lhs, float3x2 rhs) { return new bool3x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } - - /// Returns the result of a componentwise less than operation on a float3x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator < (float3x2 lhs, float rhs) { return new bool3x2 (lhs.c0 < rhs, lhs.c1 < rhs); } - - /// Returns the result of a componentwise less than operation on a float value and a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator < (float lhs, float3x2 rhs) { return new bool3x2 (lhs < rhs.c0, lhs < rhs.c1); } - - - /// Returns the result of a componentwise less or equal operation on two float3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator <= (float3x2 lhs, float3x2 rhs) { return new bool3x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } - - /// Returns the result of a componentwise less or equal operation on a float3x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator <= (float3x2 lhs, float rhs) { return new bool3x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a float value and a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator <= (float lhs, float3x2 rhs) { return new bool3x2 (lhs <= rhs.c0, lhs <= rhs.c1); } - - - /// Returns the result of a componentwise greater than operation on two float3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator > (float3x2 lhs, float3x2 rhs) { return new bool3x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } - - /// Returns the result of a componentwise greater than operation on a float3x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator > (float3x2 lhs, float rhs) { return new bool3x2 (lhs.c0 > rhs, lhs.c1 > rhs); } - - /// Returns the result of a componentwise greater than operation on a float value and a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator > (float lhs, float3x2 rhs) { return new bool3x2 (lhs > rhs.c0, lhs > rhs.c1); } - - - /// Returns the result of a componentwise greater or equal operation on two float3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator >= (float3x2 lhs, float3x2 rhs) { return new bool3x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } - - /// Returns the result of a componentwise greater or equal operation on a float3x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator >= (float3x2 lhs, float rhs) { return new bool3x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a float value and a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator >= (float lhs, float3x2 rhs) { return new bool3x2 (lhs >= rhs.c0, lhs >= rhs.c1); } - - - /// Returns the result of a componentwise unary minus operation on a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 operator - (float3x2 val) { return new float3x2 (-val.c0, -val.c1); } - - - /// Returns the result of a componentwise unary plus operation on a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 operator + (float3x2 val) { return new float3x2 (+val.c0, +val.c1); } - - - /// Returns the result of a componentwise equality operation on two float3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator == (float3x2 lhs, float3x2 rhs) { return new bool3x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } - - /// Returns the result of a componentwise equality operation on a float3x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator == (float3x2 lhs, float rhs) { return new bool3x2 (lhs.c0 == rhs, lhs.c1 == rhs); } - - /// Returns the result of a componentwise equality operation on a float value and a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator == (float lhs, float3x2 rhs) { return new bool3x2 (lhs == rhs.c0, lhs == rhs.c1); } - - - /// Returns the result of a componentwise not equal operation on two float3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator != (float3x2 lhs, float3x2 rhs) { return new bool3x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } - - /// Returns the result of a componentwise not equal operation on a float3x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator != (float3x2 lhs, float rhs) { return new bool3x2 (lhs.c0 != rhs, lhs.c1 != rhs); } - - /// Returns the result of a componentwise not equal operation on a float value and a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator != (float lhs, float3x2 rhs) { return new bool3x2 (lhs != rhs.c0, lhs != rhs.c1); } - - - - /// Returns the float3 element at a specified index. - unsafe public ref float3 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (float3x2* array = &this) { return ref ((float3*)array)[index]; } - } - } - - /// Returns true if the float3x2 is equal to a given float3x2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(float3x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } - - /// Returns true if the float3x2 is equal to a given float3x2, false otherwise. - public override bool Equals(object o) { return Equals((float3x2)o); } - - - /// Returns a hash code for the float3x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the float3x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("float3x2({0}f, {1}f, {2}f, {3}f, {4}f, {5}f)", c0.x, c1.x, c0.y, c1.y, c0.z, c1.z); - } - - /// Returns a string representation of the float3x2 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("float3x2({0}f, {1}f, {2}f, {3}f, {4}f, {5}f)", 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)); - } - - } - - public static partial class math - { - /// Returns a float3x2 matrix constructed from two float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 float3x2(float3 c0, float3 c1) { return new float3x2(c0, c1); } - - /// Returns a float3x2 matrix constructed from from 6 float values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 float3x2(float m00, float m01, - float m10, float m11, - float m20, float m21) - { - return new float3x2(m00, m01, - m10, m11, - m20, m21); - } - - /// Returns a float3x2 matrix constructed from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 float3x2(float v) { return new float3x2(v); } - - /// Returns a float3x2 matrix constructed from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 float3x2(bool v) { return new float3x2(v); } - - /// Return a float3x2 matrix constructed from a bool3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 float3x2(bool3x2 v) { return new float3x2(v); } - - /// Returns a float3x2 matrix constructed from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 float3x2(int v) { return new float3x2(v); } - - /// Return a float3x2 matrix constructed from a int3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 float3x2(int3x2 v) { return new float3x2(v); } - - /// Returns a float3x2 matrix constructed from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 float3x2(uint v) { return new float3x2(v); } - - /// Return a float3x2 matrix constructed from a uint3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 float3x2(uint3x2 v) { return new float3x2(v); } - - /// Returns a float3x2 matrix constructed from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 float3x2(double v) { return new float3x2(v); } - - /// Return a float3x2 matrix constructed from a double3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 float3x2(double3x2 v) { return new float3x2(v); } - - /// Return the float2x3 transpose of a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 transpose(float3x2 v) - { - return float2x3( - v.c0.x, v.c0.y, v.c0.z, - v.c1.x, v.c1.y, v.c1.z); - } - - /// Returns a uint hash code of a float3x2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(float3x2 v) - { - return csum(asuint(v.c0) * uint3(0xE121E6ADu, 0xC9CA1249u, 0x69B60C81u) + - asuint(v.c1) * uint3(0xE0EB6C25u, 0xF648BEABu, 0x6BDB2B07u)) + 0xEF63C699u; - } - - /// - /// Returns a uint3 vector hash code of a float3x2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(float3x2 v) - { - return (asuint(v.c0) * uint3(0x9001903Fu, 0xA895B9CDu, 0x9D23B201u) + - asuint(v.c1) * uint3(0x4B01D3E1u, 0x7461CA0Du, 0x79725379u)) + 0xD6258E5Bu; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/float3x3.gen.cs b/Economy.Shared/Unity.Mathematics/float3x3.gen.cs deleted file mode 100644 index ba247e09e..000000000 --- a/Economy.Shared/Unity.Mathematics/float3x3.gen.cs +++ /dev/null @@ -1,494 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct float3x3 : System.IEquatable, IFormattable - { - public float3 c0; - public float3 c1; - public float3 c2; - - /// float3x3 identity transform. - public static readonly float3x3 identity = new float3x3(1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f); - - /// float3x3 zero value. - public static readonly float3x3 zero; - - /// Constructs a float3x3 matrix from three float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x3(float3 c0, float3 c1, float3 c2) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - } - - /// Constructs a float3x3 matrix from 9 float values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x3(float m00, float m01, float m02, - float m10, float m11, float m12, - float m20, float m21, float m22) - { - this.c0 = new float3(m00, m10, m20); - this.c1 = new float3(m01, m11, m21); - this.c2 = new float3(m02, m12, m22); - } - - /// Constructs a float3x3 matrix from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x3(float v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a float3x3 matrix from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x3(bool v) - { - this.c0 = math.select(new float3(0.0f), new float3(1.0f), v); - this.c1 = math.select(new float3(0.0f), new float3(1.0f), v); - this.c2 = math.select(new float3(0.0f), new float3(1.0f), v); - } - - /// Constructs a float3x3 matrix from a bool3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x3(bool3x3 v) - { - this.c0 = math.select(new float3(0.0f), new float3(1.0f), v.c0); - this.c1 = math.select(new float3(0.0f), new float3(1.0f), v.c1); - this.c2 = math.select(new float3(0.0f), new float3(1.0f), v.c2); - } - - /// Constructs a float3x3 matrix from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x3(int v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a float3x3 matrix from a int3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x3(int3x3 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - } - - /// Constructs a float3x3 matrix from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x3(uint v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a float3x3 matrix from a uint3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x3(uint3x3 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - } - - /// Constructs a float3x3 matrix from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x3(double v) - { - this.c0 = (float3)v; - this.c1 = (float3)v; - this.c2 = (float3)v; - } - - /// Constructs a float3x3 matrix from a double3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x3(double3x3 v) - { - this.c0 = (float3)v.c0; - this.c1 = (float3)v.c1; - this.c2 = (float3)v.c2; - } - - - /// Implicitly converts a single float value to a float3x3 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3x3(float v) { return new float3x3(v); } - - /// Explicitly converts a single bool value to a float3x3 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float3x3(bool v) { return new float3x3(v); } - - /// Explicitly converts a bool3x3 matrix to a float3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float3x3(bool3x3 v) { return new float3x3(v); } - - /// Implicitly converts a single int value to a float3x3 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3x3(int v) { return new float3x3(v); } - - /// Implicitly converts a int3x3 matrix to a float3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3x3(int3x3 v) { return new float3x3(v); } - - /// Implicitly converts a single uint value to a float3x3 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3x3(uint v) { return new float3x3(v); } - - /// Implicitly converts a uint3x3 matrix to a float3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3x3(uint3x3 v) { return new float3x3(v); } - - /// Explicitly converts a single double value to a float3x3 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float3x3(double v) { return new float3x3(v); } - - /// Explicitly converts a double3x3 matrix to a float3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float3x3(double3x3 v) { return new float3x3(v); } - - - /// Returns the result of a componentwise multiplication operation on two float3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 operator * (float3x3 lhs, float3x3 rhs) { return new float3x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } - - /// Returns the result of a componentwise multiplication operation on a float3x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 operator * (float3x3 lhs, float rhs) { return new float3x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a float value and a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 operator * (float lhs, float3x3 rhs) { return new float3x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } - - - /// Returns the result of a componentwise addition operation on two float3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 operator + (float3x3 lhs, float3x3 rhs) { return new float3x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } - - /// Returns the result of a componentwise addition operation on a float3x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 operator + (float3x3 lhs, float rhs) { return new float3x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } - - /// Returns the result of a componentwise addition operation on a float value and a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 operator + (float lhs, float3x3 rhs) { return new float3x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } - - - /// Returns the result of a componentwise subtraction operation on two float3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 operator - (float3x3 lhs, float3x3 rhs) { return new float3x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } - - /// Returns the result of a componentwise subtraction operation on a float3x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 operator - (float3x3 lhs, float rhs) { return new float3x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a float value and a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 operator - (float lhs, float3x3 rhs) { return new float3x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } - - - /// Returns the result of a componentwise division operation on two float3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 operator / (float3x3 lhs, float3x3 rhs) { return new float3x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } - - /// Returns the result of a componentwise division operation on a float3x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 operator / (float3x3 lhs, float rhs) { return new float3x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } - - /// Returns the result of a componentwise division operation on a float value and a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 operator / (float lhs, float3x3 rhs) { return new float3x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } - - - /// Returns the result of a componentwise modulus operation on two float3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 operator % (float3x3 lhs, float3x3 rhs) { return new float3x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } - - /// Returns the result of a componentwise modulus operation on a float3x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 operator % (float3x3 lhs, float rhs) { return new float3x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } - - /// Returns the result of a componentwise modulus operation on a float value and a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 operator % (float lhs, float3x3 rhs) { return new float3x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } - - - /// Returns the result of a componentwise increment operation on a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 operator ++ (float3x3 val) { return new float3x3 (++val.c0, ++val.c1, ++val.c2); } - - - /// Returns the result of a componentwise decrement operation on a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 operator -- (float3x3 val) { return new float3x3 (--val.c0, --val.c1, --val.c2); } - - - /// Returns the result of a componentwise less than operation on two float3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator < (float3x3 lhs, float3x3 rhs) { return new bool3x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } - - /// Returns the result of a componentwise less than operation on a float3x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator < (float3x3 lhs, float rhs) { return new bool3x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } - - /// Returns the result of a componentwise less than operation on a float value and a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator < (float lhs, float3x3 rhs) { return new bool3x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } - - - /// Returns the result of a componentwise less or equal operation on two float3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator <= (float3x3 lhs, float3x3 rhs) { return new bool3x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } - - /// Returns the result of a componentwise less or equal operation on a float3x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator <= (float3x3 lhs, float rhs) { return new bool3x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a float value and a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator <= (float lhs, float3x3 rhs) { return new bool3x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } - - - /// Returns the result of a componentwise greater than operation on two float3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator > (float3x3 lhs, float3x3 rhs) { return new bool3x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } - - /// Returns the result of a componentwise greater than operation on a float3x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator > (float3x3 lhs, float rhs) { return new bool3x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } - - /// Returns the result of a componentwise greater than operation on a float value and a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator > (float lhs, float3x3 rhs) { return new bool3x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } - - - /// Returns the result of a componentwise greater or equal operation on two float3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator >= (float3x3 lhs, float3x3 rhs) { return new bool3x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } - - /// Returns the result of a componentwise greater or equal operation on a float3x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator >= (float3x3 lhs, float rhs) { return new bool3x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a float value and a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator >= (float lhs, float3x3 rhs) { return new bool3x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } - - - /// Returns the result of a componentwise unary minus operation on a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 operator - (float3x3 val) { return new float3x3 (-val.c0, -val.c1, -val.c2); } - - - /// Returns the result of a componentwise unary plus operation on a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 operator + (float3x3 val) { return new float3x3 (+val.c0, +val.c1, +val.c2); } - - - /// Returns the result of a componentwise equality operation on two float3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator == (float3x3 lhs, float3x3 rhs) { return new bool3x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } - - /// Returns the result of a componentwise equality operation on a float3x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator == (float3x3 lhs, float rhs) { return new bool3x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } - - /// Returns the result of a componentwise equality operation on a float value and a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator == (float lhs, float3x3 rhs) { return new bool3x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } - - - /// Returns the result of a componentwise not equal operation on two float3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator != (float3x3 lhs, float3x3 rhs) { return new bool3x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } - - /// Returns the result of a componentwise not equal operation on a float3x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator != (float3x3 lhs, float rhs) { return new bool3x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } - - /// Returns the result of a componentwise not equal operation on a float value and a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator != (float lhs, float3x3 rhs) { return new bool3x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } - - - - /// Returns the float3 element at a specified index. - unsafe public ref float3 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (float3x3* array = &this) { return ref ((float3*)array)[index]; } - } - } - - /// Returns true if the float3x3 is equal to a given float3x3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(float3x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } - - /// Returns true if the float3x3 is equal to a given float3x3, false otherwise. - public override bool Equals(object o) { return Equals((float3x3)o); } - - - /// Returns a hash code for the float3x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the float3x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("float3x3({0}f, {1}f, {2}f, {3}f, {4}f, {5}f, {6}f, {7}f, {8}f)", c0.x, c1.x, c2.x, c0.y, c1.y, c2.y, c0.z, c1.z, c2.z); - } - - /// Returns a string representation of the float3x3 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("float3x3({0}f, {1}f, {2}f, {3}f, {4}f, {5}f, {6}f, {7}f, {8}f)", 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)); - } - - } - - public static partial class math - { - /// Returns a float3x3 matrix constructed from three float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 float3x3(float3 c0, float3 c1, float3 c2) { return new float3x3(c0, c1, c2); } - - /// Returns a float3x3 matrix constructed from from 9 float values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 float3x3(float m00, float m01, float m02, - float m10, float m11, float m12, - float m20, float m21, float m22) - { - return new float3x3(m00, m01, m02, - m10, m11, m12, - m20, m21, m22); - } - - /// Returns a float3x3 matrix constructed from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 float3x3(float v) { return new float3x3(v); } - - /// Returns a float3x3 matrix constructed from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 float3x3(bool v) { return new float3x3(v); } - - /// Return a float3x3 matrix constructed from a bool3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 float3x3(bool3x3 v) { return new float3x3(v); } - - /// Returns a float3x3 matrix constructed from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 float3x3(int v) { return new float3x3(v); } - - /// Return a float3x3 matrix constructed from a int3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 float3x3(int3x3 v) { return new float3x3(v); } - - /// Returns a float3x3 matrix constructed from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 float3x3(uint v) { return new float3x3(v); } - - /// Return a float3x3 matrix constructed from a uint3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 float3x3(uint3x3 v) { return new float3x3(v); } - - /// Returns a float3x3 matrix constructed from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 float3x3(double v) { return new float3x3(v); } - - /// Return a float3x3 matrix constructed from a double3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 float3x3(double3x3 v) { return new float3x3(v); } - - /// Return the float3x3 transpose of a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 transpose(float3x3 v) - { - return float3x3( - v.c0.x, v.c0.y, v.c0.z, - v.c1.x, v.c1.y, v.c1.z, - v.c2.x, v.c2.y, v.c2.z); - } - - /// Returns the float3x3 full inverse of a float3x3 matrix. - public static float3x3 inverse(float3x3 m) - { - float3 c0 = m.c0; - float3 c1 = m.c1; - float3 c2 = m.c2; - - float3 t0 = float3(c1.x, c2.x, c0.x); - float3 t1 = float3(c1.y, c2.y, c0.y); - float3 t2 = float3(c1.z, c2.z, c0.z); - - float3 m0 = t1 * t2.yzx - t1.yzx * t2; - float3 m1 = t0.yzx * t2 - t0 * t2.yzx; - float3 m2 = t0 * t1.yzx - t0.yzx * t1; - - float rcpDet = 1.0f / csum(t0.zxy * m0); - return float3x3(m0, m1, m2) * rcpDet; - } - - /// Returns the determinant of a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float determinant(float3x3 m) - { - float3 c0 = m.c0; - float3 c1 = m.c1; - float3 c2 = m.c2; - - float m00 = c1.y * c2.z - c1.z * c2.y; - float m01 = c0.y * c2.z - c0.z * c2.y; - float m02 = c0.y * c1.z - c0.z * c1.y; - - return c0.x * m00 - c1.x * m01 + c2.x * m02; - } - - /// Returns a uint hash code of a float3x3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(float3x3 v) - { - return csum(asuint(v.c0) * uint3(0x713BD06Fu, 0x753AD6ADu, 0xD19764C7u) + - asuint(v.c1) * uint3(0xB5D0BF63u, 0xF9102C5Fu, 0x9881FB9Fu) + - asuint(v.c2) * uint3(0x56A1530Du, 0x804B722Du, 0x738E50E5u)) + 0x4FC93C25u; - } - - /// - /// Returns a uint3 vector hash code of a float3x3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(float3x3 v) - { - return (asuint(v.c0) * uint3(0xCD0445A5u, 0xD2B90D9Bu, 0xD35C9B2Du) + - asuint(v.c1) * uint3(0xA10D9E27u, 0x568DAAA9u, 0x7530254Fu) + - asuint(v.c2) * uint3(0x9F090439u, 0x5E9F85C9u, 0x8C4CA03Fu)) + 0xB8D969EDu; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/float3x4.gen.cs b/Economy.Shared/Unity.Mathematics/float3x4.gen.cs deleted file mode 100644 index 607126362..000000000 --- a/Economy.Shared/Unity.Mathematics/float3x4.gen.cs +++ /dev/null @@ -1,489 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct float3x4 : System.IEquatable, IFormattable - { - public float3 c0; - public float3 c1; - public float3 c2; - public float3 c3; - - /// float3x4 zero value. - public static readonly float3x4 zero; - - /// Constructs a float3x4 matrix from four float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x4(float3 c0, float3 c1, float3 c2, float3 c3) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - this.c3 = c3; - } - - /// Constructs a float3x4 matrix from 12 float values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x4(float m00, float m01, float m02, float m03, - float m10, float m11, float m12, float m13, - float m20, float m21, float m22, float m23) - { - this.c0 = new float3(m00, m10, m20); - this.c1 = new float3(m01, m11, m21); - this.c2 = new float3(m02, m12, m22); - this.c3 = new float3(m03, m13, m23); - } - - /// Constructs a float3x4 matrix from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x4(float v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a float3x4 matrix from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x4(bool v) - { - this.c0 = math.select(new float3(0.0f), new float3(1.0f), v); - this.c1 = math.select(new float3(0.0f), new float3(1.0f), v); - this.c2 = math.select(new float3(0.0f), new float3(1.0f), v); - this.c3 = math.select(new float3(0.0f), new float3(1.0f), v); - } - - /// Constructs a float3x4 matrix from a bool3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x4(bool3x4 v) - { - this.c0 = math.select(new float3(0.0f), new float3(1.0f), v.c0); - this.c1 = math.select(new float3(0.0f), new float3(1.0f), v.c1); - this.c2 = math.select(new float3(0.0f), new float3(1.0f), v.c2); - this.c3 = math.select(new float3(0.0f), new float3(1.0f), v.c3); - } - - /// Constructs a float3x4 matrix from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x4(int v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a float3x4 matrix from a int3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x4(int3x4 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - this.c3 = v.c3; - } - - /// Constructs a float3x4 matrix from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x4(uint v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a float3x4 matrix from a uint3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x4(uint3x4 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - this.c3 = v.c3; - } - - /// Constructs a float3x4 matrix from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x4(double v) - { - this.c0 = (float3)v; - this.c1 = (float3)v; - this.c2 = (float3)v; - this.c3 = (float3)v; - } - - /// Constructs a float3x4 matrix from a double3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3x4(double3x4 v) - { - this.c0 = (float3)v.c0; - this.c1 = (float3)v.c1; - this.c2 = (float3)v.c2; - this.c3 = (float3)v.c3; - } - - - /// Implicitly converts a single float value to a float3x4 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3x4(float v) { return new float3x4(v); } - - /// Explicitly converts a single bool value to a float3x4 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float3x4(bool v) { return new float3x4(v); } - - /// Explicitly converts a bool3x4 matrix to a float3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float3x4(bool3x4 v) { return new float3x4(v); } - - /// Implicitly converts a single int value to a float3x4 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3x4(int v) { return new float3x4(v); } - - /// Implicitly converts a int3x4 matrix to a float3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3x4(int3x4 v) { return new float3x4(v); } - - /// Implicitly converts a single uint value to a float3x4 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3x4(uint v) { return new float3x4(v); } - - /// Implicitly converts a uint3x4 matrix to a float3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3x4(uint3x4 v) { return new float3x4(v); } - - /// Explicitly converts a single double value to a float3x4 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float3x4(double v) { return new float3x4(v); } - - /// Explicitly converts a double3x4 matrix to a float3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float3x4(double3x4 v) { return new float3x4(v); } - - - /// Returns the result of a componentwise multiplication operation on two float3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 operator * (float3x4 lhs, float3x4 rhs) { return new float3x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } - - /// Returns the result of a componentwise multiplication operation on a float3x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 operator * (float3x4 lhs, float rhs) { return new float3x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a float value and a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 operator * (float lhs, float3x4 rhs) { return new float3x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } - - - /// Returns the result of a componentwise addition operation on two float3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 operator + (float3x4 lhs, float3x4 rhs) { return new float3x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } - - /// Returns the result of a componentwise addition operation on a float3x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 operator + (float3x4 lhs, float rhs) { return new float3x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } - - /// Returns the result of a componentwise addition operation on a float value and a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 operator + (float lhs, float3x4 rhs) { return new float3x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } - - - /// Returns the result of a componentwise subtraction operation on two float3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 operator - (float3x4 lhs, float3x4 rhs) { return new float3x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } - - /// Returns the result of a componentwise subtraction operation on a float3x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 operator - (float3x4 lhs, float rhs) { return new float3x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a float value and a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 operator - (float lhs, float3x4 rhs) { return new float3x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } - - - /// Returns the result of a componentwise division operation on two float3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 operator / (float3x4 lhs, float3x4 rhs) { return new float3x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } - - /// Returns the result of a componentwise division operation on a float3x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 operator / (float3x4 lhs, float rhs) { return new float3x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } - - /// Returns the result of a componentwise division operation on a float value and a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 operator / (float lhs, float3x4 rhs) { return new float3x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } - - - /// Returns the result of a componentwise modulus operation on two float3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 operator % (float3x4 lhs, float3x4 rhs) { return new float3x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } - - /// Returns the result of a componentwise modulus operation on a float3x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 operator % (float3x4 lhs, float rhs) { return new float3x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } - - /// Returns the result of a componentwise modulus operation on a float value and a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 operator % (float lhs, float3x4 rhs) { return new float3x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } - - - /// Returns the result of a componentwise increment operation on a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 operator ++ (float3x4 val) { return new float3x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } - - - /// Returns the result of a componentwise decrement operation on a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 operator -- (float3x4 val) { return new float3x4 (--val.c0, --val.c1, --val.c2, --val.c3); } - - - /// Returns the result of a componentwise less than operation on two float3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator < (float3x4 lhs, float3x4 rhs) { return new bool3x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } - - /// Returns the result of a componentwise less than operation on a float3x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator < (float3x4 lhs, float rhs) { return new bool3x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } - - /// Returns the result of a componentwise less than operation on a float value and a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator < (float lhs, float3x4 rhs) { return new bool3x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } - - - /// Returns the result of a componentwise less or equal operation on two float3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator <= (float3x4 lhs, float3x4 rhs) { return new bool3x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } - - /// Returns the result of a componentwise less or equal operation on a float3x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator <= (float3x4 lhs, float rhs) { return new bool3x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a float value and a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator <= (float lhs, float3x4 rhs) { return new bool3x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } - - - /// Returns the result of a componentwise greater than operation on two float3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator > (float3x4 lhs, float3x4 rhs) { return new bool3x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } - - /// Returns the result of a componentwise greater than operation on a float3x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator > (float3x4 lhs, float rhs) { return new bool3x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } - - /// Returns the result of a componentwise greater than operation on a float value and a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator > (float lhs, float3x4 rhs) { return new bool3x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } - - - /// Returns the result of a componentwise greater or equal operation on two float3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator >= (float3x4 lhs, float3x4 rhs) { return new bool3x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } - - /// Returns the result of a componentwise greater or equal operation on a float3x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator >= (float3x4 lhs, float rhs) { return new bool3x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a float value and a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator >= (float lhs, float3x4 rhs) { return new bool3x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } - - - /// Returns the result of a componentwise unary minus operation on a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 operator - (float3x4 val) { return new float3x4 (-val.c0, -val.c1, -val.c2, -val.c3); } - - - /// Returns the result of a componentwise unary plus operation on a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 operator + (float3x4 val) { return new float3x4 (+val.c0, +val.c1, +val.c2, +val.c3); } - - - /// Returns the result of a componentwise equality operation on two float3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator == (float3x4 lhs, float3x4 rhs) { return new bool3x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } - - /// Returns the result of a componentwise equality operation on a float3x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator == (float3x4 lhs, float rhs) { return new bool3x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } - - /// Returns the result of a componentwise equality operation on a float value and a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator == (float lhs, float3x4 rhs) { return new bool3x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } - - - /// Returns the result of a componentwise not equal operation on two float3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator != (float3x4 lhs, float3x4 rhs) { return new bool3x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } - - /// Returns the result of a componentwise not equal operation on a float3x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator != (float3x4 lhs, float rhs) { return new bool3x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } - - /// Returns the result of a componentwise not equal operation on a float value and a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator != (float lhs, float3x4 rhs) { return new bool3x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } - - - - /// Returns the float3 element at a specified index. - unsafe public ref float3 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (float3x4* array = &this) { return ref ((float3*)array)[index]; } - } - } - - /// Returns true if the float3x4 is equal to a given float3x4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(float3x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } - - /// Returns true if the float3x4 is equal to a given float3x4, false otherwise. - public override bool Equals(object o) { return Equals((float3x4)o); } - - - /// Returns a hash code for the float3x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the float3x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("float3x4({0}f, {1}f, {2}f, {3}f, {4}f, {5}f, {6}f, {7}f, {8}f, {9}f, {10}f, {11}f)", c0.x, c1.x, c2.x, c3.x, c0.y, c1.y, c2.y, c3.y, c0.z, c1.z, c2.z, c3.z); - } - - /// Returns a string representation of the float3x4 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("float3x4({0}f, {1}f, {2}f, {3}f, {4}f, {5}f, {6}f, {7}f, {8}f, {9}f, {10}f, {11}f)", 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)); - } - - } - - public static partial class math - { - /// Returns a float3x4 matrix constructed from four float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 float3x4(float3 c0, float3 c1, float3 c2, float3 c3) { return new float3x4(c0, c1, c2, c3); } - - /// Returns a float3x4 matrix constructed from from 12 float values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 float3x4(float m00, float m01, float m02, float m03, - float m10, float m11, float m12, float m13, - float m20, float m21, float m22, float m23) - { - return new float3x4(m00, m01, m02, m03, - m10, m11, m12, m13, - m20, m21, m22, m23); - } - - /// Returns a float3x4 matrix constructed from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 float3x4(float v) { return new float3x4(v); } - - /// Returns a float3x4 matrix constructed from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 float3x4(bool v) { return new float3x4(v); } - - /// Return a float3x4 matrix constructed from a bool3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 float3x4(bool3x4 v) { return new float3x4(v); } - - /// Returns a float3x4 matrix constructed from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 float3x4(int v) { return new float3x4(v); } - - /// Return a float3x4 matrix constructed from a int3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 float3x4(int3x4 v) { return new float3x4(v); } - - /// Returns a float3x4 matrix constructed from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 float3x4(uint v) { return new float3x4(v); } - - /// Return a float3x4 matrix constructed from a uint3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 float3x4(uint3x4 v) { return new float3x4(v); } - - /// Returns a float3x4 matrix constructed from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 float3x4(double v) { return new float3x4(v); } - - /// Return a float3x4 matrix constructed from a double3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 float3x4(double3x4 v) { return new float3x4(v); } - - /// Return the float4x3 transpose of a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 transpose(float3x4 v) - { - return float4x3( - v.c0.x, v.c0.y, v.c0.z, - v.c1.x, v.c1.y, v.c1.z, - v.c2.x, v.c2.y, v.c2.z, - v.c3.x, v.c3.y, v.c3.z); - } - - // Fast matrix inverse for rigid transforms (Orthonormal basis and translation) - public static float3x4 fastinverse(float3x4 m) - { - float3 c0 = m.c0; - float3 c1 = m.c1; - float3 c2 = m.c2; - float3 pos = m.c3; - - float3 r0 = float3(c0.x, c1.x, c2.x); - float3 r1 = float3(c0.y, c1.y, c2.y); - float3 r2 = float3(c0.z, c1.z, c2.z); - - pos = -(r0 * pos.x + r1 * pos.y + r2 * pos.z); - - return float3x4(r0, r1, r2, pos); - } - - /// Returns a uint hash code of a float3x4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(float3x4 v) - { - return csum(asuint(v.c0) * uint3(0xF9EA92D5u, 0xC2FAFCB9u, 0x616E9CA1u) + - asuint(v.c1) * uint3(0xC5C5394Bu, 0xCAE78587u, 0x7A1541C9u) + - asuint(v.c2) * uint3(0xF83BD927u, 0x6A243BCBu, 0x509B84C9u) + - asuint(v.c3) * uint3(0x91D13847u, 0x52F7230Fu, 0xCF286E83u)) + 0xE121E6ADu; - } - - /// - /// Returns a uint3 vector hash code of a float3x4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(float3x4 v) - { - return (asuint(v.c0) * uint3(0xC9CA1249u, 0x69B60C81u, 0xE0EB6C25u) + - asuint(v.c1) * uint3(0xF648BEABu, 0x6BDB2B07u, 0xEF63C699u) + - asuint(v.c2) * uint3(0x9001903Fu, 0xA895B9CDu, 0x9D23B201u) + - asuint(v.c3) * uint3(0x4B01D3E1u, 0x7461CA0Du, 0x79725379u)) + 0xD6258E5Bu; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/float4.gen.cs b/Economy.Shared/Unity.Mathematics/float4.gen.cs deleted file mode 100644 index e69190870..000000000 --- a/Economy.Shared/Unity.Mathematics/float4.gen.cs +++ /dev/null @@ -1,3464 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; -using System.Diagnostics; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [DebuggerTypeProxy(typeof(float4.DebuggerProxy))] - [System.Serializable] - public partial struct float4 : System.IEquatable, IFormattable - { - public float x; - public float y; - public float z; - public float w; - - /// float4 zero value. - public static readonly float4 zero; - - /// Constructs a float4 vector from four float values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float x, float y, float z, float w) - { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - - /// Constructs a float4 vector from two float values and a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float x, float y, float2 zw) - { - this.x = x; - this.y = y; - this.z = zw.x; - this.w = zw.y; - } - - /// Constructs a float4 vector from a float value, a float2 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float x, float2 yz, float w) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - this.w = w; - } - - /// Constructs a float4 vector from a float value and a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float x, float3 yzw) - { - this.x = x; - this.y = yzw.x; - this.z = yzw.y; - this.w = yzw.z; - } - - /// Constructs a float4 vector from a float2 vector and two float values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float2 xy, float z, float w) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - this.w = w; - } - - /// Constructs a float4 vector from two float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float2 xy, float2 zw) - { - this.x = xy.x; - this.y = xy.y; - this.z = zw.x; - this.w = zw.y; - } - - /// Constructs a float4 vector from a float3 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float3 xyz, float w) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - this.w = w; - } - - /// Constructs a float4 vector from a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float4 xyzw) - { - this.x = xyzw.x; - this.y = xyzw.y; - this.z = xyzw.z; - this.w = xyzw.w; - } - - /// Constructs a float4 vector from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float v) - { - this.x = v; - this.y = v; - this.z = v; - this.w = v; - } - - /// Constructs a float4 vector from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(bool v) - { - this.x = v ? 1.0f : 0.0f; - this.y = v ? 1.0f : 0.0f; - this.z = v ? 1.0f : 0.0f; - this.w = v ? 1.0f : 0.0f; - } - - /// Constructs a float4 vector from a bool4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(bool4 v) - { - this.x = v.x ? 1.0f : 0.0f; - this.y = v.y ? 1.0f : 0.0f; - this.z = v.z ? 1.0f : 0.0f; - this.w = v.w ? 1.0f : 0.0f; - } - - /// Constructs a float4 vector from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(int v) - { - this.x = v; - this.y = v; - this.z = v; - this.w = v; - } - - /// Constructs a float4 vector from a int4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(int4 v) - { - this.x = v.x; - this.y = v.y; - this.z = v.z; - this.w = v.w; - } - - /// Constructs a float4 vector from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(uint v) - { - this.x = v; - this.y = v; - this.z = v; - this.w = v; - } - - /// Constructs a float4 vector from a uint4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(uint4 v) - { - this.x = v.x; - this.y = v.y; - this.z = v.z; - this.w = v.w; - } - - /// Constructs a float4 vector from a single half value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(half v) - { - this.x = v; - this.y = v; - this.z = v; - this.w = v; - } - - /// Constructs a float4 vector from a half4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(half4 v) - { - this.x = v.x; - this.y = v.y; - this.z = v.z; - this.w = v.w; - } - - /// Constructs a float4 vector from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(double v) - { - this.x = (float)v; - this.y = (float)v; - this.z = (float)v; - this.w = (float)v; - } - - /// Constructs a float4 vector from a double4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(double4 v) - { - this.x = (float)v.x; - this.y = (float)v.y; - this.z = (float)v.z; - this.w = (float)v.w; - } - - - /// Implicitly converts a single float value to a float4 vector by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4(float v) { return new float4(v); } - - /// Explicitly converts a single bool value to a float4 vector by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float4(bool v) { return new float4(v); } - - /// Explicitly converts a bool4 vector to a float4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float4(bool4 v) { return new float4(v); } - - /// Implicitly converts a single int value to a float4 vector by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4(int v) { return new float4(v); } - - /// Implicitly converts a int4 vector to a float4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4(int4 v) { return new float4(v); } - - /// Implicitly converts a single uint value to a float4 vector by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4(uint v) { return new float4(v); } - - /// Implicitly converts a uint4 vector to a float4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4(uint4 v) { return new float4(v); } - - /// Implicitly converts a single half value to a float4 vector by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4(half v) { return new float4(v); } - - /// Implicitly converts a half4 vector to a float4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4(half4 v) { return new float4(v); } - - /// Explicitly converts a single double value to a float4 vector by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float4(double v) { return new float4(v); } - - /// Explicitly converts a double4 vector to a float4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float4(double4 v) { return new float4(v); } - - - /// Returns the result of a componentwise multiplication operation on two float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator * (float4 lhs, float4 rhs) { return new float4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } - - /// Returns the result of a componentwise multiplication operation on a float4 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator * (float4 lhs, float rhs) { return new float4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } - - /// Returns the result of a componentwise multiplication operation on a float value and a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator * (float lhs, float4 rhs) { return new float4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } - - - /// Returns the result of a componentwise addition operation on two float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator + (float4 lhs, float4 rhs) { return new float4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } - - /// Returns the result of a componentwise addition operation on a float4 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator + (float4 lhs, float rhs) { return new float4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } - - /// Returns the result of a componentwise addition operation on a float value and a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator + (float lhs, float4 rhs) { return new float4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } - - - /// Returns the result of a componentwise subtraction operation on two float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator - (float4 lhs, float4 rhs) { return new float4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } - - /// Returns the result of a componentwise subtraction operation on a float4 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator - (float4 lhs, float rhs) { return new float4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } - - /// Returns the result of a componentwise subtraction operation on a float value and a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator - (float lhs, float4 rhs) { return new float4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } - - - /// Returns the result of a componentwise division operation on two float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator / (float4 lhs, float4 rhs) { return new float4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } - - /// Returns the result of a componentwise division operation on a float4 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator / (float4 lhs, float rhs) { return new float4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } - - /// Returns the result of a componentwise division operation on a float value and a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator / (float lhs, float4 rhs) { return new float4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } - - - /// Returns the result of a componentwise modulus operation on two float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator % (float4 lhs, float4 rhs) { return new float4 (lhs.x % rhs.x, lhs.y % rhs.y, lhs.z % rhs.z, lhs.w % rhs.w); } - - /// Returns the result of a componentwise modulus operation on a float4 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator % (float4 lhs, float rhs) { return new float4 (lhs.x % rhs, lhs.y % rhs, lhs.z % rhs, lhs.w % rhs); } - - /// Returns the result of a componentwise modulus operation on a float value and a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator % (float lhs, float4 rhs) { return new float4 (lhs % rhs.x, lhs % rhs.y, lhs % rhs.z, lhs % rhs.w); } - - - /// Returns the result of a componentwise increment operation on a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator ++ (float4 val) { return new float4 (++val.x, ++val.y, ++val.z, ++val.w); } - - - /// Returns the result of a componentwise decrement operation on a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator -- (float4 val) { return new float4 (--val.x, --val.y, --val.z, --val.w); } - - - /// Returns the result of a componentwise less than operation on two float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (float4 lhs, float4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } - - /// Returns the result of a componentwise less than operation on a float4 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (float4 lhs, float rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } - - /// Returns the result of a componentwise less than operation on a float value and a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (float lhs, float4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } - - - /// Returns the result of a componentwise less or equal operation on two float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (float4 lhs, float4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } - - /// Returns the result of a componentwise less or equal operation on a float4 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (float4 lhs, float rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a float value and a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (float lhs, float4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } - - - /// Returns the result of a componentwise greater than operation on two float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (float4 lhs, float4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } - - /// Returns the result of a componentwise greater than operation on a float4 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (float4 lhs, float rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } - - /// Returns the result of a componentwise greater than operation on a float value and a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (float lhs, float4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } - - - /// Returns the result of a componentwise greater or equal operation on two float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (float4 lhs, float4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } - - /// Returns the result of a componentwise greater or equal operation on a float4 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (float4 lhs, float rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a float value and a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (float lhs, float4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } - - - /// Returns the result of a componentwise unary minus operation on a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator - (float4 val) { return new float4 (-val.x, -val.y, -val.z, -val.w); } - - - /// Returns the result of a componentwise unary plus operation on a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator + (float4 val) { return new float4 (+val.x, +val.y, +val.z, +val.w); } - - - /// Returns the result of a componentwise equality operation on two float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (float4 lhs, float4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } - - /// Returns the result of a componentwise equality operation on a float4 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (float4 lhs, float rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } - - /// Returns the result of a componentwise equality operation on a float value and a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (float lhs, float4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } - - - /// Returns the result of a componentwise not equal operation on two float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (float4 lhs, float4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } - - /// Returns the result of a componentwise not equal operation on a float4 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (float4 lhs, float rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } - - /// Returns the result of a componentwise not equal operation on a float value and a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (float lhs, float4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } - - - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 ywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 ywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 ywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 www - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 wx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 wy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 wz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 ww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(w, w); } - } - - - - /// Returns the float element at a specified index. - unsafe public float this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (float4* array = &this) { return ((float*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (float* array = &x) { array[index] = value; } - } - } - - /// Returns true if the float4 is equal to a given float4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(float4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } - - /// Returns true if the float4 is equal to a given float4, false otherwise. - public override bool Equals(object o) { return Equals((float4)o); } - - - /// Returns a hash code for the float4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the float4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("float4({0}f, {1}f, {2}f, {3}f)", x, y, z, w); - } - - /// Returns a string representation of the float4 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("float4({0}f, {1}f, {2}f, {3}f)", x.ToString(format, formatProvider), y.ToString(format, formatProvider), z.ToString(format, formatProvider), w.ToString(format, formatProvider)); - } - - internal sealed class DebuggerProxy - { - public float x; - public float y; - public float z; - public float w; - public DebuggerProxy(float4 v) - { - x = v.x; - y = v.y; - z = v.z; - w = v.w; - } - } - - } - - public static partial class math - { - /// Returns a float4 vector constructed from four float values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float x, float y, float z, float w) { return new float4(x, y, z, w); } - - /// Returns a float4 vector constructed from two float values and a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float x, float y, float2 zw) { return new float4(x, y, zw); } - - /// Returns a float4 vector constructed from a float value, a float2 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float x, float2 yz, float w) { return new float4(x, yz, w); } - - /// Returns a float4 vector constructed from a float value and a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float x, float3 yzw) { return new float4(x, yzw); } - - /// Returns a float4 vector constructed from a float2 vector and two float values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float2 xy, float z, float w) { return new float4(xy, z, w); } - - /// Returns a float4 vector constructed from two float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float2 xy, float2 zw) { return new float4(xy, zw); } - - /// Returns a float4 vector constructed from a float3 vector and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float3 xyz, float w) { return new float4(xyz, w); } - - /// Returns a float4 vector constructed from a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float4 xyzw) { return new float4(xyzw); } - - /// Returns a float4 vector constructed from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float v) { return new float4(v); } - - /// Returns a float4 vector constructed from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(bool v) { return new float4(v); } - - /// Return a float4 vector constructed from a bool4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(bool4 v) { return new float4(v); } - - /// Returns a float4 vector constructed from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(int v) { return new float4(v); } - - /// Return a float4 vector constructed from a int4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(int4 v) { return new float4(v); } - - /// Returns a float4 vector constructed from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(uint v) { return new float4(v); } - - /// Return a float4 vector constructed from a uint4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(uint4 v) { return new float4(v); } - - /// Returns a float4 vector constructed from a single half value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(half v) { return new float4(v); } - - /// Return a float4 vector constructed from a half4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(half4 v) { return new float4(v); } - - /// Returns a float4 vector constructed from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(double v) { return new float4(v); } - - /// Return a float4 vector constructed from a double4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(double4 v) { return new float4(v); } - - /// Returns a uint hash code of a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(float4 v) - { - return csum(asuint(v) * uint4(0xE69626FFu, 0xBD010EEBu, 0x9CEDE1D1u, 0x43BE0B51u)) + 0xAF836EE1u; - } - - /// - /// Returns a uint4 vector hash code of a float4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(float4 v) - { - return (asuint(v) * uint4(0xB130C137u, 0x54834775u, 0x7C022221u, 0xA2D00EDFu)) + 0xA8977779u; - } - - /// Returns the result of specified shuffling of the components from two float4 vectors into a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float shuffle(float4 a, float4 b, ShuffleComponent x) - { - return select_shuffle_component(a, b, x); - } - - /// Returns the result of specified shuffling of the components from two float4 vectors into a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 shuffle(float4 a, float4 b, ShuffleComponent x, ShuffleComponent y) - { - return float2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); - } - - /// Returns the result of specified shuffling of the components from two float4 vectors into a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 shuffle(float4 a, float4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) - { - return float3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); - } - - /// Returns the result of specified shuffling of the components from two float4 vectors into a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 shuffle(float4 a, float4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) - { - return float4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float select_shuffle_component(float4 a, float4 b, ShuffleComponent component) - { - switch(component) - { - case ShuffleComponent.LeftX: - return a.x; - case ShuffleComponent.LeftY: - return a.y; - case ShuffleComponent.LeftZ: - return a.z; - case ShuffleComponent.LeftW: - return a.w; - case ShuffleComponent.RightX: - return b.x; - case ShuffleComponent.RightY: - return b.y; - case ShuffleComponent.RightZ: - return b.z; - case ShuffleComponent.RightW: - return b.w; - default: - throw new System.ArgumentException("Invalid shuffle component: " + component); - } - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/float4x2.gen.cs b/Economy.Shared/Unity.Mathematics/float4x2.gen.cs deleted file mode 100644 index 9ffa50484..000000000 --- a/Economy.Shared/Unity.Mathematics/float4x2.gen.cs +++ /dev/null @@ -1,445 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct float4x2 : System.IEquatable, IFormattable - { - public float4 c0; - public float4 c1; - - /// float4x2 zero value. - public static readonly float4x2 zero; - - /// Constructs a float4x2 matrix from two float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x2(float4 c0, float4 c1) - { - this.c0 = c0; - this.c1 = c1; - } - - /// Constructs a float4x2 matrix from 8 float values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x2(float m00, float m01, - float m10, float m11, - float m20, float m21, - float m30, float m31) - { - this.c0 = new float4(m00, m10, m20, m30); - this.c1 = new float4(m01, m11, m21, m31); - } - - /// Constructs a float4x2 matrix from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x2(float v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a float4x2 matrix from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x2(bool v) - { - this.c0 = math.select(new float4(0.0f), new float4(1.0f), v); - this.c1 = math.select(new float4(0.0f), new float4(1.0f), v); - } - - /// Constructs a float4x2 matrix from a bool4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x2(bool4x2 v) - { - this.c0 = math.select(new float4(0.0f), new float4(1.0f), v.c0); - this.c1 = math.select(new float4(0.0f), new float4(1.0f), v.c1); - } - - /// Constructs a float4x2 matrix from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x2(int v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a float4x2 matrix from a int4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x2(int4x2 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - } - - /// Constructs a float4x2 matrix from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x2(uint v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a float4x2 matrix from a uint4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x2(uint4x2 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - } - - /// Constructs a float4x2 matrix from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x2(double v) - { - this.c0 = (float4)v; - this.c1 = (float4)v; - } - - /// Constructs a float4x2 matrix from a double4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x2(double4x2 v) - { - this.c0 = (float4)v.c0; - this.c1 = (float4)v.c1; - } - - - /// Implicitly converts a single float value to a float4x2 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4x2(float v) { return new float4x2(v); } - - /// Explicitly converts a single bool value to a float4x2 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float4x2(bool v) { return new float4x2(v); } - - /// Explicitly converts a bool4x2 matrix to a float4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float4x2(bool4x2 v) { return new float4x2(v); } - - /// Implicitly converts a single int value to a float4x2 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4x2(int v) { return new float4x2(v); } - - /// Implicitly converts a int4x2 matrix to a float4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4x2(int4x2 v) { return new float4x2(v); } - - /// Implicitly converts a single uint value to a float4x2 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4x2(uint v) { return new float4x2(v); } - - /// Implicitly converts a uint4x2 matrix to a float4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4x2(uint4x2 v) { return new float4x2(v); } - - /// Explicitly converts a single double value to a float4x2 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float4x2(double v) { return new float4x2(v); } - - /// Explicitly converts a double4x2 matrix to a float4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float4x2(double4x2 v) { return new float4x2(v); } - - - /// Returns the result of a componentwise multiplication operation on two float4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 operator * (float4x2 lhs, float4x2 rhs) { return new float4x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } - - /// Returns the result of a componentwise multiplication operation on a float4x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 operator * (float4x2 lhs, float rhs) { return new float4x2 (lhs.c0 * rhs, lhs.c1 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a float value and a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 operator * (float lhs, float4x2 rhs) { return new float4x2 (lhs * rhs.c0, lhs * rhs.c1); } - - - /// Returns the result of a componentwise addition operation on two float4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 operator + (float4x2 lhs, float4x2 rhs) { return new float4x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } - - /// Returns the result of a componentwise addition operation on a float4x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 operator + (float4x2 lhs, float rhs) { return new float4x2 (lhs.c0 + rhs, lhs.c1 + rhs); } - - /// Returns the result of a componentwise addition operation on a float value and a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 operator + (float lhs, float4x2 rhs) { return new float4x2 (lhs + rhs.c0, lhs + rhs.c1); } - - - /// Returns the result of a componentwise subtraction operation on two float4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 operator - (float4x2 lhs, float4x2 rhs) { return new float4x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } - - /// Returns the result of a componentwise subtraction operation on a float4x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 operator - (float4x2 lhs, float rhs) { return new float4x2 (lhs.c0 - rhs, lhs.c1 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a float value and a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 operator - (float lhs, float4x2 rhs) { return new float4x2 (lhs - rhs.c0, lhs - rhs.c1); } - - - /// Returns the result of a componentwise division operation on two float4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 operator / (float4x2 lhs, float4x2 rhs) { return new float4x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } - - /// Returns the result of a componentwise division operation on a float4x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 operator / (float4x2 lhs, float rhs) { return new float4x2 (lhs.c0 / rhs, lhs.c1 / rhs); } - - /// Returns the result of a componentwise division operation on a float value and a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 operator / (float lhs, float4x2 rhs) { return new float4x2 (lhs / rhs.c0, lhs / rhs.c1); } - - - /// Returns the result of a componentwise modulus operation on two float4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 operator % (float4x2 lhs, float4x2 rhs) { return new float4x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } - - /// Returns the result of a componentwise modulus operation on a float4x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 operator % (float4x2 lhs, float rhs) { return new float4x2 (lhs.c0 % rhs, lhs.c1 % rhs); } - - /// Returns the result of a componentwise modulus operation on a float value and a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 operator % (float lhs, float4x2 rhs) { return new float4x2 (lhs % rhs.c0, lhs % rhs.c1); } - - - /// Returns the result of a componentwise increment operation on a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 operator ++ (float4x2 val) { return new float4x2 (++val.c0, ++val.c1); } - - - /// Returns the result of a componentwise decrement operation on a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 operator -- (float4x2 val) { return new float4x2 (--val.c0, --val.c1); } - - - /// Returns the result of a componentwise less than operation on two float4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator < (float4x2 lhs, float4x2 rhs) { return new bool4x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } - - /// Returns the result of a componentwise less than operation on a float4x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator < (float4x2 lhs, float rhs) { return new bool4x2 (lhs.c0 < rhs, lhs.c1 < rhs); } - - /// Returns the result of a componentwise less than operation on a float value and a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator < (float lhs, float4x2 rhs) { return new bool4x2 (lhs < rhs.c0, lhs < rhs.c1); } - - - /// Returns the result of a componentwise less or equal operation on two float4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator <= (float4x2 lhs, float4x2 rhs) { return new bool4x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } - - /// Returns the result of a componentwise less or equal operation on a float4x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator <= (float4x2 lhs, float rhs) { return new bool4x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a float value and a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator <= (float lhs, float4x2 rhs) { return new bool4x2 (lhs <= rhs.c0, lhs <= rhs.c1); } - - - /// Returns the result of a componentwise greater than operation on two float4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator > (float4x2 lhs, float4x2 rhs) { return new bool4x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } - - /// Returns the result of a componentwise greater than operation on a float4x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator > (float4x2 lhs, float rhs) { return new bool4x2 (lhs.c0 > rhs, lhs.c1 > rhs); } - - /// Returns the result of a componentwise greater than operation on a float value and a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator > (float lhs, float4x2 rhs) { return new bool4x2 (lhs > rhs.c0, lhs > rhs.c1); } - - - /// Returns the result of a componentwise greater or equal operation on two float4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator >= (float4x2 lhs, float4x2 rhs) { return new bool4x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } - - /// Returns the result of a componentwise greater or equal operation on a float4x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator >= (float4x2 lhs, float rhs) { return new bool4x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a float value and a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator >= (float lhs, float4x2 rhs) { return new bool4x2 (lhs >= rhs.c0, lhs >= rhs.c1); } - - - /// Returns the result of a componentwise unary minus operation on a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 operator - (float4x2 val) { return new float4x2 (-val.c0, -val.c1); } - - - /// Returns the result of a componentwise unary plus operation on a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 operator + (float4x2 val) { return new float4x2 (+val.c0, +val.c1); } - - - /// Returns the result of a componentwise equality operation on two float4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator == (float4x2 lhs, float4x2 rhs) { return new bool4x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } - - /// Returns the result of a componentwise equality operation on a float4x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator == (float4x2 lhs, float rhs) { return new bool4x2 (lhs.c0 == rhs, lhs.c1 == rhs); } - - /// Returns the result of a componentwise equality operation on a float value and a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator == (float lhs, float4x2 rhs) { return new bool4x2 (lhs == rhs.c0, lhs == rhs.c1); } - - - /// Returns the result of a componentwise not equal operation on two float4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator != (float4x2 lhs, float4x2 rhs) { return new bool4x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } - - /// Returns the result of a componentwise not equal operation on a float4x2 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator != (float4x2 lhs, float rhs) { return new bool4x2 (lhs.c0 != rhs, lhs.c1 != rhs); } - - /// Returns the result of a componentwise not equal operation on a float value and a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator != (float lhs, float4x2 rhs) { return new bool4x2 (lhs != rhs.c0, lhs != rhs.c1); } - - - - /// Returns the float4 element at a specified index. - unsafe public ref float4 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (float4x2* array = &this) { return ref ((float4*)array)[index]; } - } - } - - /// Returns true if the float4x2 is equal to a given float4x2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(float4x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } - - /// Returns true if the float4x2 is equal to a given float4x2, false otherwise. - public override bool Equals(object o) { return Equals((float4x2)o); } - - - /// Returns a hash code for the float4x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the float4x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("float4x2({0}f, {1}f, {2}f, {3}f, {4}f, {5}f, {6}f, {7}f)", c0.x, c1.x, c0.y, c1.y, c0.z, c1.z, c0.w, c1.w); - } - - /// Returns a string representation of the float4x2 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("float4x2({0}f, {1}f, {2}f, {3}f, {4}f, {5}f, {6}f, {7}f)", 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)); - } - - } - - public static partial class math - { - /// Returns a float4x2 matrix constructed from two float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 float4x2(float4 c0, float4 c1) { return new float4x2(c0, c1); } - - /// Returns a float4x2 matrix constructed from from 8 float values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 float4x2(float m00, float m01, - float m10, float m11, - float m20, float m21, - float m30, float m31) - { - return new float4x2(m00, m01, - m10, m11, - m20, m21, - m30, m31); - } - - /// Returns a float4x2 matrix constructed from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 float4x2(float v) { return new float4x2(v); } - - /// Returns a float4x2 matrix constructed from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 float4x2(bool v) { return new float4x2(v); } - - /// Return a float4x2 matrix constructed from a bool4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 float4x2(bool4x2 v) { return new float4x2(v); } - - /// Returns a float4x2 matrix constructed from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 float4x2(int v) { return new float4x2(v); } - - /// Return a float4x2 matrix constructed from a int4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 float4x2(int4x2 v) { return new float4x2(v); } - - /// Returns a float4x2 matrix constructed from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 float4x2(uint v) { return new float4x2(v); } - - /// Return a float4x2 matrix constructed from a uint4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 float4x2(uint4x2 v) { return new float4x2(v); } - - /// Returns a float4x2 matrix constructed from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 float4x2(double v) { return new float4x2(v); } - - /// Return a float4x2 matrix constructed from a double4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 float4x2(double4x2 v) { return new float4x2(v); } - - /// Return the float2x4 transpose of a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 transpose(float4x2 v) - { - return float2x4( - v.c0.x, v.c0.y, v.c0.z, v.c0.w, - v.c1.x, v.c1.y, v.c1.z, v.c1.w); - } - - /// Returns a uint hash code of a float4x2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(float4x2 v) - { - return csum(asuint(v.c0) * uint4(0xAAC3C25Du, 0xD21D0945u, 0x88FCAB2Du, 0x614DA60Du) + - asuint(v.c1) * uint4(0x5BA2C50Bu, 0x8C455ACBu, 0xCD266C89u, 0xF1852A33u)) + 0x77E35E77u; - } - - /// - /// Returns a uint4 vector hash code of a float4x2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(float4x2 v) - { - return (asuint(v.c0) * uint4(0x863E3729u, 0xE191B035u, 0x68586FAFu, 0xD4DFF6D3u) + - asuint(v.c1) * uint4(0xCB634F4Du, 0x9B13B92Du, 0x4ABF0813u, 0x86068063u)) + 0xD75513F9u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/float4x3.gen.cs b/Economy.Shared/Unity.Mathematics/float4x3.gen.cs deleted file mode 100644 index b938c9318..000000000 --- a/Economy.Shared/Unity.Mathematics/float4x3.gen.cs +++ /dev/null @@ -1,460 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct float4x3 : System.IEquatable, IFormattable - { - public float4 c0; - public float4 c1; - public float4 c2; - - /// float4x3 zero value. - public static readonly float4x3 zero; - - /// Constructs a float4x3 matrix from three float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x3(float4 c0, float4 c1, float4 c2) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - } - - /// Constructs a float4x3 matrix from 12 float values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x3(float m00, float m01, float m02, - float m10, float m11, float m12, - float m20, float m21, float m22, - float m30, float m31, float m32) - { - this.c0 = new float4(m00, m10, m20, m30); - this.c1 = new float4(m01, m11, m21, m31); - this.c2 = new float4(m02, m12, m22, m32); - } - - /// Constructs a float4x3 matrix from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x3(float v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a float4x3 matrix from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x3(bool v) - { - this.c0 = math.select(new float4(0.0f), new float4(1.0f), v); - this.c1 = math.select(new float4(0.0f), new float4(1.0f), v); - this.c2 = math.select(new float4(0.0f), new float4(1.0f), v); - } - - /// Constructs a float4x3 matrix from a bool4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x3(bool4x3 v) - { - this.c0 = math.select(new float4(0.0f), new float4(1.0f), v.c0); - this.c1 = math.select(new float4(0.0f), new float4(1.0f), v.c1); - this.c2 = math.select(new float4(0.0f), new float4(1.0f), v.c2); - } - - /// Constructs a float4x3 matrix from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x3(int v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a float4x3 matrix from a int4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x3(int4x3 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - } - - /// Constructs a float4x3 matrix from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x3(uint v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a float4x3 matrix from a uint4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x3(uint4x3 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - } - - /// Constructs a float4x3 matrix from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x3(double v) - { - this.c0 = (float4)v; - this.c1 = (float4)v; - this.c2 = (float4)v; - } - - /// Constructs a float4x3 matrix from a double4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x3(double4x3 v) - { - this.c0 = (float4)v.c0; - this.c1 = (float4)v.c1; - this.c2 = (float4)v.c2; - } - - - /// Implicitly converts a single float value to a float4x3 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4x3(float v) { return new float4x3(v); } - - /// Explicitly converts a single bool value to a float4x3 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float4x3(bool v) { return new float4x3(v); } - - /// Explicitly converts a bool4x3 matrix to a float4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float4x3(bool4x3 v) { return new float4x3(v); } - - /// Implicitly converts a single int value to a float4x3 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4x3(int v) { return new float4x3(v); } - - /// Implicitly converts a int4x3 matrix to a float4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4x3(int4x3 v) { return new float4x3(v); } - - /// Implicitly converts a single uint value to a float4x3 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4x3(uint v) { return new float4x3(v); } - - /// Implicitly converts a uint4x3 matrix to a float4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4x3(uint4x3 v) { return new float4x3(v); } - - /// Explicitly converts a single double value to a float4x3 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float4x3(double v) { return new float4x3(v); } - - /// Explicitly converts a double4x3 matrix to a float4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float4x3(double4x3 v) { return new float4x3(v); } - - - /// Returns the result of a componentwise multiplication operation on two float4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 operator * (float4x3 lhs, float4x3 rhs) { return new float4x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } - - /// Returns the result of a componentwise multiplication operation on a float4x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 operator * (float4x3 lhs, float rhs) { return new float4x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a float value and a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 operator * (float lhs, float4x3 rhs) { return new float4x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } - - - /// Returns the result of a componentwise addition operation on two float4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 operator + (float4x3 lhs, float4x3 rhs) { return new float4x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } - - /// Returns the result of a componentwise addition operation on a float4x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 operator + (float4x3 lhs, float rhs) { return new float4x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } - - /// Returns the result of a componentwise addition operation on a float value and a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 operator + (float lhs, float4x3 rhs) { return new float4x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } - - - /// Returns the result of a componentwise subtraction operation on two float4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 operator - (float4x3 lhs, float4x3 rhs) { return new float4x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } - - /// Returns the result of a componentwise subtraction operation on a float4x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 operator - (float4x3 lhs, float rhs) { return new float4x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a float value and a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 operator - (float lhs, float4x3 rhs) { return new float4x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } - - - /// Returns the result of a componentwise division operation on two float4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 operator / (float4x3 lhs, float4x3 rhs) { return new float4x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } - - /// Returns the result of a componentwise division operation on a float4x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 operator / (float4x3 lhs, float rhs) { return new float4x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } - - /// Returns the result of a componentwise division operation on a float value and a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 operator / (float lhs, float4x3 rhs) { return new float4x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } - - - /// Returns the result of a componentwise modulus operation on two float4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 operator % (float4x3 lhs, float4x3 rhs) { return new float4x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } - - /// Returns the result of a componentwise modulus operation on a float4x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 operator % (float4x3 lhs, float rhs) { return new float4x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } - - /// Returns the result of a componentwise modulus operation on a float value and a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 operator % (float lhs, float4x3 rhs) { return new float4x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } - - - /// Returns the result of a componentwise increment operation on a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 operator ++ (float4x3 val) { return new float4x3 (++val.c0, ++val.c1, ++val.c2); } - - - /// Returns the result of a componentwise decrement operation on a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 operator -- (float4x3 val) { return new float4x3 (--val.c0, --val.c1, --val.c2); } - - - /// Returns the result of a componentwise less than operation on two float4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator < (float4x3 lhs, float4x3 rhs) { return new bool4x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } - - /// Returns the result of a componentwise less than operation on a float4x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator < (float4x3 lhs, float rhs) { return new bool4x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } - - /// Returns the result of a componentwise less than operation on a float value and a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator < (float lhs, float4x3 rhs) { return new bool4x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } - - - /// Returns the result of a componentwise less or equal operation on two float4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator <= (float4x3 lhs, float4x3 rhs) { return new bool4x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } - - /// Returns the result of a componentwise less or equal operation on a float4x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator <= (float4x3 lhs, float rhs) { return new bool4x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a float value and a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator <= (float lhs, float4x3 rhs) { return new bool4x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } - - - /// Returns the result of a componentwise greater than operation on two float4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator > (float4x3 lhs, float4x3 rhs) { return new bool4x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } - - /// Returns the result of a componentwise greater than operation on a float4x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator > (float4x3 lhs, float rhs) { return new bool4x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } - - /// Returns the result of a componentwise greater than operation on a float value and a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator > (float lhs, float4x3 rhs) { return new bool4x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } - - - /// Returns the result of a componentwise greater or equal operation on two float4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator >= (float4x3 lhs, float4x3 rhs) { return new bool4x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } - - /// Returns the result of a componentwise greater or equal operation on a float4x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator >= (float4x3 lhs, float rhs) { return new bool4x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a float value and a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator >= (float lhs, float4x3 rhs) { return new bool4x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } - - - /// Returns the result of a componentwise unary minus operation on a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 operator - (float4x3 val) { return new float4x3 (-val.c0, -val.c1, -val.c2); } - - - /// Returns the result of a componentwise unary plus operation on a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 operator + (float4x3 val) { return new float4x3 (+val.c0, +val.c1, +val.c2); } - - - /// Returns the result of a componentwise equality operation on two float4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator == (float4x3 lhs, float4x3 rhs) { return new bool4x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } - - /// Returns the result of a componentwise equality operation on a float4x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator == (float4x3 lhs, float rhs) { return new bool4x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } - - /// Returns the result of a componentwise equality operation on a float value and a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator == (float lhs, float4x3 rhs) { return new bool4x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } - - - /// Returns the result of a componentwise not equal operation on two float4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator != (float4x3 lhs, float4x3 rhs) { return new bool4x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } - - /// Returns the result of a componentwise not equal operation on a float4x3 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator != (float4x3 lhs, float rhs) { return new bool4x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } - - /// Returns the result of a componentwise not equal operation on a float value and a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator != (float lhs, float4x3 rhs) { return new bool4x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } - - - - /// Returns the float4 element at a specified index. - unsafe public ref float4 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (float4x3* array = &this) { return ref ((float4*)array)[index]; } - } - } - - /// Returns true if the float4x3 is equal to a given float4x3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(float4x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } - - /// Returns true if the float4x3 is equal to a given float4x3, false otherwise. - public override bool Equals(object o) { return Equals((float4x3)o); } - - - /// Returns a hash code for the float4x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the float4x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("float4x3({0}f, {1}f, {2}f, {3}f, {4}f, {5}f, {6}f, {7}f, {8}f, {9}f, {10}f, {11}f)", c0.x, c1.x, c2.x, c0.y, c1.y, c2.y, c0.z, c1.z, c2.z, c0.w, c1.w, c2.w); - } - - /// Returns a string representation of the float4x3 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("float4x3({0}f, {1}f, {2}f, {3}f, {4}f, {5}f, {6}f, {7}f, {8}f, {9}f, {10}f, {11}f)", 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)); - } - - } - - public static partial class math - { - /// Returns a float4x3 matrix constructed from three float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 float4x3(float4 c0, float4 c1, float4 c2) { return new float4x3(c0, c1, c2); } - - /// Returns a float4x3 matrix constructed from from 12 float values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 float4x3(float m00, float m01, float m02, - float m10, float m11, float m12, - float m20, float m21, float m22, - float m30, float m31, float m32) - { - return new float4x3(m00, m01, m02, - m10, m11, m12, - m20, m21, m22, - m30, m31, m32); - } - - /// Returns a float4x3 matrix constructed from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 float4x3(float v) { return new float4x3(v); } - - /// Returns a float4x3 matrix constructed from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 float4x3(bool v) { return new float4x3(v); } - - /// Return a float4x3 matrix constructed from a bool4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 float4x3(bool4x3 v) { return new float4x3(v); } - - /// Returns a float4x3 matrix constructed from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 float4x3(int v) { return new float4x3(v); } - - /// Return a float4x3 matrix constructed from a int4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 float4x3(int4x3 v) { return new float4x3(v); } - - /// Returns a float4x3 matrix constructed from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 float4x3(uint v) { return new float4x3(v); } - - /// Return a float4x3 matrix constructed from a uint4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 float4x3(uint4x3 v) { return new float4x3(v); } - - /// Returns a float4x3 matrix constructed from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 float4x3(double v) { return new float4x3(v); } - - /// Return a float4x3 matrix constructed from a double4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 float4x3(double4x3 v) { return new float4x3(v); } - - /// Return the float3x4 transpose of a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 transpose(float4x3 v) - { - return float3x4( - v.c0.x, v.c0.y, v.c0.z, v.c0.w, - v.c1.x, v.c1.y, v.c1.z, v.c1.w, - v.c2.x, v.c2.y, v.c2.z, v.c2.w); - } - - /// Returns a uint hash code of a float4x3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(float4x3 v) - { - return csum(asuint(v.c0) * uint4(0xC53F4755u, 0x6985C229u, 0xE133B0B3u, 0xC3E0A3B9u) + - asuint(v.c1) * uint4(0xFE31134Fu, 0x712A34D7u, 0x9D77A59Bu, 0x4942CA39u) + - asuint(v.c2) * uint4(0xB40EC62Du, 0x565ED63Fu, 0x93C30C2Bu, 0xDCAF0351u)) + 0x6E050B01u; - } - - /// - /// Returns a uint4 vector hash code of a float4x3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(float4x3 v) - { - return (asuint(v.c0) * uint4(0x750FDBF5u, 0x7F3DD499u, 0x52EAAEBBu, 0x4599C793u) + - asuint(v.c1) * uint4(0x83B5E729u, 0xC267163Fu, 0x67BC9149u, 0xAD7C5EC1u) + - asuint(v.c2) * uint4(0x822A7D6Du, 0xB492BF15u, 0xD37220E3u, 0x7AA2C2BDu)) + 0xE16BC89Du; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/float4x4.gen.cs b/Economy.Shared/Unity.Mathematics/float4x4.gen.cs deleted file mode 100644 index 3cf507e11..000000000 --- a/Economy.Shared/Unity.Mathematics/float4x4.gen.cs +++ /dev/null @@ -1,596 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct float4x4 : System.IEquatable, IFormattable - { - public float4 c0; - public float4 c1; - public float4 c2; - public float4 c3; - - /// float4x4 identity transform. - public static readonly float4x4 identity = new float4x4(1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f); - - /// float4x4 zero value. - public static readonly float4x4 zero; - - /// Constructs a float4x4 matrix from four float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x4(float4 c0, float4 c1, float4 c2, float4 c3) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - this.c3 = c3; - } - - /// Constructs a float4x4 matrix from 16 float values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x4(float m00, float m01, float m02, float m03, - float m10, float m11, float m12, float m13, - float m20, float m21, float m22, float m23, - float m30, float m31, float m32, float m33) - { - this.c0 = new float4(m00, m10, m20, m30); - this.c1 = new float4(m01, m11, m21, m31); - this.c2 = new float4(m02, m12, m22, m32); - this.c3 = new float4(m03, m13, m23, m33); - } - - /// Constructs a float4x4 matrix from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x4(float v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a float4x4 matrix from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x4(bool v) - { - this.c0 = math.select(new float4(0.0f), new float4(1.0f), v); - this.c1 = math.select(new float4(0.0f), new float4(1.0f), v); - this.c2 = math.select(new float4(0.0f), new float4(1.0f), v); - this.c3 = math.select(new float4(0.0f), new float4(1.0f), v); - } - - /// Constructs a float4x4 matrix from a bool4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x4(bool4x4 v) - { - this.c0 = math.select(new float4(0.0f), new float4(1.0f), v.c0); - this.c1 = math.select(new float4(0.0f), new float4(1.0f), v.c1); - this.c2 = math.select(new float4(0.0f), new float4(1.0f), v.c2); - this.c3 = math.select(new float4(0.0f), new float4(1.0f), v.c3); - } - - /// Constructs a float4x4 matrix from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x4(int v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a float4x4 matrix from a int4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x4(int4x4 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - this.c3 = v.c3; - } - - /// Constructs a float4x4 matrix from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x4(uint v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a float4x4 matrix from a uint4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x4(uint4x4 v) - { - this.c0 = v.c0; - this.c1 = v.c1; - this.c2 = v.c2; - this.c3 = v.c3; - } - - /// Constructs a float4x4 matrix from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x4(double v) - { - this.c0 = (float4)v; - this.c1 = (float4)v; - this.c2 = (float4)v; - this.c3 = (float4)v; - } - - /// Constructs a float4x4 matrix from a double4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4x4(double4x4 v) - { - this.c0 = (float4)v.c0; - this.c1 = (float4)v.c1; - this.c2 = (float4)v.c2; - this.c3 = (float4)v.c3; - } - - - /// Implicitly converts a single float value to a float4x4 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4x4(float v) { return new float4x4(v); } - - /// Explicitly converts a single bool value to a float4x4 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float4x4(bool v) { return new float4x4(v); } - - /// Explicitly converts a bool4x4 matrix to a float4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float4x4(bool4x4 v) { return new float4x4(v); } - - /// Implicitly converts a single int value to a float4x4 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4x4(int v) { return new float4x4(v); } - - /// Implicitly converts a int4x4 matrix to a float4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4x4(int4x4 v) { return new float4x4(v); } - - /// Implicitly converts a single uint value to a float4x4 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4x4(uint v) { return new float4x4(v); } - - /// Implicitly converts a uint4x4 matrix to a float4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4x4(uint4x4 v) { return new float4x4(v); } - - /// Explicitly converts a single double value to a float4x4 matrix by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float4x4(double v) { return new float4x4(v); } - - /// Explicitly converts a double4x4 matrix to a float4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator float4x4(double4x4 v) { return new float4x4(v); } - - - /// Returns the result of a componentwise multiplication operation on two float4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 operator * (float4x4 lhs, float4x4 rhs) { return new float4x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } - - /// Returns the result of a componentwise multiplication operation on a float4x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 operator * (float4x4 lhs, float rhs) { return new float4x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a float value and a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 operator * (float lhs, float4x4 rhs) { return new float4x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } - - - /// Returns the result of a componentwise addition operation on two float4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 operator + (float4x4 lhs, float4x4 rhs) { return new float4x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } - - /// Returns the result of a componentwise addition operation on a float4x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 operator + (float4x4 lhs, float rhs) { return new float4x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } - - /// Returns the result of a componentwise addition operation on a float value and a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 operator + (float lhs, float4x4 rhs) { return new float4x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } - - - /// Returns the result of a componentwise subtraction operation on two float4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 operator - (float4x4 lhs, float4x4 rhs) { return new float4x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } - - /// Returns the result of a componentwise subtraction operation on a float4x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 operator - (float4x4 lhs, float rhs) { return new float4x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a float value and a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 operator - (float lhs, float4x4 rhs) { return new float4x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } - - - /// Returns the result of a componentwise division operation on two float4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 operator / (float4x4 lhs, float4x4 rhs) { return new float4x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } - - /// Returns the result of a componentwise division operation on a float4x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 operator / (float4x4 lhs, float rhs) { return new float4x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } - - /// Returns the result of a componentwise division operation on a float value and a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 operator / (float lhs, float4x4 rhs) { return new float4x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } - - - /// Returns the result of a componentwise modulus operation on two float4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 operator % (float4x4 lhs, float4x4 rhs) { return new float4x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } - - /// Returns the result of a componentwise modulus operation on a float4x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 operator % (float4x4 lhs, float rhs) { return new float4x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } - - /// Returns the result of a componentwise modulus operation on a float value and a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 operator % (float lhs, float4x4 rhs) { return new float4x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } - - - /// Returns the result of a componentwise increment operation on a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 operator ++ (float4x4 val) { return new float4x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } - - - /// Returns the result of a componentwise decrement operation on a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 operator -- (float4x4 val) { return new float4x4 (--val.c0, --val.c1, --val.c2, --val.c3); } - - - /// Returns the result of a componentwise less than operation on two float4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator < (float4x4 lhs, float4x4 rhs) { return new bool4x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } - - /// Returns the result of a componentwise less than operation on a float4x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator < (float4x4 lhs, float rhs) { return new bool4x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } - - /// Returns the result of a componentwise less than operation on a float value and a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator < (float lhs, float4x4 rhs) { return new bool4x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } - - - /// Returns the result of a componentwise less or equal operation on two float4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator <= (float4x4 lhs, float4x4 rhs) { return new bool4x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } - - /// Returns the result of a componentwise less or equal operation on a float4x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator <= (float4x4 lhs, float rhs) { return new bool4x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a float value and a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator <= (float lhs, float4x4 rhs) { return new bool4x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } - - - /// Returns the result of a componentwise greater than operation on two float4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator > (float4x4 lhs, float4x4 rhs) { return new bool4x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } - - /// Returns the result of a componentwise greater than operation on a float4x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator > (float4x4 lhs, float rhs) { return new bool4x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } - - /// Returns the result of a componentwise greater than operation on a float value and a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator > (float lhs, float4x4 rhs) { return new bool4x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } - - - /// Returns the result of a componentwise greater or equal operation on two float4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator >= (float4x4 lhs, float4x4 rhs) { return new bool4x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } - - /// Returns the result of a componentwise greater or equal operation on a float4x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator >= (float4x4 lhs, float rhs) { return new bool4x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a float value and a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator >= (float lhs, float4x4 rhs) { return new bool4x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } - - - /// Returns the result of a componentwise unary minus operation on a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 operator - (float4x4 val) { return new float4x4 (-val.c0, -val.c1, -val.c2, -val.c3); } - - - /// Returns the result of a componentwise unary plus operation on a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 operator + (float4x4 val) { return new float4x4 (+val.c0, +val.c1, +val.c2, +val.c3); } - - - /// Returns the result of a componentwise equality operation on two float4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator == (float4x4 lhs, float4x4 rhs) { return new bool4x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } - - /// Returns the result of a componentwise equality operation on a float4x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator == (float4x4 lhs, float rhs) { return new bool4x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } - - /// Returns the result of a componentwise equality operation on a float value and a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator == (float lhs, float4x4 rhs) { return new bool4x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } - - - /// Returns the result of a componentwise not equal operation on two float4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator != (float4x4 lhs, float4x4 rhs) { return new bool4x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } - - /// Returns the result of a componentwise not equal operation on a float4x4 matrix and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator != (float4x4 lhs, float rhs) { return new bool4x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } - - /// Returns the result of a componentwise not equal operation on a float value and a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator != (float lhs, float4x4 rhs) { return new bool4x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } - - - - /// Returns the float4 element at a specified index. - unsafe public ref float4 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (float4x4* array = &this) { return ref ((float4*)array)[index]; } - } - } - - /// Returns true if the float4x4 is equal to a given float4x4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(float4x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } - - /// Returns true if the float4x4 is equal to a given float4x4, false otherwise. - public override bool Equals(object o) { return Equals((float4x4)o); } - - - /// Returns a hash code for the float4x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the float4x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("float4x4({0}f, {1}f, {2}f, {3}f, {4}f, {5}f, {6}f, {7}f, {8}f, {9}f, {10}f, {11}f, {12}f, {13}f, {14}f, {15}f)", 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); - } - - /// Returns a string representation of the float4x4 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("float4x4({0}f, {1}f, {2}f, {3}f, {4}f, {5}f, {6}f, {7}f, {8}f, {9}f, {10}f, {11}f, {12}f, {13}f, {14}f, {15}f)", 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)); - } - - } - - public static partial class math - { - /// Returns a float4x4 matrix constructed from four float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 float4x4(float4 c0, float4 c1, float4 c2, float4 c3) { return new float4x4(c0, c1, c2, c3); } - - /// Returns a float4x4 matrix constructed from from 16 float values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 float4x4(float m00, float m01, float m02, float m03, - float m10, float m11, float m12, float m13, - float m20, float m21, float m22, float m23, - float m30, float m31, float m32, float m33) - { - return new float4x4(m00, m01, m02, m03, - m10, m11, m12, m13, - m20, m21, m22, m23, - m30, m31, m32, m33); - } - - /// Returns a float4x4 matrix constructed from a single float value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 float4x4(float v) { return new float4x4(v); } - - /// Returns a float4x4 matrix constructed from a single bool value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 float4x4(bool v) { return new float4x4(v); } - - /// Return a float4x4 matrix constructed from a bool4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 float4x4(bool4x4 v) { return new float4x4(v); } - - /// Returns a float4x4 matrix constructed from a single int value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 float4x4(int v) { return new float4x4(v); } - - /// Return a float4x4 matrix constructed from a int4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 float4x4(int4x4 v) { return new float4x4(v); } - - /// Returns a float4x4 matrix constructed from a single uint value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 float4x4(uint v) { return new float4x4(v); } - - /// Return a float4x4 matrix constructed from a uint4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 float4x4(uint4x4 v) { return new float4x4(v); } - - /// Returns a float4x4 matrix constructed from a single double value by converting it to float and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 float4x4(double v) { return new float4x4(v); } - - /// Return a float4x4 matrix constructed from a double4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 float4x4(double4x4 v) { return new float4x4(v); } - - /// Return the result of rotating a float3 vector by a float4x4 matrix - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 rotate(float4x4 a, float3 b) - { - return (a.c0 * b.x + a.c1 * b.y + a.c2 * b.z).xyz; - } - - /// Return the result of transforming a float3 point by a float4x4 matrix - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 transform(float4x4 a, float3 b) - { - return (a.c0 * b.x + a.c1 * b.y + a.c2 * b.z + a.c3).xyz; - } - - /// Return the float4x4 transpose of a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 transpose(float4x4 v) - { - return float4x4( - v.c0.x, v.c0.y, v.c0.z, v.c0.w, - v.c1.x, v.c1.y, v.c1.z, v.c1.w, - v.c2.x, v.c2.y, v.c2.z, v.c2.w, - v.c3.x, v.c3.y, v.c3.z, v.c3.w); - } - - /// Returns the float4x4 full inverse of a float4x4 matrix. - public static float4x4 inverse(float4x4 m) - { - float4 c0 = m.c0; - float4 c1 = m.c1; - float4 c2 = m.c2; - float4 c3 = m.c3; - - float4 r0y_r1y_r0x_r1x = movelh(c1, c0); - float4 r0z_r1z_r0w_r1w = movelh(c2, c3); - float4 r2y_r3y_r2x_r3x = movehl(c0, c1); - float4 r2z_r3z_r2w_r3w = movehl(c3, c2); - - float4 r1y_r2y_r1x_r2x = shuffle(c1, c0, ShuffleComponent.LeftY, ShuffleComponent.LeftZ, ShuffleComponent.RightY, ShuffleComponent.RightZ); - float4 r1z_r2z_r1w_r2w = shuffle(c2, c3, ShuffleComponent.LeftY, ShuffleComponent.LeftZ, ShuffleComponent.RightY, ShuffleComponent.RightZ); - float4 r3y_r0y_r3x_r0x = shuffle(c1, c0, ShuffleComponent.LeftW, ShuffleComponent.LeftX, ShuffleComponent.RightW, ShuffleComponent.RightX); - float4 r3z_r0z_r3w_r0w = shuffle(c2, c3, ShuffleComponent.LeftW, ShuffleComponent.LeftX, ShuffleComponent.RightW, ShuffleComponent.RightX); - - float4 r0_wzyx = shuffle(r0z_r1z_r0w_r1w, r0y_r1y_r0x_r1x, ShuffleComponent.LeftZ, ShuffleComponent.LeftX, ShuffleComponent.RightX, ShuffleComponent.RightZ); - float4 r1_wzyx = shuffle(r0z_r1z_r0w_r1w, r0y_r1y_r0x_r1x, ShuffleComponent.LeftW, ShuffleComponent.LeftY, ShuffleComponent.RightY, ShuffleComponent.RightW); - float4 r2_wzyx = shuffle(r2z_r3z_r2w_r3w, r2y_r3y_r2x_r3x, ShuffleComponent.LeftZ, ShuffleComponent.LeftX, ShuffleComponent.RightX, ShuffleComponent.RightZ); - float4 r3_wzyx = shuffle(r2z_r3z_r2w_r3w, r2y_r3y_r2x_r3x, ShuffleComponent.LeftW, ShuffleComponent.LeftY, ShuffleComponent.RightY, ShuffleComponent.RightW); - float4 r0_xyzw = shuffle(r0y_r1y_r0x_r1x, r0z_r1z_r0w_r1w, ShuffleComponent.LeftZ, ShuffleComponent.LeftX, ShuffleComponent.RightX, ShuffleComponent.RightZ); - - // Calculate remaining inner term pairs. inner terms have zw=-xy, so we only have to calculate xy and can pack two pairs per vector. - float4 inner12_23 = r1y_r2y_r1x_r2x * r2z_r3z_r2w_r3w - r1z_r2z_r1w_r2w * r2y_r3y_r2x_r3x; - float4 inner02_13 = r0y_r1y_r0x_r1x * r2z_r3z_r2w_r3w - r0z_r1z_r0w_r1w * r2y_r3y_r2x_r3x; - float4 inner30_01 = r3z_r0z_r3w_r0w * r0y_r1y_r0x_r1x - r3y_r0y_r3x_r0x * r0z_r1z_r0w_r1w; - - // Expand inner terms back to 4 components. zw signs still need to be flipped - float4 inner12 = shuffle(inner12_23, inner12_23, ShuffleComponent.LeftX, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.RightX); - float4 inner23 = shuffle(inner12_23, inner12_23, ShuffleComponent.LeftY, ShuffleComponent.LeftW, ShuffleComponent.RightW, ShuffleComponent.RightY); - - float4 inner02 = shuffle(inner02_13, inner02_13, ShuffleComponent.LeftX, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.RightX); - float4 inner13 = shuffle(inner02_13, inner02_13, ShuffleComponent.LeftY, ShuffleComponent.LeftW, ShuffleComponent.RightW, ShuffleComponent.RightY); - - // Calculate minors - float4 minors0 = r3_wzyx * inner12 - r2_wzyx * inner13 + r1_wzyx * inner23; - - float4 denom = r0_xyzw * minors0; - - // Horizontal sum of denominator. Free sign flip of z and w compensates for missing flip in inner terms. - denom = denom + shuffle(denom, denom, ShuffleComponent.LeftY, ShuffleComponent.LeftX, ShuffleComponent.RightW, ShuffleComponent.RightZ); // x+y x+y z+w z+w - denom = denom - shuffle(denom, denom, ShuffleComponent.LeftZ, ShuffleComponent.LeftZ, ShuffleComponent.RightX, ShuffleComponent.RightX); // x+y-z-w x+y-z-w z+w-x-y z+w-x-y - - float4 rcp_denom_ppnn = float4(1.0f) / denom; - float4x4 res; - res.c0 = minors0 * rcp_denom_ppnn; - - float4 inner30 = shuffle(inner30_01, inner30_01, ShuffleComponent.LeftX, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.RightX); - float4 inner01 = shuffle(inner30_01, inner30_01, ShuffleComponent.LeftY, ShuffleComponent.LeftW, ShuffleComponent.RightW, ShuffleComponent.RightY); - - float4 minors1 = r2_wzyx * inner30 - r0_wzyx * inner23 - r3_wzyx * inner02; - res.c1 = minors1 * rcp_denom_ppnn; - - float4 minors2 = r0_wzyx * inner13 - r1_wzyx * inner30 - r3_wzyx * inner01; - res.c2 = minors2 * rcp_denom_ppnn; - - float4 minors3 = r1_wzyx * inner02 - r0_wzyx * inner12 + r2_wzyx * inner01; - res.c3 = minors3 * rcp_denom_ppnn; - return res; - } - - // Fast matrix inverse for rigid transforms (Orthonormal basis and translation) - public static float4x4 fastinverse(float4x4 m) - { - float4 c0 = m.c0; - float4 c1 = m.c1; - float4 c2 = m.c2; - float4 pos = m.c3; - - float4 zero = float4(0); - - float4 t0 = unpacklo(c0, c2); - float4 t1 = unpacklo(c1, zero); - float4 t2 = unpackhi(c0, c2); - float4 t3 = unpackhi(c1, zero); - - float4 r0 = unpacklo(t0, t1); - float4 r1 = unpackhi(t0, t1); - float4 r2 = unpacklo(t2, t3); - - pos = -(r0 * pos.x + r1 * pos.y + r2 * pos.z); - pos.w = 1.0f; - - return float4x4(r0, r1, r2, pos); - } - - /// Returns the determinant of a float4x4 matrix. - public static float determinant(float4x4 m) - { - float4 c0 = m.c0; - float4 c1 = m.c1; - float4 c2 = m.c2; - float4 c3 = m.c3; - - float m00 = c1.y * (c2.z * c3.w - c2.w * c3.z) - c2.y * (c1.z * c3.w - c1.w * c3.z) + c3.y * (c1.z * c2.w - c1.w * c2.z); - float m01 = c0.y * (c2.z * c3.w - c2.w * c3.z) - c2.y * (c0.z * c3.w - c0.w * c3.z) + c3.y * (c0.z * c2.w - c0.w * c2.z); - float m02 = c0.y * (c1.z * c3.w - c1.w * c3.z) - c1.y * (c0.z * c3.w - c0.w * c3.z) + c3.y * (c0.z * c1.w - c0.w * c1.z); - float m03 = c0.y * (c1.z * c2.w - c1.w * c2.z) - c1.y * (c0.z * c2.w - c0.w * c2.z) + c2.y * (c0.z * c1.w - c0.w * c1.z); - - return c0.x * m00 - c1.x * m01 + c2.x * m02 - c3.x * m03; - } - - /// Returns a uint hash code of a float4x4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(float4x4 v) - { - return csum(asuint(v.c0) * uint4(0xC4B1493Fu, 0xBA0966D3u, 0xAFBEE253u, 0x5B419C01u) + - asuint(v.c1) * uint4(0x515D90F5u, 0xEC9F68F3u, 0xF9EA92D5u, 0xC2FAFCB9u) + - asuint(v.c2) * uint4(0x616E9CA1u, 0xC5C5394Bu, 0xCAE78587u, 0x7A1541C9u) + - asuint(v.c3) * uint4(0xF83BD927u, 0x6A243BCBu, 0x509B84C9u, 0x91D13847u)) + 0x52F7230Fu; - } - - /// - /// Returns a uint4 vector hash code of a float4x4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(float4x4 v) - { - return (asuint(v.c0) * uint4(0xCF286E83u, 0xE121E6ADu, 0xC9CA1249u, 0x69B60C81u) + - asuint(v.c1) * uint4(0xE0EB6C25u, 0xF648BEABu, 0x6BDB2B07u, 0xEF63C699u) + - asuint(v.c2) * uint4(0x9001903Fu, 0xA895B9CDu, 0x9D23B201u, 0x4B01D3E1u) + - asuint(v.c3) * uint4(0x7461CA0Du, 0x79725379u, 0xD6258E5Bu, 0xEE390C97u)) + 0x9C8A2F05u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/half.cs b/Economy.Shared/Unity.Mathematics/half.cs deleted file mode 100644 index 7f28b00ca..000000000 --- a/Economy.Shared/Unity.Mathematics/half.cs +++ /dev/null @@ -1,110 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Unity.Mathematics -{ - public struct half : System.IEquatable, IFormattable - { - public ushort value; - - /// half zero value. - public static readonly half zero = new half(); - - public static float MaxValue { get { return 65504.0f; } } - public static float MinValue { get { return -65504.0f; } } - - /// Constructs a half value from a half value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half(half x) - { - value = x.value; - } - - /// Constructs a half value from a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half(float v) - { - value = (ushort)math.f32tof16(v); - } - - /// Constructs a half value from a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half(double v) - { - value = (ushort)math.f32tof16((float)v); - } - - /// Explicitly converts a float value to a half value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator half(float v) { return new half(v); } - - /// Explicitly converts a double value to a half value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator half(double v) { return new half(v); } - - /// Implicitly converts a half value to a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float(half d) { return math.f16tof32(d.value); } - - /// Implicitly converts a half value to a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator double(half d) { return math.f16tof32(d.value); } - - - /// Returns whether two half values are equal. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool operator ==(half lhs, half rhs) { return lhs.value == rhs.value; } - - /// Returns whether two half values are different. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool operator !=(half lhs, half rhs) { return lhs.value != rhs.value; } - - - /// Returns true if the half is equal to a given half, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(half rhs) { return value == rhs.value; } - - /// Returns true if the half is equal to a given half, false otherwise. - public override bool Equals(object o) { return Equals((half)o); } - - /// Returns a hash code for the half. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)value; } - - /// Returns a string representation of the half. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return math.f16tof32(value).ToString(); - } - - /// Returns a string representation of the half using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return math.f16tof32(value).ToString(format, formatProvider); - } - } - - public static partial class math - { - /// Returns a half value constructed from a half values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half half(half x) { return new half(x); } - - /// Returns a half value constructed from a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half half(float v) { return new half(v); } - - /// Returns a half value constructed from a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half half(double v) { return new half(v); } - - /// Returns a uint hash code of a half value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(half v) - { - return v.value * 0x745ED837u + 0x816EFB5Du; - } - } -} diff --git a/Economy.Shared/Unity.Mathematics/half2.gen.cs b/Economy.Shared/Unity.Mathematics/half2.gen.cs deleted file mode 100644 index 6976df5ac..000000000 --- a/Economy.Shared/Unity.Mathematics/half2.gen.cs +++ /dev/null @@ -1,471 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; -using System.Diagnostics; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [DebuggerTypeProxy(typeof(half2.DebuggerProxy))] - public partial struct half2 : System.IEquatable, IFormattable - { - public half x; - public half y; - - /// half2 zero value. - public static readonly half2 zero; - - /// Constructs a half2 vector from two half values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half2(half x, half y) - { - this.x = x; - this.y = y; - } - - /// Constructs a half2 vector from a half2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half2(half2 xy) - { - this.x = xy.x; - this.y = xy.y; - } - - /// Constructs a half2 vector from a single half value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half2(half v) - { - this.x = v; - this.y = v; - } - - /// Constructs a half2 vector from a single float value by converting it to half and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half2(float v) - { - this.x = (half)v; - this.y = (half)v; - } - - /// Constructs a half2 vector from a float2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half2(float2 v) - { - this.x = (half)v.x; - this.y = (half)v.y; - } - - /// Constructs a half2 vector from a single double value by converting it to half and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half2(double v) - { - this.x = (half)v; - this.y = (half)v; - } - - /// Constructs a half2 vector from a double2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half2(double2 v) - { - this.x = (half)v.x; - this.y = (half)v.y; - } - - - /// Implicitly converts a single half value to a half2 vector by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator half2(half v) { return new half2(v); } - - /// Explicitly converts a single float value to a half2 vector by converting it to half and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator half2(float v) { return new half2(v); } - - /// Explicitly converts a float2 vector to a half2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator half2(float2 v) { return new half2(v); } - - /// Explicitly converts a single double value to a half2 vector by converting it to half and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator half2(double v) { return new half2(v); } - - /// Explicitly converts a double2 vector to a half2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator half2(double2 v) { return new half2(v); } - - - /// Returns the result of a componentwise equality operation on two half2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (half2 lhs, half2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } - - /// Returns the result of a componentwise equality operation on a half2 vector and a half value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (half2 lhs, half rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } - - /// Returns the result of a componentwise equality operation on a half value and a half2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (half lhs, half2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } - - - /// Returns the result of a componentwise not equal operation on two half2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (half2 lhs, half2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } - - /// Returns the result of a componentwise not equal operation on a half2 vector and a half value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (half2 lhs, half rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } - - /// Returns the result of a componentwise not equal operation on a half value and a half2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (half lhs, half2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } - - - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(y, y); } - } - - - - /// Returns the half element at a specified index. - unsafe public half this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (half2* array = &this) { return ((half*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (half* array = &x) { array[index] = value; } - } - } - - /// Returns true if the half2 is equal to a given half2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(half2 rhs) { return x == rhs.x && y == rhs.y; } - - /// Returns true if the half2 is equal to a given half2, false otherwise. - public override bool Equals(object o) { return Equals((half2)o); } - - - /// Returns a hash code for the half2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the half2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("half2({0}, {1})", x, y); - } - - /// Returns a string representation of the half2 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("half2({0}, {1})", x.ToString(format, formatProvider), y.ToString(format, formatProvider)); - } - - internal sealed class DebuggerProxy - { - public half x; - public half y; - public DebuggerProxy(half2 v) - { - x = v.x; - y = v.y; - } - } - - } - - public static partial class math - { - /// Returns a half2 vector constructed from two half values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half2 half2(half x, half y) { return new half2(x, y); } - - /// Returns a half2 vector constructed from a half2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half2 half2(half2 xy) { return new half2(xy); } - - /// Returns a half2 vector constructed from a single half value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half2 half2(half v) { return new half2(v); } - - /// Returns a half2 vector constructed from a single float value by converting it to half and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half2 half2(float v) { return new half2(v); } - - /// Return a half2 vector constructed from a float2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half2 half2(float2 v) { return new half2(v); } - - /// Returns a half2 vector constructed from a single double value by converting it to half and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half2 half2(double v) { return new half2(v); } - - /// Return a half2 vector constructed from a double2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half2 half2(double2 v) { return new half2(v); } - - /// Returns a uint hash code of a half2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(half2 v) - { - return csum(uint2(v.x.value, v.y.value) * uint2(0x6E624EB7u, 0x7383ED49u)) + 0xDD49C23Bu; - } - - /// - /// Returns a uint2 vector hash code of a half2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(half2 v) - { - return (uint2(v.x.value, v.y.value) * uint2(0xEBD0D005u, 0x91475DF7u)) + 0x55E84827u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/half3.gen.cs b/Economy.Shared/Unity.Mathematics/half3.gen.cs deleted file mode 100644 index 4cbba35cb..000000000 --- a/Economy.Shared/Unity.Mathematics/half3.gen.cs +++ /dev/null @@ -1,1239 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; -using System.Diagnostics; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [DebuggerTypeProxy(typeof(half3.DebuggerProxy))] - public partial struct half3 : System.IEquatable, IFormattable - { - public half x; - public half y; - public half z; - - /// half3 zero value. - public static readonly half3 zero; - - /// Constructs a half3 vector from three half values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half3(half x, half y, half z) - { - this.x = x; - this.y = y; - this.z = z; - } - - /// Constructs a half3 vector from a half value and a half2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half3(half x, half2 yz) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - } - - /// Constructs a half3 vector from a half2 vector and a half value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half3(half2 xy, half z) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - } - - /// Constructs a half3 vector from a half3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half3(half3 xyz) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - } - - /// Constructs a half3 vector from a single half value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half3(half v) - { - this.x = v; - this.y = v; - this.z = v; - } - - /// Constructs a half3 vector from a single float value by converting it to half and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half3(float v) - { - this.x = (half)v; - this.y = (half)v; - this.z = (half)v; - } - - /// Constructs a half3 vector from a float3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half3(float3 v) - { - this.x = (half)v.x; - this.y = (half)v.y; - this.z = (half)v.z; - } - - /// Constructs a half3 vector from a single double value by converting it to half and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half3(double v) - { - this.x = (half)v; - this.y = (half)v; - this.z = (half)v; - } - - /// Constructs a half3 vector from a double3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half3(double3 v) - { - this.x = (half)v.x; - this.y = (half)v.y; - this.z = (half)v.z; - } - - - /// Implicitly converts a single half value to a half3 vector by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator half3(half v) { return new half3(v); } - - /// Explicitly converts a single float value to a half3 vector by converting it to half and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator half3(float v) { return new half3(v); } - - /// Explicitly converts a float3 vector to a half3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator half3(float3 v) { return new half3(v); } - - /// Explicitly converts a single double value to a half3 vector by converting it to half and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator half3(double v) { return new half3(v); } - - /// Explicitly converts a double3 vector to a half3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator half3(double3 v) { return new half3(v); } - - - /// Returns the result of a componentwise equality operation on two half3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (half3 lhs, half3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } - - /// Returns the result of a componentwise equality operation on a half3 vector and a half value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (half3 lhs, half rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } - - /// Returns the result of a componentwise equality operation on a half value and a half3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (half lhs, half3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } - - - /// Returns the result of a componentwise not equal operation on two half3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (half3 lhs, half3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } - - /// Returns the result of a componentwise not equal operation on a half3 vector and a half value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (half3 lhs, half rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } - - /// Returns the result of a componentwise not equal operation on a half value and a half3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (half lhs, half3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } - - - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(z, z); } - } - - - - /// Returns the half element at a specified index. - unsafe public half this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (half3* array = &this) { return ((half*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (half* array = &x) { array[index] = value; } - } - } - - /// Returns true if the half3 is equal to a given half3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(half3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } - - /// Returns true if the half3 is equal to a given half3, false otherwise. - public override bool Equals(object o) { return Equals((half3)o); } - - - /// Returns a hash code for the half3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the half3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("half3({0}, {1}, {2})", x, y, z); - } - - /// Returns a string representation of the half3 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("half3({0}, {1}, {2})", x.ToString(format, formatProvider), y.ToString(format, formatProvider), z.ToString(format, formatProvider)); - } - - internal sealed class DebuggerProxy - { - public half x; - public half y; - public half z; - public DebuggerProxy(half3 v) - { - x = v.x; - y = v.y; - z = v.z; - } - } - - } - - public static partial class math - { - /// Returns a half3 vector constructed from three half values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half3 half3(half x, half y, half z) { return new half3(x, y, z); } - - /// Returns a half3 vector constructed from a half value and a half2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half3 half3(half x, half2 yz) { return new half3(x, yz); } - - /// Returns a half3 vector constructed from a half2 vector and a half value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half3 half3(half2 xy, half z) { return new half3(xy, z); } - - /// Returns a half3 vector constructed from a half3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half3 half3(half3 xyz) { return new half3(xyz); } - - /// Returns a half3 vector constructed from a single half value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half3 half3(half v) { return new half3(v); } - - /// Returns a half3 vector constructed from a single float value by converting it to half and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half3 half3(float v) { return new half3(v); } - - /// Return a half3 vector constructed from a float3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half3 half3(float3 v) { return new half3(v); } - - /// Returns a half3 vector constructed from a single double value by converting it to half and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half3 half3(double v) { return new half3(v); } - - /// Return a half3 vector constructed from a double3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half3 half3(double3 v) { return new half3(v); } - - /// Returns a uint hash code of a half3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(half3 v) - { - return csum(uint3(v.x.value, v.y.value, v.z.value) * uint3(0x685835CFu, 0xC3D32AE1u, 0xB966942Fu)) + 0xFE9856B3u; - } - - /// - /// Returns a uint3 vector hash code of a half3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(half3 v) - { - return (uint3(v.x.value, v.y.value, v.z.value) * uint3(0xFA3A3285u, 0xAD55999Du, 0xDCDD5341u)) + 0x94DDD769u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/half4.gen.cs b/Economy.Shared/Unity.Mathematics/half4.gen.cs deleted file mode 100644 index 69a0d4dcb..000000000 --- a/Economy.Shared/Unity.Mathematics/half4.gen.cs +++ /dev/null @@ -1,3155 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; -using System.Diagnostics; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [DebuggerTypeProxy(typeof(half4.DebuggerProxy))] - public partial struct half4 : System.IEquatable, IFormattable - { - public half x; - public half y; - public half z; - public half w; - - /// half4 zero value. - public static readonly half4 zero; - - /// Constructs a half4 vector from four half values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half4(half x, half y, half z, half w) - { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - - /// Constructs a half4 vector from two half values and a half2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half4(half x, half y, half2 zw) - { - this.x = x; - this.y = y; - this.z = zw.x; - this.w = zw.y; - } - - /// Constructs a half4 vector from a half value, a half2 vector and a half value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half4(half x, half2 yz, half w) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - this.w = w; - } - - /// Constructs a half4 vector from a half value and a half3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half4(half x, half3 yzw) - { - this.x = x; - this.y = yzw.x; - this.z = yzw.y; - this.w = yzw.z; - } - - /// Constructs a half4 vector from a half2 vector and two half values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half4(half2 xy, half z, half w) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - this.w = w; - } - - /// Constructs a half4 vector from two half2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half4(half2 xy, half2 zw) - { - this.x = xy.x; - this.y = xy.y; - this.z = zw.x; - this.w = zw.y; - } - - /// Constructs a half4 vector from a half3 vector and a half value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half4(half3 xyz, half w) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - this.w = w; - } - - /// Constructs a half4 vector from a half4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half4(half4 xyzw) - { - this.x = xyzw.x; - this.y = xyzw.y; - this.z = xyzw.z; - this.w = xyzw.w; - } - - /// Constructs a half4 vector from a single half value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half4(half v) - { - this.x = v; - this.y = v; - this.z = v; - this.w = v; - } - - /// Constructs a half4 vector from a single float value by converting it to half and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half4(float v) - { - this.x = (half)v; - this.y = (half)v; - this.z = (half)v; - this.w = (half)v; - } - - /// Constructs a half4 vector from a float4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half4(float4 v) - { - this.x = (half)v.x; - this.y = (half)v.y; - this.z = (half)v.z; - this.w = (half)v.w; - } - - /// Constructs a half4 vector from a single double value by converting it to half and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half4(double v) - { - this.x = (half)v; - this.y = (half)v; - this.z = (half)v; - this.w = (half)v; - } - - /// Constructs a half4 vector from a double4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public half4(double4 v) - { - this.x = (half)v.x; - this.y = (half)v.y; - this.z = (half)v.z; - this.w = (half)v.w; - } - - - /// Implicitly converts a single half value to a half4 vector by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator half4(half v) { return new half4(v); } - - /// Explicitly converts a single float value to a half4 vector by converting it to half and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator half4(float v) { return new half4(v); } - - /// Explicitly converts a float4 vector to a half4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator half4(float4 v) { return new half4(v); } - - /// Explicitly converts a single double value to a half4 vector by converting it to half and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator half4(double v) { return new half4(v); } - - /// Explicitly converts a double4 vector to a half4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator half4(double4 v) { return new half4(v); } - - - /// Returns the result of a componentwise equality operation on two half4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (half4 lhs, half4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } - - /// Returns the result of a componentwise equality operation on a half4 vector and a half value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (half4 lhs, half rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } - - /// Returns the result of a componentwise equality operation on a half value and a half4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (half lhs, half4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } - - - /// Returns the result of a componentwise not equal operation on two half4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (half4 lhs, half4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } - - /// Returns the result of a componentwise not equal operation on a half4 vector and a half value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (half4 lhs, half rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } - - /// Returns the result of a componentwise not equal operation on a half value and a half4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (half lhs, half4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } - - - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 xwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(x, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 yzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 ywxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 ywxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 ywxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 ywxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 ywyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 ywyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 ywyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 ywyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 ywzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 ywzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 ywzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 ywzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 ywwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 ywwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 ywwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 ywww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(y, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 zwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(z, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half4 wwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half4(w, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 xww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 ywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 ywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 ywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 yww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 zww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 wxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 wxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 wxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 wxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 wyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 wyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 wyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 wyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 wzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 wzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 wzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 wzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 wwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 wwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 wwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half3 www - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half3(w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 xw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 yw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 zw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 wx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 wy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 wz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public half2 ww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new half2(w, w); } - } - - - - /// Returns the half element at a specified index. - unsafe public half this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (half4* array = &this) { return ((half*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (half* array = &x) { array[index] = value; } - } - } - - /// Returns true if the half4 is equal to a given half4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(half4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } - - /// Returns true if the half4 is equal to a given half4, false otherwise. - public override bool Equals(object o) { return Equals((half4)o); } - - - /// Returns a hash code for the half4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the half4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("half4({0}, {1}, {2}, {3})", x, y, z, w); - } - - /// Returns a string representation of the half4 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("half4({0}, {1}, {2}, {3})", x.ToString(format, formatProvider), y.ToString(format, formatProvider), z.ToString(format, formatProvider), w.ToString(format, formatProvider)); - } - - internal sealed class DebuggerProxy - { - public half x; - public half y; - public half z; - public half w; - public DebuggerProxy(half4 v) - { - x = v.x; - y = v.y; - z = v.z; - w = v.w; - } - } - - } - - public static partial class math - { - /// Returns a half4 vector constructed from four half values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half4 half4(half x, half y, half z, half w) { return new half4(x, y, z, w); } - - /// Returns a half4 vector constructed from two half values and a half2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half4 half4(half x, half y, half2 zw) { return new half4(x, y, zw); } - - /// Returns a half4 vector constructed from a half value, a half2 vector and a half value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half4 half4(half x, half2 yz, half w) { return new half4(x, yz, w); } - - /// Returns a half4 vector constructed from a half value and a half3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half4 half4(half x, half3 yzw) { return new half4(x, yzw); } - - /// Returns a half4 vector constructed from a half2 vector and two half values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half4 half4(half2 xy, half z, half w) { return new half4(xy, z, w); } - - /// Returns a half4 vector constructed from two half2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half4 half4(half2 xy, half2 zw) { return new half4(xy, zw); } - - /// Returns a half4 vector constructed from a half3 vector and a half value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half4 half4(half3 xyz, half w) { return new half4(xyz, w); } - - /// Returns a half4 vector constructed from a half4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half4 half4(half4 xyzw) { return new half4(xyzw); } - - /// Returns a half4 vector constructed from a single half value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half4 half4(half v) { return new half4(v); } - - /// Returns a half4 vector constructed from a single float value by converting it to half and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half4 half4(float v) { return new half4(v); } - - /// Return a half4 vector constructed from a float4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half4 half4(float4 v) { return new half4(v); } - - /// Returns a half4 vector constructed from a single double value by converting it to half and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half4 half4(double v) { return new half4(v); } - - /// Return a half4 vector constructed from a double4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static half4 half4(double4 v) { return new half4(v); } - - /// Returns a uint hash code of a half4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(half4 v) - { - return csum(uint4(v.x.value, v.y.value, v.z.value, v.w.value) * uint4(0x745ED837u, 0x9CDC88F5u, 0xFA62D721u, 0x7E4DB1CFu)) + 0x68EEE0F5u; - } - - /// - /// Returns a uint4 vector hash code of a half4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(half4 v) - { - return (uint4(v.x.value, v.y.value, v.z.value, v.w.value) * uint4(0xBC3B0A59u, 0x816EFB5Du, 0xA24E82B7u, 0x45A22087u)) + 0xFC104C3Bu; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/int2.gen.cs b/Economy.Shared/Unity.Mathematics/int2.gen.cs deleted file mode 100644 index 6757c2e5b..000000000 --- a/Economy.Shared/Unity.Mathematics/int2.gen.cs +++ /dev/null @@ -1,780 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; -using System.Diagnostics; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [DebuggerTypeProxy(typeof(int2.DebuggerProxy))] - [System.Serializable] - public partial struct int2 : System.IEquatable, IFormattable - { - public int x; - public int y; - - /// int2 zero value. - public static readonly int2 zero; - - /// Constructs a int2 vector from two int values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2(int x, int y) - { - this.x = x; - this.y = y; - } - - /// Constructs a int2 vector from an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2(int2 xy) - { - this.x = xy.x; - this.y = xy.y; - } - - /// Constructs a int2 vector from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2(int v) - { - this.x = v; - this.y = v; - } - - /// Constructs a int2 vector from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2(bool v) - { - this.x = v ? 1 : 0; - this.y = v ? 1 : 0; - } - - /// Constructs a int2 vector from a bool2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2(bool2 v) - { - this.x = v.x ? 1 : 0; - this.y = v.y ? 1 : 0; - } - - /// Constructs a int2 vector from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2(uint v) - { - this.x = (int)v; - this.y = (int)v; - } - - /// Constructs a int2 vector from a uint2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2(uint2 v) - { - this.x = (int)v.x; - this.y = (int)v.y; - } - - /// Constructs a int2 vector from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2(float v) - { - this.x = (int)v; - this.y = (int)v; - } - - /// Constructs a int2 vector from a float2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2(float2 v) - { - this.x = (int)v.x; - this.y = (int)v.y; - } - - /// Constructs a int2 vector from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2(double v) - { - this.x = (int)v; - this.y = (int)v; - } - - /// Constructs a int2 vector from a double2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2(double2 v) - { - this.x = (int)v.x; - this.y = (int)v.y; - } - - - /// Implicitly converts a single int value to a int2 vector by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator int2(int v) { return new int2(v); } - - /// Explicitly converts a single bool value to a int2 vector by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2(bool v) { return new int2(v); } - - /// Explicitly converts a bool2 vector to a int2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2(bool2 v) { return new int2(v); } - - /// Explicitly converts a single uint value to a int2 vector by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2(uint v) { return new int2(v); } - - /// Explicitly converts a uint2 vector to a int2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2(uint2 v) { return new int2(v); } - - /// Explicitly converts a single float value to a int2 vector by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2(float v) { return new int2(v); } - - /// Explicitly converts a float2 vector to a int2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2(float2 v) { return new int2(v); } - - /// Explicitly converts a single double value to a int2 vector by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2(double v) { return new int2(v); } - - /// Explicitly converts a double2 vector to a int2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2(double2 v) { return new int2(v); } - - - /// Returns the result of a componentwise multiplication operation on two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator * (int2 lhs, int2 rhs) { return new int2 (lhs.x * rhs.x, lhs.y * rhs.y); } - - /// Returns the result of a componentwise multiplication operation on an int2 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator * (int2 lhs, int rhs) { return new int2 (lhs.x * rhs, lhs.y * rhs); } - - /// Returns the result of a componentwise multiplication operation on an int value and an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator * (int lhs, int2 rhs) { return new int2 (lhs * rhs.x, lhs * rhs.y); } - - - /// Returns the result of a componentwise addition operation on two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator + (int2 lhs, int2 rhs) { return new int2 (lhs.x + rhs.x, lhs.y + rhs.y); } - - /// Returns the result of a componentwise addition operation on an int2 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator + (int2 lhs, int rhs) { return new int2 (lhs.x + rhs, lhs.y + rhs); } - - /// Returns the result of a componentwise addition operation on an int value and an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator + (int lhs, int2 rhs) { return new int2 (lhs + rhs.x, lhs + rhs.y); } - - - /// Returns the result of a componentwise subtraction operation on two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator - (int2 lhs, int2 rhs) { return new int2 (lhs.x - rhs.x, lhs.y - rhs.y); } - - /// Returns the result of a componentwise subtraction operation on an int2 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator - (int2 lhs, int rhs) { return new int2 (lhs.x - rhs, lhs.y - rhs); } - - /// Returns the result of a componentwise subtraction operation on an int value and an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator - (int lhs, int2 rhs) { return new int2 (lhs - rhs.x, lhs - rhs.y); } - - - /// Returns the result of a componentwise division operation on two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator / (int2 lhs, int2 rhs) { return new int2 (lhs.x / rhs.x, lhs.y / rhs.y); } - - /// Returns the result of a componentwise division operation on an int2 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator / (int2 lhs, int rhs) { return new int2 (lhs.x / rhs, lhs.y / rhs); } - - /// Returns the result of a componentwise division operation on an int value and an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator / (int lhs, int2 rhs) { return new int2 (lhs / rhs.x, lhs / rhs.y); } - - - /// Returns the result of a componentwise modulus operation on two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator % (int2 lhs, int2 rhs) { return new int2 (lhs.x % rhs.x, lhs.y % rhs.y); } - - /// Returns the result of a componentwise modulus operation on an int2 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator % (int2 lhs, int rhs) { return new int2 (lhs.x % rhs, lhs.y % rhs); } - - /// Returns the result of a componentwise modulus operation on an int value and an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator % (int lhs, int2 rhs) { return new int2 (lhs % rhs.x, lhs % rhs.y); } - - - /// Returns the result of a componentwise increment operation on an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator ++ (int2 val) { return new int2 (++val.x, ++val.y); } - - - /// Returns the result of a componentwise decrement operation on an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator -- (int2 val) { return new int2 (--val.x, --val.y); } - - - /// Returns the result of a componentwise less than operation on two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (int2 lhs, int2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } - - /// Returns the result of a componentwise less than operation on an int2 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (int2 lhs, int rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } - - /// Returns the result of a componentwise less than operation on an int value and an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (int lhs, int2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } - - - /// Returns the result of a componentwise less or equal operation on two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (int2 lhs, int2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } - - /// Returns the result of a componentwise less or equal operation on an int2 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (int2 lhs, int rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } - - /// Returns the result of a componentwise less or equal operation on an int value and an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (int lhs, int2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } - - - /// Returns the result of a componentwise greater than operation on two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (int2 lhs, int2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } - - /// Returns the result of a componentwise greater than operation on an int2 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (int2 lhs, int rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } - - /// Returns the result of a componentwise greater than operation on an int value and an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (int lhs, int2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } - - - /// Returns the result of a componentwise greater or equal operation on two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (int2 lhs, int2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } - - /// Returns the result of a componentwise greater or equal operation on an int2 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (int2 lhs, int rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on an int value and an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (int lhs, int2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } - - - /// Returns the result of a componentwise unary minus operation on an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator - (int2 val) { return new int2 (-val.x, -val.y); } - - - /// Returns the result of a componentwise unary plus operation on an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator + (int2 val) { return new int2 (+val.x, +val.y); } - - - /// Returns the result of a componentwise left shift operation on an int2 vector by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator << (int2 x, int n) { return new int2 (x.x << n, x.y << n); } - - /// Returns the result of a componentwise right shift operation on an int2 vector by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator >> (int2 x, int n) { return new int2 (x.x >> n, x.y >> n); } - - /// Returns the result of a componentwise equality operation on two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (int2 lhs, int2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } - - /// Returns the result of a componentwise equality operation on an int2 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (int2 lhs, int rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } - - /// Returns the result of a componentwise equality operation on an int value and an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (int lhs, int2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } - - - /// Returns the result of a componentwise not equal operation on two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (int2 lhs, int2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } - - /// Returns the result of a componentwise not equal operation on an int2 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (int2 lhs, int rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } - - /// Returns the result of a componentwise not equal operation on an int value and an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (int lhs, int2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } - - - /// Returns the result of a componentwise bitwise not operation on an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator ~ (int2 val) { return new int2 (~val.x, ~val.y); } - - - /// Returns the result of a componentwise bitwise and operation on two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator & (int2 lhs, int2 rhs) { return new int2 (lhs.x & rhs.x, lhs.y & rhs.y); } - - /// Returns the result of a componentwise bitwise and operation on an int2 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator & (int2 lhs, int rhs) { return new int2 (lhs.x & rhs, lhs.y & rhs); } - - /// Returns the result of a componentwise bitwise and operation on an int value and an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator & (int lhs, int2 rhs) { return new int2 (lhs & rhs.x, lhs & rhs.y); } - - - /// Returns the result of a componentwise bitwise or operation on two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator | (int2 lhs, int2 rhs) { return new int2 (lhs.x | rhs.x, lhs.y | rhs.y); } - - /// Returns the result of a componentwise bitwise or operation on an int2 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator | (int2 lhs, int rhs) { return new int2 (lhs.x | rhs, lhs.y | rhs); } - - /// Returns the result of a componentwise bitwise or operation on an int value and an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator | (int lhs, int2 rhs) { return new int2 (lhs | rhs.x, lhs | rhs.y); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator ^ (int2 lhs, int2 rhs) { return new int2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int2 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator ^ (int2 lhs, int rhs) { return new int2 (lhs.x ^ rhs, lhs.y ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator ^ (int lhs, int2 rhs) { return new int2 (lhs ^ rhs.x, lhs ^ rhs.y); } - - - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(y, y); } - } - - - - /// Returns the int element at a specified index. - unsafe public int this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (int2* array = &this) { return ((int*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (int* array = &x) { array[index] = value; } - } - } - - /// Returns true if the int2 is equal to a given int2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(int2 rhs) { return x == rhs.x && y == rhs.y; } - - /// Returns true if the int2 is equal to a given int2, false otherwise. - public override bool Equals(object o) { return Equals((int2)o); } - - - /// Returns a hash code for the int2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the int2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("int2({0}, {1})", x, y); - } - - /// Returns a string representation of the int2 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("int2({0}, {1})", x.ToString(format, formatProvider), y.ToString(format, formatProvider)); - } - - internal sealed class DebuggerProxy - { - public int x; - public int y; - public DebuggerProxy(int2 v) - { - x = v.x; - y = v.y; - } - } - - } - - public static partial class math - { - /// Returns a int2 vector constructed from two int values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 int2(int x, int y) { return new int2(x, y); } - - /// Returns a int2 vector constructed from an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 int2(int2 xy) { return new int2(xy); } - - /// Returns a int2 vector constructed from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 int2(int v) { return new int2(v); } - - /// Returns a int2 vector constructed from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 int2(bool v) { return new int2(v); } - - /// Return a int2 vector constructed from a bool2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 int2(bool2 v) { return new int2(v); } - - /// Returns a int2 vector constructed from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 int2(uint v) { return new int2(v); } - - /// Return a int2 vector constructed from a uint2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 int2(uint2 v) { return new int2(v); } - - /// Returns a int2 vector constructed from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 int2(float v) { return new int2(v); } - - /// Return a int2 vector constructed from a float2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 int2(float2 v) { return new int2(v); } - - /// Returns a int2 vector constructed from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 int2(double v) { return new int2(v); } - - /// Return a int2 vector constructed from a double2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 int2(double2 v) { return new int2(v); } - - /// Returns a uint hash code of a int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(int2 v) - { - return csum(asuint(v) * uint2(0x83B58237u, 0x833E3E29u)) + 0xA9D919BFu; - } - - /// - /// Returns a uint2 vector hash code of a int2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(int2 v) - { - return (asuint(v) * uint2(0xC3EC1D97u, 0xB8B208C7u)) + 0x5D3ED947u; - } - - /// Returns the result of specified shuffling of the components from two int2 vectors into an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int shuffle(int2 a, int2 b, ShuffleComponent x) - { - return select_shuffle_component(a, b, x); - } - - /// Returns the result of specified shuffling of the components from two int2 vectors into an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 shuffle(int2 a, int2 b, ShuffleComponent x, ShuffleComponent y) - { - return int2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); - } - - /// Returns the result of specified shuffling of the components from two int2 vectors into an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 shuffle(int2 a, int2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) - { - return int3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); - } - - /// Returns the result of specified shuffling of the components from two int2 vectors into an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 shuffle(int2 a, int2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) - { - return int4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int select_shuffle_component(int2 a, int2 b, ShuffleComponent component) - { - switch(component) - { - case ShuffleComponent.LeftX: - return a.x; - case ShuffleComponent.LeftY: - return a.y; - case ShuffleComponent.RightX: - return b.x; - case ShuffleComponent.RightY: - return b.y; - default: - throw new System.ArgumentException("Invalid shuffle component: " + component); - } - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/int2x2.gen.cs b/Economy.Shared/Unity.Mathematics/int2x2.gen.cs deleted file mode 100644 index 8eb2671bc..000000000 --- a/Economy.Shared/Unity.Mathematics/int2x2.gen.cs +++ /dev/null @@ -1,506 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct int2x2 : System.IEquatable, IFormattable - { - public int2 c0; - public int2 c1; - - /// int2x2 identity transform. - public static readonly int2x2 identity = new int2x2(1, 0, 0, 1); - - /// int2x2 zero value. - public static readonly int2x2 zero; - - /// Constructs a int2x2 matrix from two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x2(int2 c0, int2 c1) - { - this.c0 = c0; - this.c1 = c1; - } - - /// Constructs a int2x2 matrix from 4 int values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x2(int m00, int m01, - int m10, int m11) - { - this.c0 = new int2(m00, m10); - this.c1 = new int2(m01, m11); - } - - /// Constructs a int2x2 matrix from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x2(int v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a int2x2 matrix from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x2(bool v) - { - this.c0 = math.select(new int2(0), new int2(1), v); - this.c1 = math.select(new int2(0), new int2(1), v); - } - - /// Constructs a int2x2 matrix from a bool2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x2(bool2x2 v) - { - this.c0 = math.select(new int2(0), new int2(1), v.c0); - this.c1 = math.select(new int2(0), new int2(1), v.c1); - } - - /// Constructs a int2x2 matrix from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x2(uint v) - { - this.c0 = (int2)v; - this.c1 = (int2)v; - } - - /// Constructs a int2x2 matrix from a uint2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x2(uint2x2 v) - { - this.c0 = (int2)v.c0; - this.c1 = (int2)v.c1; - } - - /// Constructs a int2x2 matrix from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x2(float v) - { - this.c0 = (int2)v; - this.c1 = (int2)v; - } - - /// Constructs a int2x2 matrix from a float2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x2(float2x2 v) - { - this.c0 = (int2)v.c0; - this.c1 = (int2)v.c1; - } - - /// Constructs a int2x2 matrix from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x2(double v) - { - this.c0 = (int2)v; - this.c1 = (int2)v; - } - - /// Constructs a int2x2 matrix from a double2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x2(double2x2 v) - { - this.c0 = (int2)v.c0; - this.c1 = (int2)v.c1; - } - - - /// Implicitly converts a single int value to a int2x2 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator int2x2(int v) { return new int2x2(v); } - - /// Explicitly converts a single bool value to a int2x2 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x2(bool v) { return new int2x2(v); } - - /// Explicitly converts a bool2x2 matrix to a int2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x2(bool2x2 v) { return new int2x2(v); } - - /// Explicitly converts a single uint value to a int2x2 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x2(uint v) { return new int2x2(v); } - - /// Explicitly converts a uint2x2 matrix to a int2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x2(uint2x2 v) { return new int2x2(v); } - - /// Explicitly converts a single float value to a int2x2 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x2(float v) { return new int2x2(v); } - - /// Explicitly converts a float2x2 matrix to a int2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x2(float2x2 v) { return new int2x2(v); } - - /// Explicitly converts a single double value to a int2x2 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x2(double v) { return new int2x2(v); } - - /// Explicitly converts a double2x2 matrix to a int2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x2(double2x2 v) { return new int2x2(v); } - - - /// Returns the result of a componentwise multiplication operation on two int2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator * (int2x2 lhs, int2x2 rhs) { return new int2x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } - - /// Returns the result of a componentwise multiplication operation on an int2x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator * (int2x2 lhs, int rhs) { return new int2x2 (lhs.c0 * rhs, lhs.c1 * rhs); } - - /// Returns the result of a componentwise multiplication operation on an int value and an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator * (int lhs, int2x2 rhs) { return new int2x2 (lhs * rhs.c0, lhs * rhs.c1); } - - - /// Returns the result of a componentwise addition operation on two int2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator + (int2x2 lhs, int2x2 rhs) { return new int2x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } - - /// Returns the result of a componentwise addition operation on an int2x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator + (int2x2 lhs, int rhs) { return new int2x2 (lhs.c0 + rhs, lhs.c1 + rhs); } - - /// Returns the result of a componentwise addition operation on an int value and an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator + (int lhs, int2x2 rhs) { return new int2x2 (lhs + rhs.c0, lhs + rhs.c1); } - - - /// Returns the result of a componentwise subtraction operation on two int2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator - (int2x2 lhs, int2x2 rhs) { return new int2x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } - - /// Returns the result of a componentwise subtraction operation on an int2x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator - (int2x2 lhs, int rhs) { return new int2x2 (lhs.c0 - rhs, lhs.c1 - rhs); } - - /// Returns the result of a componentwise subtraction operation on an int value and an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator - (int lhs, int2x2 rhs) { return new int2x2 (lhs - rhs.c0, lhs - rhs.c1); } - - - /// Returns the result of a componentwise division operation on two int2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator / (int2x2 lhs, int2x2 rhs) { return new int2x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } - - /// Returns the result of a componentwise division operation on an int2x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator / (int2x2 lhs, int rhs) { return new int2x2 (lhs.c0 / rhs, lhs.c1 / rhs); } - - /// Returns the result of a componentwise division operation on an int value and an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator / (int lhs, int2x2 rhs) { return new int2x2 (lhs / rhs.c0, lhs / rhs.c1); } - - - /// Returns the result of a componentwise modulus operation on two int2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator % (int2x2 lhs, int2x2 rhs) { return new int2x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } - - /// Returns the result of a componentwise modulus operation on an int2x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator % (int2x2 lhs, int rhs) { return new int2x2 (lhs.c0 % rhs, lhs.c1 % rhs); } - - /// Returns the result of a componentwise modulus operation on an int value and an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator % (int lhs, int2x2 rhs) { return new int2x2 (lhs % rhs.c0, lhs % rhs.c1); } - - - /// Returns the result of a componentwise increment operation on an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator ++ (int2x2 val) { return new int2x2 (++val.c0, ++val.c1); } - - - /// Returns the result of a componentwise decrement operation on an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator -- (int2x2 val) { return new int2x2 (--val.c0, --val.c1); } - - - /// Returns the result of a componentwise less than operation on two int2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator < (int2x2 lhs, int2x2 rhs) { return new bool2x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } - - /// Returns the result of a componentwise less than operation on an int2x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator < (int2x2 lhs, int rhs) { return new bool2x2 (lhs.c0 < rhs, lhs.c1 < rhs); } - - /// Returns the result of a componentwise less than operation on an int value and an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator < (int lhs, int2x2 rhs) { return new bool2x2 (lhs < rhs.c0, lhs < rhs.c1); } - - - /// Returns the result of a componentwise less or equal operation on two int2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator <= (int2x2 lhs, int2x2 rhs) { return new bool2x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } - - /// Returns the result of a componentwise less or equal operation on an int2x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator <= (int2x2 lhs, int rhs) { return new bool2x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on an int value and an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator <= (int lhs, int2x2 rhs) { return new bool2x2 (lhs <= rhs.c0, lhs <= rhs.c1); } - - - /// Returns the result of a componentwise greater than operation on two int2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator > (int2x2 lhs, int2x2 rhs) { return new bool2x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } - - /// Returns the result of a componentwise greater than operation on an int2x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator > (int2x2 lhs, int rhs) { return new bool2x2 (lhs.c0 > rhs, lhs.c1 > rhs); } - - /// Returns the result of a componentwise greater than operation on an int value and an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator > (int lhs, int2x2 rhs) { return new bool2x2 (lhs > rhs.c0, lhs > rhs.c1); } - - - /// Returns the result of a componentwise greater or equal operation on two int2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator >= (int2x2 lhs, int2x2 rhs) { return new bool2x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } - - /// Returns the result of a componentwise greater or equal operation on an int2x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator >= (int2x2 lhs, int rhs) { return new bool2x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on an int value and an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator >= (int lhs, int2x2 rhs) { return new bool2x2 (lhs >= rhs.c0, lhs >= rhs.c1); } - - - /// Returns the result of a componentwise unary minus operation on an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator - (int2x2 val) { return new int2x2 (-val.c0, -val.c1); } - - - /// Returns the result of a componentwise unary plus operation on an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator + (int2x2 val) { return new int2x2 (+val.c0, +val.c1); } - - - /// Returns the result of a componentwise left shift operation on an int2x2 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator << (int2x2 x, int n) { return new int2x2 (x.c0 << n, x.c1 << n); } - - /// Returns the result of a componentwise right shift operation on an int2x2 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator >> (int2x2 x, int n) { return new int2x2 (x.c0 >> n, x.c1 >> n); } - - /// Returns the result of a componentwise equality operation on two int2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator == (int2x2 lhs, int2x2 rhs) { return new bool2x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } - - /// Returns the result of a componentwise equality operation on an int2x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator == (int2x2 lhs, int rhs) { return new bool2x2 (lhs.c0 == rhs, lhs.c1 == rhs); } - - /// Returns the result of a componentwise equality operation on an int value and an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator == (int lhs, int2x2 rhs) { return new bool2x2 (lhs == rhs.c0, lhs == rhs.c1); } - - - /// Returns the result of a componentwise not equal operation on two int2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator != (int2x2 lhs, int2x2 rhs) { return new bool2x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } - - /// Returns the result of a componentwise not equal operation on an int2x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator != (int2x2 lhs, int rhs) { return new bool2x2 (lhs.c0 != rhs, lhs.c1 != rhs); } - - /// Returns the result of a componentwise not equal operation on an int value and an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator != (int lhs, int2x2 rhs) { return new bool2x2 (lhs != rhs.c0, lhs != rhs.c1); } - - - /// Returns the result of a componentwise bitwise not operation on an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator ~ (int2x2 val) { return new int2x2 (~val.c0, ~val.c1); } - - - /// Returns the result of a componentwise bitwise and operation on two int2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator & (int2x2 lhs, int2x2 rhs) { return new int2x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); } - - /// Returns the result of a componentwise bitwise and operation on an int2x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator & (int2x2 lhs, int rhs) { return new int2x2 (lhs.c0 & rhs, lhs.c1 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on an int value and an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator & (int lhs, int2x2 rhs) { return new int2x2 (lhs & rhs.c0, lhs & rhs.c1); } - - - /// Returns the result of a componentwise bitwise or operation on two int2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator | (int2x2 lhs, int2x2 rhs) { return new int2x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); } - - /// Returns the result of a componentwise bitwise or operation on an int2x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator | (int2x2 lhs, int rhs) { return new int2x2 (lhs.c0 | rhs, lhs.c1 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on an int value and an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator | (int lhs, int2x2 rhs) { return new int2x2 (lhs | rhs.c0, lhs | rhs.c1); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two int2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator ^ (int2x2 lhs, int2x2 rhs) { return new int2x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int2x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator ^ (int2x2 lhs, int rhs) { return new int2x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 operator ^ (int lhs, int2x2 rhs) { return new int2x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); } - - - - /// Returns the int2 element at a specified index. - unsafe public ref int2 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (int2x2* array = &this) { return ref ((int2*)array)[index]; } - } - } - - /// Returns true if the int2x2 is equal to a given int2x2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(int2x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } - - /// Returns true if the int2x2 is equal to a given int2x2, false otherwise. - public override bool Equals(object o) { return Equals((int2x2)o); } - - - /// Returns a hash code for the int2x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the int2x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("int2x2({0}, {1}, {2}, {3})", c0.x, c1.x, c0.y, c1.y); - } - - /// Returns a string representation of the int2x2 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("int2x2({0}, {1}, {2}, {3})", c0.x.ToString(format, formatProvider), c1.x.ToString(format, formatProvider), c0.y.ToString(format, formatProvider), c1.y.ToString(format, formatProvider)); - } - - } - - public static partial class math - { - /// Returns a int2x2 matrix constructed from two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 int2x2(int2 c0, int2 c1) { return new int2x2(c0, c1); } - - /// Returns a int2x2 matrix constructed from from 4 int values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 int2x2(int m00, int m01, - int m10, int m11) - { - return new int2x2(m00, m01, - m10, m11); - } - - /// Returns a int2x2 matrix constructed from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 int2x2(int v) { return new int2x2(v); } - - /// Returns a int2x2 matrix constructed from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 int2x2(bool v) { return new int2x2(v); } - - /// Return a int2x2 matrix constructed from a bool2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 int2x2(bool2x2 v) { return new int2x2(v); } - - /// Returns a int2x2 matrix constructed from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 int2x2(uint v) { return new int2x2(v); } - - /// Return a int2x2 matrix constructed from a uint2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 int2x2(uint2x2 v) { return new int2x2(v); } - - /// Returns a int2x2 matrix constructed from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 int2x2(float v) { return new int2x2(v); } - - /// Return a int2x2 matrix constructed from a float2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 int2x2(float2x2 v) { return new int2x2(v); } - - /// Returns a int2x2 matrix constructed from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 int2x2(double v) { return new int2x2(v); } - - /// Return a int2x2 matrix constructed from a double2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 int2x2(double2x2 v) { return new int2x2(v); } - - /// Return the int2x2 transpose of a int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 transpose(int2x2 v) - { - return int2x2( - v.c0.x, v.c0.y, - v.c1.x, v.c1.y); - } - - /// Returns the determinant of a int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int determinant(int2x2 m) - { - int a = m.c0.x; - int b = m.c1.x; - int c = m.c0.y; - int d = m.c1.y; - - return a * d - b * c; - } - - /// Returns a uint hash code of a int2x2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(int2x2 v) - { - return csum(asuint(v.c0) * uint2(0xE191B035u, 0x68586FAFu) + - asuint(v.c1) * uint2(0xD4DFF6D3u, 0xCB634F4Du)) + 0x9B13B92Du; - } - - /// - /// Returns a uint2 vector hash code of a int2x2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(int2x2 v) - { - return (asuint(v.c0) * uint2(0x4ABF0813u, 0x86068063u) + - asuint(v.c1) * uint2(0xD75513F9u, 0x5AB3E8CDu)) + 0x676E8407u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/int2x3.gen.cs b/Economy.Shared/Unity.Mathematics/int2x3.gen.cs deleted file mode 100644 index 500a949cc..000000000 --- a/Economy.Shared/Unity.Mathematics/int2x3.gen.cs +++ /dev/null @@ -1,506 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct int2x3 : System.IEquatable, IFormattable - { - public int2 c0; - public int2 c1; - public int2 c2; - - /// int2x3 zero value. - public static readonly int2x3 zero; - - /// Constructs a int2x3 matrix from three int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x3(int2 c0, int2 c1, int2 c2) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - } - - /// Constructs a int2x3 matrix from 6 int values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x3(int m00, int m01, int m02, - int m10, int m11, int m12) - { - this.c0 = new int2(m00, m10); - this.c1 = new int2(m01, m11); - this.c2 = new int2(m02, m12); - } - - /// Constructs a int2x3 matrix from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x3(int v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a int2x3 matrix from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x3(bool v) - { - this.c0 = math.select(new int2(0), new int2(1), v); - this.c1 = math.select(new int2(0), new int2(1), v); - this.c2 = math.select(new int2(0), new int2(1), v); - } - - /// Constructs a int2x3 matrix from a bool2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x3(bool2x3 v) - { - this.c0 = math.select(new int2(0), new int2(1), v.c0); - this.c1 = math.select(new int2(0), new int2(1), v.c1); - this.c2 = math.select(new int2(0), new int2(1), v.c2); - } - - /// Constructs a int2x3 matrix from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x3(uint v) - { - this.c0 = (int2)v; - this.c1 = (int2)v; - this.c2 = (int2)v; - } - - /// Constructs a int2x3 matrix from a uint2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x3(uint2x3 v) - { - this.c0 = (int2)v.c0; - this.c1 = (int2)v.c1; - this.c2 = (int2)v.c2; - } - - /// Constructs a int2x3 matrix from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x3(float v) - { - this.c0 = (int2)v; - this.c1 = (int2)v; - this.c2 = (int2)v; - } - - /// Constructs a int2x3 matrix from a float2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x3(float2x3 v) - { - this.c0 = (int2)v.c0; - this.c1 = (int2)v.c1; - this.c2 = (int2)v.c2; - } - - /// Constructs a int2x3 matrix from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x3(double v) - { - this.c0 = (int2)v; - this.c1 = (int2)v; - this.c2 = (int2)v; - } - - /// Constructs a int2x3 matrix from a double2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x3(double2x3 v) - { - this.c0 = (int2)v.c0; - this.c1 = (int2)v.c1; - this.c2 = (int2)v.c2; - } - - - /// Implicitly converts a single int value to a int2x3 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator int2x3(int v) { return new int2x3(v); } - - /// Explicitly converts a single bool value to a int2x3 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x3(bool v) { return new int2x3(v); } - - /// Explicitly converts a bool2x3 matrix to a int2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x3(bool2x3 v) { return new int2x3(v); } - - /// Explicitly converts a single uint value to a int2x3 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x3(uint v) { return new int2x3(v); } - - /// Explicitly converts a uint2x3 matrix to a int2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x3(uint2x3 v) { return new int2x3(v); } - - /// Explicitly converts a single float value to a int2x3 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x3(float v) { return new int2x3(v); } - - /// Explicitly converts a float2x3 matrix to a int2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x3(float2x3 v) { return new int2x3(v); } - - /// Explicitly converts a single double value to a int2x3 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x3(double v) { return new int2x3(v); } - - /// Explicitly converts a double2x3 matrix to a int2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x3(double2x3 v) { return new int2x3(v); } - - - /// Returns the result of a componentwise multiplication operation on two int2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator * (int2x3 lhs, int2x3 rhs) { return new int2x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } - - /// Returns the result of a componentwise multiplication operation on an int2x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator * (int2x3 lhs, int rhs) { return new int2x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } - - /// Returns the result of a componentwise multiplication operation on an int value and an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator * (int lhs, int2x3 rhs) { return new int2x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } - - - /// Returns the result of a componentwise addition operation on two int2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator + (int2x3 lhs, int2x3 rhs) { return new int2x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } - - /// Returns the result of a componentwise addition operation on an int2x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator + (int2x3 lhs, int rhs) { return new int2x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } - - /// Returns the result of a componentwise addition operation on an int value and an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator + (int lhs, int2x3 rhs) { return new int2x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } - - - /// Returns the result of a componentwise subtraction operation on two int2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator - (int2x3 lhs, int2x3 rhs) { return new int2x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } - - /// Returns the result of a componentwise subtraction operation on an int2x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator - (int2x3 lhs, int rhs) { return new int2x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } - - /// Returns the result of a componentwise subtraction operation on an int value and an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator - (int lhs, int2x3 rhs) { return new int2x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } - - - /// Returns the result of a componentwise division operation on two int2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator / (int2x3 lhs, int2x3 rhs) { return new int2x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } - - /// Returns the result of a componentwise division operation on an int2x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator / (int2x3 lhs, int rhs) { return new int2x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } - - /// Returns the result of a componentwise division operation on an int value and an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator / (int lhs, int2x3 rhs) { return new int2x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } - - - /// Returns the result of a componentwise modulus operation on two int2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator % (int2x3 lhs, int2x3 rhs) { return new int2x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } - - /// Returns the result of a componentwise modulus operation on an int2x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator % (int2x3 lhs, int rhs) { return new int2x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } - - /// Returns the result of a componentwise modulus operation on an int value and an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator % (int lhs, int2x3 rhs) { return new int2x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } - - - /// Returns the result of a componentwise increment operation on an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator ++ (int2x3 val) { return new int2x3 (++val.c0, ++val.c1, ++val.c2); } - - - /// Returns the result of a componentwise decrement operation on an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator -- (int2x3 val) { return new int2x3 (--val.c0, --val.c1, --val.c2); } - - - /// Returns the result of a componentwise less than operation on two int2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator < (int2x3 lhs, int2x3 rhs) { return new bool2x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } - - /// Returns the result of a componentwise less than operation on an int2x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator < (int2x3 lhs, int rhs) { return new bool2x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } - - /// Returns the result of a componentwise less than operation on an int value and an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator < (int lhs, int2x3 rhs) { return new bool2x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } - - - /// Returns the result of a componentwise less or equal operation on two int2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator <= (int2x3 lhs, int2x3 rhs) { return new bool2x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } - - /// Returns the result of a componentwise less or equal operation on an int2x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator <= (int2x3 lhs, int rhs) { return new bool2x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on an int value and an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator <= (int lhs, int2x3 rhs) { return new bool2x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } - - - /// Returns the result of a componentwise greater than operation on two int2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator > (int2x3 lhs, int2x3 rhs) { return new bool2x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } - - /// Returns the result of a componentwise greater than operation on an int2x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator > (int2x3 lhs, int rhs) { return new bool2x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } - - /// Returns the result of a componentwise greater than operation on an int value and an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator > (int lhs, int2x3 rhs) { return new bool2x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } - - - /// Returns the result of a componentwise greater or equal operation on two int2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator >= (int2x3 lhs, int2x3 rhs) { return new bool2x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } - - /// Returns the result of a componentwise greater or equal operation on an int2x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator >= (int2x3 lhs, int rhs) { return new bool2x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on an int value and an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator >= (int lhs, int2x3 rhs) { return new bool2x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } - - - /// Returns the result of a componentwise unary minus operation on an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator - (int2x3 val) { return new int2x3 (-val.c0, -val.c1, -val.c2); } - - - /// Returns the result of a componentwise unary plus operation on an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator + (int2x3 val) { return new int2x3 (+val.c0, +val.c1, +val.c2); } - - - /// Returns the result of a componentwise left shift operation on an int2x3 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator << (int2x3 x, int n) { return new int2x3 (x.c0 << n, x.c1 << n, x.c2 << n); } - - /// Returns the result of a componentwise right shift operation on an int2x3 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator >> (int2x3 x, int n) { return new int2x3 (x.c0 >> n, x.c1 >> n, x.c2 >> n); } - - /// Returns the result of a componentwise equality operation on two int2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator == (int2x3 lhs, int2x3 rhs) { return new bool2x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } - - /// Returns the result of a componentwise equality operation on an int2x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator == (int2x3 lhs, int rhs) { return new bool2x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } - - /// Returns the result of a componentwise equality operation on an int value and an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator == (int lhs, int2x3 rhs) { return new bool2x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } - - - /// Returns the result of a componentwise not equal operation on two int2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator != (int2x3 lhs, int2x3 rhs) { return new bool2x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } - - /// Returns the result of a componentwise not equal operation on an int2x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator != (int2x3 lhs, int rhs) { return new bool2x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } - - /// Returns the result of a componentwise not equal operation on an int value and an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator != (int lhs, int2x3 rhs) { return new bool2x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } - - - /// Returns the result of a componentwise bitwise not operation on an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator ~ (int2x3 val) { return new int2x3 (~val.c0, ~val.c1, ~val.c2); } - - - /// Returns the result of a componentwise bitwise and operation on two int2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator & (int2x3 lhs, int2x3 rhs) { return new int2x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); } - - /// Returns the result of a componentwise bitwise and operation on an int2x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator & (int2x3 lhs, int rhs) { return new int2x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on an int value and an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator & (int lhs, int2x3 rhs) { return new int2x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); } - - - /// Returns the result of a componentwise bitwise or operation on two int2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator | (int2x3 lhs, int2x3 rhs) { return new int2x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); } - - /// Returns the result of a componentwise bitwise or operation on an int2x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator | (int2x3 lhs, int rhs) { return new int2x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on an int value and an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator | (int lhs, int2x3 rhs) { return new int2x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two int2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator ^ (int2x3 lhs, int2x3 rhs) { return new int2x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int2x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator ^ (int2x3 lhs, int rhs) { return new int2x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 operator ^ (int lhs, int2x3 rhs) { return new int2x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); } - - - - /// Returns the int2 element at a specified index. - unsafe public ref int2 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (int2x3* array = &this) { return ref ((int2*)array)[index]; } - } - } - - /// Returns true if the int2x3 is equal to a given int2x3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(int2x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } - - /// Returns true if the int2x3 is equal to a given int2x3, false otherwise. - public override bool Equals(object o) { return Equals((int2x3)o); } - - - /// Returns a hash code for the int2x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the int2x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("int2x3({0}, {1}, {2}, {3}, {4}, {5})", c0.x, c1.x, c2.x, c0.y, c1.y, c2.y); - } - - /// Returns a string representation of the int2x3 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("int2x3({0}, {1}, {2}, {3}, {4}, {5})", 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)); - } - - } - - public static partial class math - { - /// Returns a int2x3 matrix constructed from three int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 int2x3(int2 c0, int2 c1, int2 c2) { return new int2x3(c0, c1, c2); } - - /// Returns a int2x3 matrix constructed from from 6 int values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 int2x3(int m00, int m01, int m02, - int m10, int m11, int m12) - { - return new int2x3(m00, m01, m02, - m10, m11, m12); - } - - /// Returns a int2x3 matrix constructed from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 int2x3(int v) { return new int2x3(v); } - - /// Returns a int2x3 matrix constructed from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 int2x3(bool v) { return new int2x3(v); } - - /// Return a int2x3 matrix constructed from a bool2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 int2x3(bool2x3 v) { return new int2x3(v); } - - /// Returns a int2x3 matrix constructed from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 int2x3(uint v) { return new int2x3(v); } - - /// Return a int2x3 matrix constructed from a uint2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 int2x3(uint2x3 v) { return new int2x3(v); } - - /// Returns a int2x3 matrix constructed from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 int2x3(float v) { return new int2x3(v); } - - /// Return a int2x3 matrix constructed from a float2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 int2x3(float2x3 v) { return new int2x3(v); } - - /// Returns a int2x3 matrix constructed from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 int2x3(double v) { return new int2x3(v); } - - /// Return a int2x3 matrix constructed from a double2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 int2x3(double2x3 v) { return new int2x3(v); } - - /// Return the int3x2 transpose of a int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 transpose(int2x3 v) - { - return int3x2( - v.c0.x, v.c0.y, - v.c1.x, v.c1.y, - v.c2.x, v.c2.y); - } - - /// Returns a uint hash code of a int2x3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(int2x3 v) - { - return csum(asuint(v.c0) * uint2(0xCAE78587u, 0x7A1541C9u) + - asuint(v.c1) * uint2(0xF83BD927u, 0x6A243BCBu) + - asuint(v.c2) * uint2(0x509B84C9u, 0x91D13847u)) + 0x52F7230Fu; - } - - /// - /// Returns a uint2 vector hash code of a int2x3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(int2x3 v) - { - return (asuint(v.c0) * uint2(0xCF286E83u, 0xE121E6ADu) + - asuint(v.c1) * uint2(0xC9CA1249u, 0x69B60C81u) + - asuint(v.c2) * uint2(0xE0EB6C25u, 0xF648BEABu)) + 0x6BDB2B07u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/int2x4.gen.cs b/Economy.Shared/Unity.Mathematics/int2x4.gen.cs deleted file mode 100644 index 3bab0cdf5..000000000 --- a/Economy.Shared/Unity.Mathematics/int2x4.gen.cs +++ /dev/null @@ -1,521 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct int2x4 : System.IEquatable, IFormattable - { - public int2 c0; - public int2 c1; - public int2 c2; - public int2 c3; - - /// int2x4 zero value. - public static readonly int2x4 zero; - - /// Constructs a int2x4 matrix from four int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x4(int2 c0, int2 c1, int2 c2, int2 c3) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - this.c3 = c3; - } - - /// Constructs a int2x4 matrix from 8 int values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x4(int m00, int m01, int m02, int m03, - int m10, int m11, int m12, int m13) - { - this.c0 = new int2(m00, m10); - this.c1 = new int2(m01, m11); - this.c2 = new int2(m02, m12); - this.c3 = new int2(m03, m13); - } - - /// Constructs a int2x4 matrix from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x4(int v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a int2x4 matrix from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x4(bool v) - { - this.c0 = math.select(new int2(0), new int2(1), v); - this.c1 = math.select(new int2(0), new int2(1), v); - this.c2 = math.select(new int2(0), new int2(1), v); - this.c3 = math.select(new int2(0), new int2(1), v); - } - - /// Constructs a int2x4 matrix from a bool2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x4(bool2x4 v) - { - this.c0 = math.select(new int2(0), new int2(1), v.c0); - this.c1 = math.select(new int2(0), new int2(1), v.c1); - this.c2 = math.select(new int2(0), new int2(1), v.c2); - this.c3 = math.select(new int2(0), new int2(1), v.c3); - } - - /// Constructs a int2x4 matrix from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x4(uint v) - { - this.c0 = (int2)v; - this.c1 = (int2)v; - this.c2 = (int2)v; - this.c3 = (int2)v; - } - - /// Constructs a int2x4 matrix from a uint2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x4(uint2x4 v) - { - this.c0 = (int2)v.c0; - this.c1 = (int2)v.c1; - this.c2 = (int2)v.c2; - this.c3 = (int2)v.c3; - } - - /// Constructs a int2x4 matrix from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x4(float v) - { - this.c0 = (int2)v; - this.c1 = (int2)v; - this.c2 = (int2)v; - this.c3 = (int2)v; - } - - /// Constructs a int2x4 matrix from a float2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x4(float2x4 v) - { - this.c0 = (int2)v.c0; - this.c1 = (int2)v.c1; - this.c2 = (int2)v.c2; - this.c3 = (int2)v.c3; - } - - /// Constructs a int2x4 matrix from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x4(double v) - { - this.c0 = (int2)v; - this.c1 = (int2)v; - this.c2 = (int2)v; - this.c3 = (int2)v; - } - - /// Constructs a int2x4 matrix from a double2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2x4(double2x4 v) - { - this.c0 = (int2)v.c0; - this.c1 = (int2)v.c1; - this.c2 = (int2)v.c2; - this.c3 = (int2)v.c3; - } - - - /// Implicitly converts a single int value to a int2x4 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator int2x4(int v) { return new int2x4(v); } - - /// Explicitly converts a single bool value to a int2x4 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x4(bool v) { return new int2x4(v); } - - /// Explicitly converts a bool2x4 matrix to a int2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x4(bool2x4 v) { return new int2x4(v); } - - /// Explicitly converts a single uint value to a int2x4 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x4(uint v) { return new int2x4(v); } - - /// Explicitly converts a uint2x4 matrix to a int2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x4(uint2x4 v) { return new int2x4(v); } - - /// Explicitly converts a single float value to a int2x4 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x4(float v) { return new int2x4(v); } - - /// Explicitly converts a float2x4 matrix to a int2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x4(float2x4 v) { return new int2x4(v); } - - /// Explicitly converts a single double value to a int2x4 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x4(double v) { return new int2x4(v); } - - /// Explicitly converts a double2x4 matrix to a int2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int2x4(double2x4 v) { return new int2x4(v); } - - - /// Returns the result of a componentwise multiplication operation on two int2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator * (int2x4 lhs, int2x4 rhs) { return new int2x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } - - /// Returns the result of a componentwise multiplication operation on an int2x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator * (int2x4 lhs, int rhs) { return new int2x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } - - /// Returns the result of a componentwise multiplication operation on an int value and an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator * (int lhs, int2x4 rhs) { return new int2x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } - - - /// Returns the result of a componentwise addition operation on two int2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator + (int2x4 lhs, int2x4 rhs) { return new int2x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } - - /// Returns the result of a componentwise addition operation on an int2x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator + (int2x4 lhs, int rhs) { return new int2x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } - - /// Returns the result of a componentwise addition operation on an int value and an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator + (int lhs, int2x4 rhs) { return new int2x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } - - - /// Returns the result of a componentwise subtraction operation on two int2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator - (int2x4 lhs, int2x4 rhs) { return new int2x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } - - /// Returns the result of a componentwise subtraction operation on an int2x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator - (int2x4 lhs, int rhs) { return new int2x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } - - /// Returns the result of a componentwise subtraction operation on an int value and an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator - (int lhs, int2x4 rhs) { return new int2x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } - - - /// Returns the result of a componentwise division operation on two int2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator / (int2x4 lhs, int2x4 rhs) { return new int2x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } - - /// Returns the result of a componentwise division operation on an int2x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator / (int2x4 lhs, int rhs) { return new int2x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } - - /// Returns the result of a componentwise division operation on an int value and an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator / (int lhs, int2x4 rhs) { return new int2x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } - - - /// Returns the result of a componentwise modulus operation on two int2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator % (int2x4 lhs, int2x4 rhs) { return new int2x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } - - /// Returns the result of a componentwise modulus operation on an int2x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator % (int2x4 lhs, int rhs) { return new int2x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } - - /// Returns the result of a componentwise modulus operation on an int value and an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator % (int lhs, int2x4 rhs) { return new int2x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } - - - /// Returns the result of a componentwise increment operation on an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator ++ (int2x4 val) { return new int2x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } - - - /// Returns the result of a componentwise decrement operation on an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator -- (int2x4 val) { return new int2x4 (--val.c0, --val.c1, --val.c2, --val.c3); } - - - /// Returns the result of a componentwise less than operation on two int2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator < (int2x4 lhs, int2x4 rhs) { return new bool2x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } - - /// Returns the result of a componentwise less than operation on an int2x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator < (int2x4 lhs, int rhs) { return new bool2x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } - - /// Returns the result of a componentwise less than operation on an int value and an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator < (int lhs, int2x4 rhs) { return new bool2x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } - - - /// Returns the result of a componentwise less or equal operation on two int2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator <= (int2x4 lhs, int2x4 rhs) { return new bool2x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } - - /// Returns the result of a componentwise less or equal operation on an int2x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator <= (int2x4 lhs, int rhs) { return new bool2x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on an int value and an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator <= (int lhs, int2x4 rhs) { return new bool2x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } - - - /// Returns the result of a componentwise greater than operation on two int2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator > (int2x4 lhs, int2x4 rhs) { return new bool2x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } - - /// Returns the result of a componentwise greater than operation on an int2x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator > (int2x4 lhs, int rhs) { return new bool2x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } - - /// Returns the result of a componentwise greater than operation on an int value and an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator > (int lhs, int2x4 rhs) { return new bool2x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } - - - /// Returns the result of a componentwise greater or equal operation on two int2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator >= (int2x4 lhs, int2x4 rhs) { return new bool2x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } - - /// Returns the result of a componentwise greater or equal operation on an int2x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator >= (int2x4 lhs, int rhs) { return new bool2x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on an int value and an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator >= (int lhs, int2x4 rhs) { return new bool2x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } - - - /// Returns the result of a componentwise unary minus operation on an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator - (int2x4 val) { return new int2x4 (-val.c0, -val.c1, -val.c2, -val.c3); } - - - /// Returns the result of a componentwise unary plus operation on an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator + (int2x4 val) { return new int2x4 (+val.c0, +val.c1, +val.c2, +val.c3); } - - - /// Returns the result of a componentwise left shift operation on an int2x4 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator << (int2x4 x, int n) { return new int2x4 (x.c0 << n, x.c1 << n, x.c2 << n, x.c3 << n); } - - /// Returns the result of a componentwise right shift operation on an int2x4 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator >> (int2x4 x, int n) { return new int2x4 (x.c0 >> n, x.c1 >> n, x.c2 >> n, x.c3 >> n); } - - /// Returns the result of a componentwise equality operation on two int2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator == (int2x4 lhs, int2x4 rhs) { return new bool2x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } - - /// Returns the result of a componentwise equality operation on an int2x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator == (int2x4 lhs, int rhs) { return new bool2x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } - - /// Returns the result of a componentwise equality operation on an int value and an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator == (int lhs, int2x4 rhs) { return new bool2x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } - - - /// Returns the result of a componentwise not equal operation on two int2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator != (int2x4 lhs, int2x4 rhs) { return new bool2x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } - - /// Returns the result of a componentwise not equal operation on an int2x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator != (int2x4 lhs, int rhs) { return new bool2x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } - - /// Returns the result of a componentwise not equal operation on an int value and an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator != (int lhs, int2x4 rhs) { return new bool2x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } - - - /// Returns the result of a componentwise bitwise not operation on an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator ~ (int2x4 val) { return new int2x4 (~val.c0, ~val.c1, ~val.c2, ~val.c3); } - - - /// Returns the result of a componentwise bitwise and operation on two int2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator & (int2x4 lhs, int2x4 rhs) { return new int2x4 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2, lhs.c3 & rhs.c3); } - - /// Returns the result of a componentwise bitwise and operation on an int2x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator & (int2x4 lhs, int rhs) { return new int2x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on an int value and an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator & (int lhs, int2x4 rhs) { return new int2x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); } - - - /// Returns the result of a componentwise bitwise or operation on two int2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator | (int2x4 lhs, int2x4 rhs) { return new int2x4 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2, lhs.c3 | rhs.c3); } - - /// Returns the result of a componentwise bitwise or operation on an int2x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator | (int2x4 lhs, int rhs) { return new int2x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on an int value and an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator | (int lhs, int2x4 rhs) { return new int2x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two int2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator ^ (int2x4 lhs, int2x4 rhs) { return new int2x4 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2, lhs.c3 ^ rhs.c3); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int2x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator ^ (int2x4 lhs, int rhs) { return new int2x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 operator ^ (int lhs, int2x4 rhs) { return new int2x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); } - - - - /// Returns the int2 element at a specified index. - unsafe public ref int2 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (int2x4* array = &this) { return ref ((int2*)array)[index]; } - } - } - - /// Returns true if the int2x4 is equal to a given int2x4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(int2x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } - - /// Returns true if the int2x4 is equal to a given int2x4, false otherwise. - public override bool Equals(object o) { return Equals((int2x4)o); } - - - /// Returns a hash code for the int2x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the int2x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("int2x4({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7})", c0.x, c1.x, c2.x, c3.x, c0.y, c1.y, c2.y, c3.y); - } - - /// Returns a string representation of the int2x4 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("int2x4({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7})", 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)); - } - - } - - public static partial class math - { - /// Returns a int2x4 matrix constructed from four int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 int2x4(int2 c0, int2 c1, int2 c2, int2 c3) { return new int2x4(c0, c1, c2, c3); } - - /// Returns a int2x4 matrix constructed from from 8 int values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 int2x4(int m00, int m01, int m02, int m03, - int m10, int m11, int m12, int m13) - { - return new int2x4(m00, m01, m02, m03, - m10, m11, m12, m13); - } - - /// Returns a int2x4 matrix constructed from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 int2x4(int v) { return new int2x4(v); } - - /// Returns a int2x4 matrix constructed from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 int2x4(bool v) { return new int2x4(v); } - - /// Return a int2x4 matrix constructed from a bool2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 int2x4(bool2x4 v) { return new int2x4(v); } - - /// Returns a int2x4 matrix constructed from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 int2x4(uint v) { return new int2x4(v); } - - /// Return a int2x4 matrix constructed from a uint2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 int2x4(uint2x4 v) { return new int2x4(v); } - - /// Returns a int2x4 matrix constructed from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 int2x4(float v) { return new int2x4(v); } - - /// Return a int2x4 matrix constructed from a float2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 int2x4(float2x4 v) { return new int2x4(v); } - - /// Returns a int2x4 matrix constructed from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 int2x4(double v) { return new int2x4(v); } - - /// Return a int2x4 matrix constructed from a double2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 int2x4(double2x4 v) { return new int2x4(v); } - - /// Return the int4x2 transpose of a int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 transpose(int2x4 v) - { - return int4x2( - v.c0.x, v.c0.y, - v.c1.x, v.c1.y, - v.c2.x, v.c2.y, - v.c3.x, v.c3.y); - } - - /// Returns a uint hash code of a int2x4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(int2x4 v) - { - return csum(asuint(v.c0) * uint2(0x7AA07CD3u, 0xAF642BA9u) + - asuint(v.c1) * uint2(0xA8F2213Bu, 0x9F3FDC37u) + - asuint(v.c2) * uint2(0xAC60D0C3u, 0x9263662Fu) + - asuint(v.c3) * uint2(0xE69626FFu, 0xBD010EEBu)) + 0x9CEDE1D1u; - } - - /// - /// Returns a uint2 vector hash code of a int2x4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(int2x4 v) - { - return (asuint(v.c0) * uint2(0x43BE0B51u, 0xAF836EE1u) + - asuint(v.c1) * uint2(0xB130C137u, 0x54834775u) + - asuint(v.c2) * uint2(0x7C022221u, 0xA2D00EDFu) + - asuint(v.c3) * uint2(0xA8977779u, 0x9F1C739Bu)) + 0x4B1BD187u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/int3.gen.cs b/Economy.Shared/Unity.Mathematics/int3.gen.cs deleted file mode 100644 index 897ff5db3..000000000 --- a/Economy.Shared/Unity.Mathematics/int3.gen.cs +++ /dev/null @@ -1,1556 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; -using System.Diagnostics; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [DebuggerTypeProxy(typeof(int3.DebuggerProxy))] - [System.Serializable] - public partial struct int3 : System.IEquatable, IFormattable - { - public int x; - public int y; - public int z; - - /// int3 zero value. - public static readonly int3 zero; - - /// Constructs a int3 vector from three int values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3(int x, int y, int z) - { - this.x = x; - this.y = y; - this.z = z; - } - - /// Constructs a int3 vector from an int value and an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3(int x, int2 yz) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - } - - /// Constructs a int3 vector from an int2 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3(int2 xy, int z) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - } - - /// Constructs a int3 vector from an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3(int3 xyz) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - } - - /// Constructs a int3 vector from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3(int v) - { - this.x = v; - this.y = v; - this.z = v; - } - - /// Constructs a int3 vector from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3(bool v) - { - this.x = v ? 1 : 0; - this.y = v ? 1 : 0; - this.z = v ? 1 : 0; - } - - /// Constructs a int3 vector from a bool3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3(bool3 v) - { - this.x = v.x ? 1 : 0; - this.y = v.y ? 1 : 0; - this.z = v.z ? 1 : 0; - } - - /// Constructs a int3 vector from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3(uint v) - { - this.x = (int)v; - this.y = (int)v; - this.z = (int)v; - } - - /// Constructs a int3 vector from a uint3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3(uint3 v) - { - this.x = (int)v.x; - this.y = (int)v.y; - this.z = (int)v.z; - } - - /// Constructs a int3 vector from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3(float v) - { - this.x = (int)v; - this.y = (int)v; - this.z = (int)v; - } - - /// Constructs a int3 vector from a float3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3(float3 v) - { - this.x = (int)v.x; - this.y = (int)v.y; - this.z = (int)v.z; - } - - /// Constructs a int3 vector from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3(double v) - { - this.x = (int)v; - this.y = (int)v; - this.z = (int)v; - } - - /// Constructs a int3 vector from a double3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3(double3 v) - { - this.x = (int)v.x; - this.y = (int)v.y; - this.z = (int)v.z; - } - - - /// Implicitly converts a single int value to a int3 vector by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator int3(int v) { return new int3(v); } - - /// Explicitly converts a single bool value to a int3 vector by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3(bool v) { return new int3(v); } - - /// Explicitly converts a bool3 vector to a int3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3(bool3 v) { return new int3(v); } - - /// Explicitly converts a single uint value to a int3 vector by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3(uint v) { return new int3(v); } - - /// Explicitly converts a uint3 vector to a int3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3(uint3 v) { return new int3(v); } - - /// Explicitly converts a single float value to a int3 vector by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3(float v) { return new int3(v); } - - /// Explicitly converts a float3 vector to a int3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3(float3 v) { return new int3(v); } - - /// Explicitly converts a single double value to a int3 vector by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3(double v) { return new int3(v); } - - /// Explicitly converts a double3 vector to a int3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3(double3 v) { return new int3(v); } - - - /// Returns the result of a componentwise multiplication operation on two int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator * (int3 lhs, int3 rhs) { return new int3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } - - /// Returns the result of a componentwise multiplication operation on an int3 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator * (int3 lhs, int rhs) { return new int3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } - - /// Returns the result of a componentwise multiplication operation on an int value and an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator * (int lhs, int3 rhs) { return new int3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } - - - /// Returns the result of a componentwise addition operation on two int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator + (int3 lhs, int3 rhs) { return new int3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } - - /// Returns the result of a componentwise addition operation on an int3 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator + (int3 lhs, int rhs) { return new int3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } - - /// Returns the result of a componentwise addition operation on an int value and an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator + (int lhs, int3 rhs) { return new int3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } - - - /// Returns the result of a componentwise subtraction operation on two int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator - (int3 lhs, int3 rhs) { return new int3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } - - /// Returns the result of a componentwise subtraction operation on an int3 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator - (int3 lhs, int rhs) { return new int3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } - - /// Returns the result of a componentwise subtraction operation on an int value and an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator - (int lhs, int3 rhs) { return new int3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } - - - /// Returns the result of a componentwise division operation on two int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator / (int3 lhs, int3 rhs) { return new int3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } - - /// Returns the result of a componentwise division operation on an int3 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator / (int3 lhs, int rhs) { return new int3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } - - /// Returns the result of a componentwise division operation on an int value and an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator / (int lhs, int3 rhs) { return new int3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } - - - /// Returns the result of a componentwise modulus operation on two int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator % (int3 lhs, int3 rhs) { return new int3 (lhs.x % rhs.x, lhs.y % rhs.y, lhs.z % rhs.z); } - - /// Returns the result of a componentwise modulus operation on an int3 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator % (int3 lhs, int rhs) { return new int3 (lhs.x % rhs, lhs.y % rhs, lhs.z % rhs); } - - /// Returns the result of a componentwise modulus operation on an int value and an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator % (int lhs, int3 rhs) { return new int3 (lhs % rhs.x, lhs % rhs.y, lhs % rhs.z); } - - - /// Returns the result of a componentwise increment operation on an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator ++ (int3 val) { return new int3 (++val.x, ++val.y, ++val.z); } - - - /// Returns the result of a componentwise decrement operation on an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator -- (int3 val) { return new int3 (--val.x, --val.y, --val.z); } - - - /// Returns the result of a componentwise less than operation on two int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (int3 lhs, int3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } - - /// Returns the result of a componentwise less than operation on an int3 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (int3 lhs, int rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } - - /// Returns the result of a componentwise less than operation on an int value and an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (int lhs, int3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } - - - /// Returns the result of a componentwise less or equal operation on two int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (int3 lhs, int3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } - - /// Returns the result of a componentwise less or equal operation on an int3 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (int3 lhs, int rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } - - /// Returns the result of a componentwise less or equal operation on an int value and an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (int lhs, int3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } - - - /// Returns the result of a componentwise greater than operation on two int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (int3 lhs, int3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } - - /// Returns the result of a componentwise greater than operation on an int3 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (int3 lhs, int rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } - - /// Returns the result of a componentwise greater than operation on an int value and an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (int lhs, int3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } - - - /// Returns the result of a componentwise greater or equal operation on two int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (int3 lhs, int3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } - - /// Returns the result of a componentwise greater or equal operation on an int3 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (int3 lhs, int rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on an int value and an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (int lhs, int3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } - - - /// Returns the result of a componentwise unary minus operation on an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator - (int3 val) { return new int3 (-val.x, -val.y, -val.z); } - - - /// Returns the result of a componentwise unary plus operation on an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator + (int3 val) { return new int3 (+val.x, +val.y, +val.z); } - - - /// Returns the result of a componentwise left shift operation on an int3 vector by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator << (int3 x, int n) { return new int3 (x.x << n, x.y << n, x.z << n); } - - /// Returns the result of a componentwise right shift operation on an int3 vector by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator >> (int3 x, int n) { return new int3 (x.x >> n, x.y >> n, x.z >> n); } - - /// Returns the result of a componentwise equality operation on two int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (int3 lhs, int3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } - - /// Returns the result of a componentwise equality operation on an int3 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (int3 lhs, int rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } - - /// Returns the result of a componentwise equality operation on an int value and an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (int lhs, int3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } - - - /// Returns the result of a componentwise not equal operation on two int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (int3 lhs, int3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } - - /// Returns the result of a componentwise not equal operation on an int3 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (int3 lhs, int rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } - - /// Returns the result of a componentwise not equal operation on an int value and an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (int lhs, int3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } - - - /// Returns the result of a componentwise bitwise not operation on an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator ~ (int3 val) { return new int3 (~val.x, ~val.y, ~val.z); } - - - /// Returns the result of a componentwise bitwise and operation on two int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator & (int3 lhs, int3 rhs) { return new int3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } - - /// Returns the result of a componentwise bitwise and operation on an int3 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator & (int3 lhs, int rhs) { return new int3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } - - /// Returns the result of a componentwise bitwise and operation on an int value and an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator & (int lhs, int3 rhs) { return new int3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } - - - /// Returns the result of a componentwise bitwise or operation on two int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator | (int3 lhs, int3 rhs) { return new int3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } - - /// Returns the result of a componentwise bitwise or operation on an int3 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator | (int3 lhs, int rhs) { return new int3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } - - /// Returns the result of a componentwise bitwise or operation on an int value and an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator | (int lhs, int3 rhs) { return new int3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator ^ (int3 lhs, int3 rhs) { return new int3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int3 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator ^ (int3 lhs, int rhs) { return new int3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator ^ (int lhs, int3 rhs) { return new int3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } - - - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(z, z); } - } - - - - /// Returns the int element at a specified index. - unsafe public int this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (int3* array = &this) { return ((int*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (int* array = &x) { array[index] = value; } - } - } - - /// Returns true if the int3 is equal to a given int3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(int3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } - - /// Returns true if the int3 is equal to a given int3, false otherwise. - public override bool Equals(object o) { return Equals((int3)o); } - - - /// Returns a hash code for the int3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the int3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("int3({0}, {1}, {2})", x, y, z); - } - - /// Returns a string representation of the int3 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("int3({0}, {1}, {2})", x.ToString(format, formatProvider), y.ToString(format, formatProvider), z.ToString(format, formatProvider)); - } - - internal sealed class DebuggerProxy - { - public int x; - public int y; - public int z; - public DebuggerProxy(int3 v) - { - x = v.x; - y = v.y; - z = v.z; - } - } - - } - - public static partial class math - { - /// Returns a int3 vector constructed from three int values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(int x, int y, int z) { return new int3(x, y, z); } - - /// Returns a int3 vector constructed from an int value and an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(int x, int2 yz) { return new int3(x, yz); } - - /// Returns a int3 vector constructed from an int2 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(int2 xy, int z) { return new int3(xy, z); } - - /// Returns a int3 vector constructed from an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(int3 xyz) { return new int3(xyz); } - - /// Returns a int3 vector constructed from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(int v) { return new int3(v); } - - /// Returns a int3 vector constructed from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(bool v) { return new int3(v); } - - /// Return a int3 vector constructed from a bool3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(bool3 v) { return new int3(v); } - - /// Returns a int3 vector constructed from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(uint v) { return new int3(v); } - - /// Return a int3 vector constructed from a uint3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(uint3 v) { return new int3(v); } - - /// Returns a int3 vector constructed from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(float v) { return new int3(v); } - - /// Return a int3 vector constructed from a float3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(float3 v) { return new int3(v); } - - /// Returns a int3 vector constructed from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(double v) { return new int3(v); } - - /// Return a int3 vector constructed from a double3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(double3 v) { return new int3(v); } - - /// Returns a uint hash code of a int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(int3 v) - { - return csum(asuint(v) * uint3(0x4C7F6DD1u, 0x4822A3E9u, 0xAAC3C25Du)) + 0xD21D0945u; - } - - /// - /// Returns a uint3 vector hash code of a int3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(int3 v) - { - return (asuint(v) * uint3(0x88FCAB2Du, 0x614DA60Du, 0x5BA2C50Bu)) + 0x8C455ACBu; - } - - /// Returns the result of specified shuffling of the components from two int3 vectors into an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int shuffle(int3 a, int3 b, ShuffleComponent x) - { - return select_shuffle_component(a, b, x); - } - - /// Returns the result of specified shuffling of the components from two int3 vectors into an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 shuffle(int3 a, int3 b, ShuffleComponent x, ShuffleComponent y) - { - return int2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); - } - - /// Returns the result of specified shuffling of the components from two int3 vectors into an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 shuffle(int3 a, int3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) - { - return int3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); - } - - /// Returns the result of specified shuffling of the components from two int3 vectors into an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 shuffle(int3 a, int3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) - { - return int4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int select_shuffle_component(int3 a, int3 b, ShuffleComponent component) - { - switch(component) - { - case ShuffleComponent.LeftX: - return a.x; - case ShuffleComponent.LeftY: - return a.y; - case ShuffleComponent.LeftZ: - return a.z; - case ShuffleComponent.RightX: - return b.x; - case ShuffleComponent.RightY: - return b.y; - case ShuffleComponent.RightZ: - return b.z; - default: - throw new System.ArgumentException("Invalid shuffle component: " + component); - } - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/int3x2.gen.cs b/Economy.Shared/Unity.Mathematics/int3x2.gen.cs deleted file mode 100644 index c917037b1..000000000 --- a/Economy.Shared/Unity.Mathematics/int3x2.gen.cs +++ /dev/null @@ -1,494 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct int3x2 : System.IEquatable, IFormattable - { - public int3 c0; - public int3 c1; - - /// int3x2 zero value. - public static readonly int3x2 zero; - - /// Constructs a int3x2 matrix from two int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x2(int3 c0, int3 c1) - { - this.c0 = c0; - this.c1 = c1; - } - - /// Constructs a int3x2 matrix from 6 int values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x2(int m00, int m01, - int m10, int m11, - int m20, int m21) - { - this.c0 = new int3(m00, m10, m20); - this.c1 = new int3(m01, m11, m21); - } - - /// Constructs a int3x2 matrix from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x2(int v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a int3x2 matrix from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x2(bool v) - { - this.c0 = math.select(new int3(0), new int3(1), v); - this.c1 = math.select(new int3(0), new int3(1), v); - } - - /// Constructs a int3x2 matrix from a bool3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x2(bool3x2 v) - { - this.c0 = math.select(new int3(0), new int3(1), v.c0); - this.c1 = math.select(new int3(0), new int3(1), v.c1); - } - - /// Constructs a int3x2 matrix from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x2(uint v) - { - this.c0 = (int3)v; - this.c1 = (int3)v; - } - - /// Constructs a int3x2 matrix from a uint3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x2(uint3x2 v) - { - this.c0 = (int3)v.c0; - this.c1 = (int3)v.c1; - } - - /// Constructs a int3x2 matrix from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x2(float v) - { - this.c0 = (int3)v; - this.c1 = (int3)v; - } - - /// Constructs a int3x2 matrix from a float3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x2(float3x2 v) - { - this.c0 = (int3)v.c0; - this.c1 = (int3)v.c1; - } - - /// Constructs a int3x2 matrix from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x2(double v) - { - this.c0 = (int3)v; - this.c1 = (int3)v; - } - - /// Constructs a int3x2 matrix from a double3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x2(double3x2 v) - { - this.c0 = (int3)v.c0; - this.c1 = (int3)v.c1; - } - - - /// Implicitly converts a single int value to a int3x2 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator int3x2(int v) { return new int3x2(v); } - - /// Explicitly converts a single bool value to a int3x2 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x2(bool v) { return new int3x2(v); } - - /// Explicitly converts a bool3x2 matrix to a int3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x2(bool3x2 v) { return new int3x2(v); } - - /// Explicitly converts a single uint value to a int3x2 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x2(uint v) { return new int3x2(v); } - - /// Explicitly converts a uint3x2 matrix to a int3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x2(uint3x2 v) { return new int3x2(v); } - - /// Explicitly converts a single float value to a int3x2 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x2(float v) { return new int3x2(v); } - - /// Explicitly converts a float3x2 matrix to a int3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x2(float3x2 v) { return new int3x2(v); } - - /// Explicitly converts a single double value to a int3x2 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x2(double v) { return new int3x2(v); } - - /// Explicitly converts a double3x2 matrix to a int3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x2(double3x2 v) { return new int3x2(v); } - - - /// Returns the result of a componentwise multiplication operation on two int3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator * (int3x2 lhs, int3x2 rhs) { return new int3x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } - - /// Returns the result of a componentwise multiplication operation on an int3x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator * (int3x2 lhs, int rhs) { return new int3x2 (lhs.c0 * rhs, lhs.c1 * rhs); } - - /// Returns the result of a componentwise multiplication operation on an int value and an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator * (int lhs, int3x2 rhs) { return new int3x2 (lhs * rhs.c0, lhs * rhs.c1); } - - - /// Returns the result of a componentwise addition operation on two int3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator + (int3x2 lhs, int3x2 rhs) { return new int3x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } - - /// Returns the result of a componentwise addition operation on an int3x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator + (int3x2 lhs, int rhs) { return new int3x2 (lhs.c0 + rhs, lhs.c1 + rhs); } - - /// Returns the result of a componentwise addition operation on an int value and an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator + (int lhs, int3x2 rhs) { return new int3x2 (lhs + rhs.c0, lhs + rhs.c1); } - - - /// Returns the result of a componentwise subtraction operation on two int3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator - (int3x2 lhs, int3x2 rhs) { return new int3x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } - - /// Returns the result of a componentwise subtraction operation on an int3x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator - (int3x2 lhs, int rhs) { return new int3x2 (lhs.c0 - rhs, lhs.c1 - rhs); } - - /// Returns the result of a componentwise subtraction operation on an int value and an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator - (int lhs, int3x2 rhs) { return new int3x2 (lhs - rhs.c0, lhs - rhs.c1); } - - - /// Returns the result of a componentwise division operation on two int3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator / (int3x2 lhs, int3x2 rhs) { return new int3x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } - - /// Returns the result of a componentwise division operation on an int3x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator / (int3x2 lhs, int rhs) { return new int3x2 (lhs.c0 / rhs, lhs.c1 / rhs); } - - /// Returns the result of a componentwise division operation on an int value and an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator / (int lhs, int3x2 rhs) { return new int3x2 (lhs / rhs.c0, lhs / rhs.c1); } - - - /// Returns the result of a componentwise modulus operation on two int3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator % (int3x2 lhs, int3x2 rhs) { return new int3x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } - - /// Returns the result of a componentwise modulus operation on an int3x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator % (int3x2 lhs, int rhs) { return new int3x2 (lhs.c0 % rhs, lhs.c1 % rhs); } - - /// Returns the result of a componentwise modulus operation on an int value and an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator % (int lhs, int3x2 rhs) { return new int3x2 (lhs % rhs.c0, lhs % rhs.c1); } - - - /// Returns the result of a componentwise increment operation on an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator ++ (int3x2 val) { return new int3x2 (++val.c0, ++val.c1); } - - - /// Returns the result of a componentwise decrement operation on an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator -- (int3x2 val) { return new int3x2 (--val.c0, --val.c1); } - - - /// Returns the result of a componentwise less than operation on two int3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator < (int3x2 lhs, int3x2 rhs) { return new bool3x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } - - /// Returns the result of a componentwise less than operation on an int3x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator < (int3x2 lhs, int rhs) { return new bool3x2 (lhs.c0 < rhs, lhs.c1 < rhs); } - - /// Returns the result of a componentwise less than operation on an int value and an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator < (int lhs, int3x2 rhs) { return new bool3x2 (lhs < rhs.c0, lhs < rhs.c1); } - - - /// Returns the result of a componentwise less or equal operation on two int3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator <= (int3x2 lhs, int3x2 rhs) { return new bool3x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } - - /// Returns the result of a componentwise less or equal operation on an int3x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator <= (int3x2 lhs, int rhs) { return new bool3x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on an int value and an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator <= (int lhs, int3x2 rhs) { return new bool3x2 (lhs <= rhs.c0, lhs <= rhs.c1); } - - - /// Returns the result of a componentwise greater than operation on two int3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator > (int3x2 lhs, int3x2 rhs) { return new bool3x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } - - /// Returns the result of a componentwise greater than operation on an int3x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator > (int3x2 lhs, int rhs) { return new bool3x2 (lhs.c0 > rhs, lhs.c1 > rhs); } - - /// Returns the result of a componentwise greater than operation on an int value and an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator > (int lhs, int3x2 rhs) { return new bool3x2 (lhs > rhs.c0, lhs > rhs.c1); } - - - /// Returns the result of a componentwise greater or equal operation on two int3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator >= (int3x2 lhs, int3x2 rhs) { return new bool3x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } - - /// Returns the result of a componentwise greater or equal operation on an int3x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator >= (int3x2 lhs, int rhs) { return new bool3x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on an int value and an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator >= (int lhs, int3x2 rhs) { return new bool3x2 (lhs >= rhs.c0, lhs >= rhs.c1); } - - - /// Returns the result of a componentwise unary minus operation on an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator - (int3x2 val) { return new int3x2 (-val.c0, -val.c1); } - - - /// Returns the result of a componentwise unary plus operation on an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator + (int3x2 val) { return new int3x2 (+val.c0, +val.c1); } - - - /// Returns the result of a componentwise left shift operation on an int3x2 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator << (int3x2 x, int n) { return new int3x2 (x.c0 << n, x.c1 << n); } - - /// Returns the result of a componentwise right shift operation on an int3x2 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator >> (int3x2 x, int n) { return new int3x2 (x.c0 >> n, x.c1 >> n); } - - /// Returns the result of a componentwise equality operation on two int3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator == (int3x2 lhs, int3x2 rhs) { return new bool3x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } - - /// Returns the result of a componentwise equality operation on an int3x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator == (int3x2 lhs, int rhs) { return new bool3x2 (lhs.c0 == rhs, lhs.c1 == rhs); } - - /// Returns the result of a componentwise equality operation on an int value and an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator == (int lhs, int3x2 rhs) { return new bool3x2 (lhs == rhs.c0, lhs == rhs.c1); } - - - /// Returns the result of a componentwise not equal operation on two int3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator != (int3x2 lhs, int3x2 rhs) { return new bool3x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } - - /// Returns the result of a componentwise not equal operation on an int3x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator != (int3x2 lhs, int rhs) { return new bool3x2 (lhs.c0 != rhs, lhs.c1 != rhs); } - - /// Returns the result of a componentwise not equal operation on an int value and an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator != (int lhs, int3x2 rhs) { return new bool3x2 (lhs != rhs.c0, lhs != rhs.c1); } - - - /// Returns the result of a componentwise bitwise not operation on an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator ~ (int3x2 val) { return new int3x2 (~val.c0, ~val.c1); } - - - /// Returns the result of a componentwise bitwise and operation on two int3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator & (int3x2 lhs, int3x2 rhs) { return new int3x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); } - - /// Returns the result of a componentwise bitwise and operation on an int3x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator & (int3x2 lhs, int rhs) { return new int3x2 (lhs.c0 & rhs, lhs.c1 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on an int value and an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator & (int lhs, int3x2 rhs) { return new int3x2 (lhs & rhs.c0, lhs & rhs.c1); } - - - /// Returns the result of a componentwise bitwise or operation on two int3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator | (int3x2 lhs, int3x2 rhs) { return new int3x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); } - - /// Returns the result of a componentwise bitwise or operation on an int3x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator | (int3x2 lhs, int rhs) { return new int3x2 (lhs.c0 | rhs, lhs.c1 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on an int value and an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator | (int lhs, int3x2 rhs) { return new int3x2 (lhs | rhs.c0, lhs | rhs.c1); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two int3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator ^ (int3x2 lhs, int3x2 rhs) { return new int3x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int3x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator ^ (int3x2 lhs, int rhs) { return new int3x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 operator ^ (int lhs, int3x2 rhs) { return new int3x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); } - - - - /// Returns the int3 element at a specified index. - unsafe public ref int3 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (int3x2* array = &this) { return ref ((int3*)array)[index]; } - } - } - - /// Returns true if the int3x2 is equal to a given int3x2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(int3x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } - - /// Returns true if the int3x2 is equal to a given int3x2, false otherwise. - public override bool Equals(object o) { return Equals((int3x2)o); } - - - /// Returns a hash code for the int3x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the int3x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("int3x2({0}, {1}, {2}, {3}, {4}, {5})", c0.x, c1.x, c0.y, c1.y, c0.z, c1.z); - } - - /// Returns a string representation of the int3x2 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("int3x2({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)); - } - - } - - public static partial class math - { - /// Returns a int3x2 matrix constructed from two int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 int3x2(int3 c0, int3 c1) { return new int3x2(c0, c1); } - - /// Returns a int3x2 matrix constructed from from 6 int values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 int3x2(int m00, int m01, - int m10, int m11, - int m20, int m21) - { - return new int3x2(m00, m01, - m10, m11, - m20, m21); - } - - /// Returns a int3x2 matrix constructed from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 int3x2(int v) { return new int3x2(v); } - - /// Returns a int3x2 matrix constructed from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 int3x2(bool v) { return new int3x2(v); } - - /// Return a int3x2 matrix constructed from a bool3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 int3x2(bool3x2 v) { return new int3x2(v); } - - /// Returns a int3x2 matrix constructed from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 int3x2(uint v) { return new int3x2(v); } - - /// Return a int3x2 matrix constructed from a uint3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 int3x2(uint3x2 v) { return new int3x2(v); } - - /// Returns a int3x2 matrix constructed from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 int3x2(float v) { return new int3x2(v); } - - /// Return a int3x2 matrix constructed from a float3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 int3x2(float3x2 v) { return new int3x2(v); } - - /// Returns a int3x2 matrix constructed from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 int3x2(double v) { return new int3x2(v); } - - /// Return a int3x2 matrix constructed from a double3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 int3x2(double3x2 v) { return new int3x2(v); } - - /// Return the int2x3 transpose of a int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 transpose(int3x2 v) - { - return int2x3( - v.c0.x, v.c0.y, v.c0.z, - v.c1.x, v.c1.y, v.c1.z); - } - - /// Returns a uint hash code of a int3x2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(int3x2 v) - { - return csum(asuint(v.c0) * uint3(0xDB3DE101u, 0x7B6D1B4Bu, 0x58399E77u) + - asuint(v.c1) * uint3(0x5EAC29C9u, 0xFC6014F9u, 0x6BF6693Fu)) + 0x9D1B1D9Bu; - } - - /// - /// Returns a uint3 vector hash code of a int3x2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(int3x2 v) - { - return (asuint(v.c0) * uint3(0xF842F5C1u, 0xA47EC335u, 0xA477DF57u) + - asuint(v.c1) * uint3(0xC4B1493Fu, 0xBA0966D3u, 0xAFBEE253u)) + 0x5B419C01u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/int3x3.gen.cs b/Economy.Shared/Unity.Mathematics/int3x3.gen.cs deleted file mode 100644 index 0032e4521..000000000 --- a/Economy.Shared/Unity.Mathematics/int3x3.gen.cs +++ /dev/null @@ -1,527 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct int3x3 : System.IEquatable, IFormattable - { - public int3 c0; - public int3 c1; - public int3 c2; - - /// int3x3 identity transform. - public static readonly int3x3 identity = new int3x3(1, 0, 0, 0, 1, 0, 0, 0, 1); - - /// int3x3 zero value. - public static readonly int3x3 zero; - - /// Constructs a int3x3 matrix from three int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x3(int3 c0, int3 c1, int3 c2) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - } - - /// Constructs a int3x3 matrix from 9 int values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x3(int m00, int m01, int m02, - int m10, int m11, int m12, - int m20, int m21, int m22) - { - this.c0 = new int3(m00, m10, m20); - this.c1 = new int3(m01, m11, m21); - this.c2 = new int3(m02, m12, m22); - } - - /// Constructs a int3x3 matrix from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x3(int v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a int3x3 matrix from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x3(bool v) - { - this.c0 = math.select(new int3(0), new int3(1), v); - this.c1 = math.select(new int3(0), new int3(1), v); - this.c2 = math.select(new int3(0), new int3(1), v); - } - - /// Constructs a int3x3 matrix from a bool3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x3(bool3x3 v) - { - this.c0 = math.select(new int3(0), new int3(1), v.c0); - this.c1 = math.select(new int3(0), new int3(1), v.c1); - this.c2 = math.select(new int3(0), new int3(1), v.c2); - } - - /// Constructs a int3x3 matrix from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x3(uint v) - { - this.c0 = (int3)v; - this.c1 = (int3)v; - this.c2 = (int3)v; - } - - /// Constructs a int3x3 matrix from a uint3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x3(uint3x3 v) - { - this.c0 = (int3)v.c0; - this.c1 = (int3)v.c1; - this.c2 = (int3)v.c2; - } - - /// Constructs a int3x3 matrix from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x3(float v) - { - this.c0 = (int3)v; - this.c1 = (int3)v; - this.c2 = (int3)v; - } - - /// Constructs a int3x3 matrix from a float3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x3(float3x3 v) - { - this.c0 = (int3)v.c0; - this.c1 = (int3)v.c1; - this.c2 = (int3)v.c2; - } - - /// Constructs a int3x3 matrix from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x3(double v) - { - this.c0 = (int3)v; - this.c1 = (int3)v; - this.c2 = (int3)v; - } - - /// Constructs a int3x3 matrix from a double3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x3(double3x3 v) - { - this.c0 = (int3)v.c0; - this.c1 = (int3)v.c1; - this.c2 = (int3)v.c2; - } - - - /// Implicitly converts a single int value to a int3x3 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator int3x3(int v) { return new int3x3(v); } - - /// Explicitly converts a single bool value to a int3x3 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x3(bool v) { return new int3x3(v); } - - /// Explicitly converts a bool3x3 matrix to a int3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x3(bool3x3 v) { return new int3x3(v); } - - /// Explicitly converts a single uint value to a int3x3 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x3(uint v) { return new int3x3(v); } - - /// Explicitly converts a uint3x3 matrix to a int3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x3(uint3x3 v) { return new int3x3(v); } - - /// Explicitly converts a single float value to a int3x3 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x3(float v) { return new int3x3(v); } - - /// Explicitly converts a float3x3 matrix to a int3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x3(float3x3 v) { return new int3x3(v); } - - /// Explicitly converts a single double value to a int3x3 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x3(double v) { return new int3x3(v); } - - /// Explicitly converts a double3x3 matrix to a int3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x3(double3x3 v) { return new int3x3(v); } - - - /// Returns the result of a componentwise multiplication operation on two int3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator * (int3x3 lhs, int3x3 rhs) { return new int3x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } - - /// Returns the result of a componentwise multiplication operation on an int3x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator * (int3x3 lhs, int rhs) { return new int3x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } - - /// Returns the result of a componentwise multiplication operation on an int value and an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator * (int lhs, int3x3 rhs) { return new int3x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } - - - /// Returns the result of a componentwise addition operation on two int3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator + (int3x3 lhs, int3x3 rhs) { return new int3x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } - - /// Returns the result of a componentwise addition operation on an int3x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator + (int3x3 lhs, int rhs) { return new int3x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } - - /// Returns the result of a componentwise addition operation on an int value and an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator + (int lhs, int3x3 rhs) { return new int3x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } - - - /// Returns the result of a componentwise subtraction operation on two int3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator - (int3x3 lhs, int3x3 rhs) { return new int3x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } - - /// Returns the result of a componentwise subtraction operation on an int3x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator - (int3x3 lhs, int rhs) { return new int3x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } - - /// Returns the result of a componentwise subtraction operation on an int value and an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator - (int lhs, int3x3 rhs) { return new int3x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } - - - /// Returns the result of a componentwise division operation on two int3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator / (int3x3 lhs, int3x3 rhs) { return new int3x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } - - /// Returns the result of a componentwise division operation on an int3x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator / (int3x3 lhs, int rhs) { return new int3x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } - - /// Returns the result of a componentwise division operation on an int value and an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator / (int lhs, int3x3 rhs) { return new int3x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } - - - /// Returns the result of a componentwise modulus operation on two int3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator % (int3x3 lhs, int3x3 rhs) { return new int3x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } - - /// Returns the result of a componentwise modulus operation on an int3x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator % (int3x3 lhs, int rhs) { return new int3x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } - - /// Returns the result of a componentwise modulus operation on an int value and an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator % (int lhs, int3x3 rhs) { return new int3x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } - - - /// Returns the result of a componentwise increment operation on an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator ++ (int3x3 val) { return new int3x3 (++val.c0, ++val.c1, ++val.c2); } - - - /// Returns the result of a componentwise decrement operation on an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator -- (int3x3 val) { return new int3x3 (--val.c0, --val.c1, --val.c2); } - - - /// Returns the result of a componentwise less than operation on two int3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator < (int3x3 lhs, int3x3 rhs) { return new bool3x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } - - /// Returns the result of a componentwise less than operation on an int3x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator < (int3x3 lhs, int rhs) { return new bool3x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } - - /// Returns the result of a componentwise less than operation on an int value and an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator < (int lhs, int3x3 rhs) { return new bool3x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } - - - /// Returns the result of a componentwise less or equal operation on two int3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator <= (int3x3 lhs, int3x3 rhs) { return new bool3x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } - - /// Returns the result of a componentwise less or equal operation on an int3x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator <= (int3x3 lhs, int rhs) { return new bool3x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on an int value and an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator <= (int lhs, int3x3 rhs) { return new bool3x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } - - - /// Returns the result of a componentwise greater than operation on two int3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator > (int3x3 lhs, int3x3 rhs) { return new bool3x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } - - /// Returns the result of a componentwise greater than operation on an int3x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator > (int3x3 lhs, int rhs) { return new bool3x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } - - /// Returns the result of a componentwise greater than operation on an int value and an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator > (int lhs, int3x3 rhs) { return new bool3x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } - - - /// Returns the result of a componentwise greater or equal operation on two int3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator >= (int3x3 lhs, int3x3 rhs) { return new bool3x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } - - /// Returns the result of a componentwise greater or equal operation on an int3x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator >= (int3x3 lhs, int rhs) { return new bool3x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on an int value and an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator >= (int lhs, int3x3 rhs) { return new bool3x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } - - - /// Returns the result of a componentwise unary minus operation on an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator - (int3x3 val) { return new int3x3 (-val.c0, -val.c1, -val.c2); } - - - /// Returns the result of a componentwise unary plus operation on an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator + (int3x3 val) { return new int3x3 (+val.c0, +val.c1, +val.c2); } - - - /// Returns the result of a componentwise left shift operation on an int3x3 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator << (int3x3 x, int n) { return new int3x3 (x.c0 << n, x.c1 << n, x.c2 << n); } - - /// Returns the result of a componentwise right shift operation on an int3x3 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator >> (int3x3 x, int n) { return new int3x3 (x.c0 >> n, x.c1 >> n, x.c2 >> n); } - - /// Returns the result of a componentwise equality operation on two int3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator == (int3x3 lhs, int3x3 rhs) { return new bool3x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } - - /// Returns the result of a componentwise equality operation on an int3x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator == (int3x3 lhs, int rhs) { return new bool3x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } - - /// Returns the result of a componentwise equality operation on an int value and an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator == (int lhs, int3x3 rhs) { return new bool3x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } - - - /// Returns the result of a componentwise not equal operation on two int3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator != (int3x3 lhs, int3x3 rhs) { return new bool3x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } - - /// Returns the result of a componentwise not equal operation on an int3x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator != (int3x3 lhs, int rhs) { return new bool3x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } - - /// Returns the result of a componentwise not equal operation on an int value and an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator != (int lhs, int3x3 rhs) { return new bool3x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } - - - /// Returns the result of a componentwise bitwise not operation on an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator ~ (int3x3 val) { return new int3x3 (~val.c0, ~val.c1, ~val.c2); } - - - /// Returns the result of a componentwise bitwise and operation on two int3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator & (int3x3 lhs, int3x3 rhs) { return new int3x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); } - - /// Returns the result of a componentwise bitwise and operation on an int3x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator & (int3x3 lhs, int rhs) { return new int3x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on an int value and an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator & (int lhs, int3x3 rhs) { return new int3x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); } - - - /// Returns the result of a componentwise bitwise or operation on two int3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator | (int3x3 lhs, int3x3 rhs) { return new int3x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); } - - /// Returns the result of a componentwise bitwise or operation on an int3x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator | (int3x3 lhs, int rhs) { return new int3x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on an int value and an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator | (int lhs, int3x3 rhs) { return new int3x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two int3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator ^ (int3x3 lhs, int3x3 rhs) { return new int3x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int3x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator ^ (int3x3 lhs, int rhs) { return new int3x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 operator ^ (int lhs, int3x3 rhs) { return new int3x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); } - - - - /// Returns the int3 element at a specified index. - unsafe public ref int3 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (int3x3* array = &this) { return ref ((int3*)array)[index]; } - } - } - - /// Returns true if the int3x3 is equal to a given int3x3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(int3x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } - - /// Returns true if the int3x3 is equal to a given int3x3, false otherwise. - public override bool Equals(object o) { return Equals((int3x3)o); } - - - /// Returns a hash code for the int3x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the int3x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("int3x3({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); - } - - /// Returns a string representation of the int3x3 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("int3x3({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)); - } - - } - - public static partial class math - { - /// Returns a int3x3 matrix constructed from three int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 int3x3(int3 c0, int3 c1, int3 c2) { return new int3x3(c0, c1, c2); } - - /// Returns a int3x3 matrix constructed from from 9 int values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 int3x3(int m00, int m01, int m02, - int m10, int m11, int m12, - int m20, int m21, int m22) - { - return new int3x3(m00, m01, m02, - m10, m11, m12, - m20, m21, m22); - } - - /// Returns a int3x3 matrix constructed from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 int3x3(int v) { return new int3x3(v); } - - /// Returns a int3x3 matrix constructed from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 int3x3(bool v) { return new int3x3(v); } - - /// Return a int3x3 matrix constructed from a bool3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 int3x3(bool3x3 v) { return new int3x3(v); } - - /// Returns a int3x3 matrix constructed from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 int3x3(uint v) { return new int3x3(v); } - - /// Return a int3x3 matrix constructed from a uint3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 int3x3(uint3x3 v) { return new int3x3(v); } - - /// Returns a int3x3 matrix constructed from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 int3x3(float v) { return new int3x3(v); } - - /// Return a int3x3 matrix constructed from a float3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 int3x3(float3x3 v) { return new int3x3(v); } - - /// Returns a int3x3 matrix constructed from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 int3x3(double v) { return new int3x3(v); } - - /// Return a int3x3 matrix constructed from a double3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 int3x3(double3x3 v) { return new int3x3(v); } - - /// Return the int3x3 transpose of a int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 transpose(int3x3 v) - { - return int3x3( - v.c0.x, v.c0.y, v.c0.z, - v.c1.x, v.c1.y, v.c1.z, - v.c2.x, v.c2.y, v.c2.z); - } - - /// Returns the determinant of a int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int determinant(int3x3 m) - { - int3 c0 = m.c0; - int3 c1 = m.c1; - int3 c2 = m.c2; - - int m00 = c1.y * c2.z - c1.z * c2.y; - int m01 = c0.y * c2.z - c0.z * c2.y; - int m02 = c0.y * c1.z - c0.z * c1.y; - - return c0.x * m00 - c1.x * m01 + c2.x * m02; - } - - /// Returns a uint hash code of a int3x3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(int3x3 v) - { - return csum(asuint(v.c0) * uint3(0x93C30C2Bu, 0xDCAF0351u, 0x6E050B01u) + - asuint(v.c1) * uint3(0x750FDBF5u, 0x7F3DD499u, 0x52EAAEBBu) + - asuint(v.c2) * uint3(0x4599C793u, 0x83B5E729u, 0xC267163Fu)) + 0x67BC9149u; - } - - /// - /// Returns a uint3 vector hash code of a int3x3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(int3x3 v) - { - return (asuint(v.c0) * uint3(0xAD7C5EC1u, 0x822A7D6Du, 0xB492BF15u) + - asuint(v.c1) * uint3(0xD37220E3u, 0x7AA2C2BDu, 0xE16BC89Du) + - asuint(v.c2) * uint3(0x7AA07CD3u, 0xAF642BA9u, 0xA8F2213Bu)) + 0x9F3FDC37u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/int3x4.gen.cs b/Economy.Shared/Unity.Mathematics/int3x4.gen.cs deleted file mode 100644 index 788f3d37e..000000000 --- a/Economy.Shared/Unity.Mathematics/int3x4.gen.cs +++ /dev/null @@ -1,524 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct int3x4 : System.IEquatable, IFormattable - { - public int3 c0; - public int3 c1; - public int3 c2; - public int3 c3; - - /// int3x4 zero value. - public static readonly int3x4 zero; - - /// Constructs a int3x4 matrix from four int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x4(int3 c0, int3 c1, int3 c2, int3 c3) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - this.c3 = c3; - } - - /// Constructs a int3x4 matrix from 12 int values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x4(int m00, int m01, int m02, int m03, - int m10, int m11, int m12, int m13, - int m20, int m21, int m22, int m23) - { - this.c0 = new int3(m00, m10, m20); - this.c1 = new int3(m01, m11, m21); - this.c2 = new int3(m02, m12, m22); - this.c3 = new int3(m03, m13, m23); - } - - /// Constructs a int3x4 matrix from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x4(int v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a int3x4 matrix from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x4(bool v) - { - this.c0 = math.select(new int3(0), new int3(1), v); - this.c1 = math.select(new int3(0), new int3(1), v); - this.c2 = math.select(new int3(0), new int3(1), v); - this.c3 = math.select(new int3(0), new int3(1), v); - } - - /// Constructs a int3x4 matrix from a bool3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x4(bool3x4 v) - { - this.c0 = math.select(new int3(0), new int3(1), v.c0); - this.c1 = math.select(new int3(0), new int3(1), v.c1); - this.c2 = math.select(new int3(0), new int3(1), v.c2); - this.c3 = math.select(new int3(0), new int3(1), v.c3); - } - - /// Constructs a int3x4 matrix from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x4(uint v) - { - this.c0 = (int3)v; - this.c1 = (int3)v; - this.c2 = (int3)v; - this.c3 = (int3)v; - } - - /// Constructs a int3x4 matrix from a uint3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x4(uint3x4 v) - { - this.c0 = (int3)v.c0; - this.c1 = (int3)v.c1; - this.c2 = (int3)v.c2; - this.c3 = (int3)v.c3; - } - - /// Constructs a int3x4 matrix from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x4(float v) - { - this.c0 = (int3)v; - this.c1 = (int3)v; - this.c2 = (int3)v; - this.c3 = (int3)v; - } - - /// Constructs a int3x4 matrix from a float3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x4(float3x4 v) - { - this.c0 = (int3)v.c0; - this.c1 = (int3)v.c1; - this.c2 = (int3)v.c2; - this.c3 = (int3)v.c3; - } - - /// Constructs a int3x4 matrix from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x4(double v) - { - this.c0 = (int3)v; - this.c1 = (int3)v; - this.c2 = (int3)v; - this.c3 = (int3)v; - } - - /// Constructs a int3x4 matrix from a double3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3x4(double3x4 v) - { - this.c0 = (int3)v.c0; - this.c1 = (int3)v.c1; - this.c2 = (int3)v.c2; - this.c3 = (int3)v.c3; - } - - - /// Implicitly converts a single int value to a int3x4 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator int3x4(int v) { return new int3x4(v); } - - /// Explicitly converts a single bool value to a int3x4 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x4(bool v) { return new int3x4(v); } - - /// Explicitly converts a bool3x4 matrix to a int3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x4(bool3x4 v) { return new int3x4(v); } - - /// Explicitly converts a single uint value to a int3x4 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x4(uint v) { return new int3x4(v); } - - /// Explicitly converts a uint3x4 matrix to a int3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x4(uint3x4 v) { return new int3x4(v); } - - /// Explicitly converts a single float value to a int3x4 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x4(float v) { return new int3x4(v); } - - /// Explicitly converts a float3x4 matrix to a int3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x4(float3x4 v) { return new int3x4(v); } - - /// Explicitly converts a single double value to a int3x4 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x4(double v) { return new int3x4(v); } - - /// Explicitly converts a double3x4 matrix to a int3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int3x4(double3x4 v) { return new int3x4(v); } - - - /// Returns the result of a componentwise multiplication operation on two int3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator * (int3x4 lhs, int3x4 rhs) { return new int3x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } - - /// Returns the result of a componentwise multiplication operation on an int3x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator * (int3x4 lhs, int rhs) { return new int3x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } - - /// Returns the result of a componentwise multiplication operation on an int value and an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator * (int lhs, int3x4 rhs) { return new int3x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } - - - /// Returns the result of a componentwise addition operation on two int3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator + (int3x4 lhs, int3x4 rhs) { return new int3x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } - - /// Returns the result of a componentwise addition operation on an int3x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator + (int3x4 lhs, int rhs) { return new int3x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } - - /// Returns the result of a componentwise addition operation on an int value and an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator + (int lhs, int3x4 rhs) { return new int3x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } - - - /// Returns the result of a componentwise subtraction operation on two int3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator - (int3x4 lhs, int3x4 rhs) { return new int3x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } - - /// Returns the result of a componentwise subtraction operation on an int3x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator - (int3x4 lhs, int rhs) { return new int3x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } - - /// Returns the result of a componentwise subtraction operation on an int value and an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator - (int lhs, int3x4 rhs) { return new int3x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } - - - /// Returns the result of a componentwise division operation on two int3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator / (int3x4 lhs, int3x4 rhs) { return new int3x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } - - /// Returns the result of a componentwise division operation on an int3x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator / (int3x4 lhs, int rhs) { return new int3x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } - - /// Returns the result of a componentwise division operation on an int value and an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator / (int lhs, int3x4 rhs) { return new int3x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } - - - /// Returns the result of a componentwise modulus operation on two int3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator % (int3x4 lhs, int3x4 rhs) { return new int3x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } - - /// Returns the result of a componentwise modulus operation on an int3x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator % (int3x4 lhs, int rhs) { return new int3x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } - - /// Returns the result of a componentwise modulus operation on an int value and an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator % (int lhs, int3x4 rhs) { return new int3x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } - - - /// Returns the result of a componentwise increment operation on an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator ++ (int3x4 val) { return new int3x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } - - - /// Returns the result of a componentwise decrement operation on an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator -- (int3x4 val) { return new int3x4 (--val.c0, --val.c1, --val.c2, --val.c3); } - - - /// Returns the result of a componentwise less than operation on two int3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator < (int3x4 lhs, int3x4 rhs) { return new bool3x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } - - /// Returns the result of a componentwise less than operation on an int3x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator < (int3x4 lhs, int rhs) { return new bool3x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } - - /// Returns the result of a componentwise less than operation on an int value and an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator < (int lhs, int3x4 rhs) { return new bool3x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } - - - /// Returns the result of a componentwise less or equal operation on two int3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator <= (int3x4 lhs, int3x4 rhs) { return new bool3x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } - - /// Returns the result of a componentwise less or equal operation on an int3x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator <= (int3x4 lhs, int rhs) { return new bool3x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on an int value and an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator <= (int lhs, int3x4 rhs) { return new bool3x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } - - - /// Returns the result of a componentwise greater than operation on two int3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator > (int3x4 lhs, int3x4 rhs) { return new bool3x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } - - /// Returns the result of a componentwise greater than operation on an int3x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator > (int3x4 lhs, int rhs) { return new bool3x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } - - /// Returns the result of a componentwise greater than operation on an int value and an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator > (int lhs, int3x4 rhs) { return new bool3x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } - - - /// Returns the result of a componentwise greater or equal operation on two int3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator >= (int3x4 lhs, int3x4 rhs) { return new bool3x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } - - /// Returns the result of a componentwise greater or equal operation on an int3x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator >= (int3x4 lhs, int rhs) { return new bool3x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on an int value and an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator >= (int lhs, int3x4 rhs) { return new bool3x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } - - - /// Returns the result of a componentwise unary minus operation on an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator - (int3x4 val) { return new int3x4 (-val.c0, -val.c1, -val.c2, -val.c3); } - - - /// Returns the result of a componentwise unary plus operation on an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator + (int3x4 val) { return new int3x4 (+val.c0, +val.c1, +val.c2, +val.c3); } - - - /// Returns the result of a componentwise left shift operation on an int3x4 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator << (int3x4 x, int n) { return new int3x4 (x.c0 << n, x.c1 << n, x.c2 << n, x.c3 << n); } - - /// Returns the result of a componentwise right shift operation on an int3x4 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator >> (int3x4 x, int n) { return new int3x4 (x.c0 >> n, x.c1 >> n, x.c2 >> n, x.c3 >> n); } - - /// Returns the result of a componentwise equality operation on two int3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator == (int3x4 lhs, int3x4 rhs) { return new bool3x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } - - /// Returns the result of a componentwise equality operation on an int3x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator == (int3x4 lhs, int rhs) { return new bool3x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } - - /// Returns the result of a componentwise equality operation on an int value and an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator == (int lhs, int3x4 rhs) { return new bool3x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } - - - /// Returns the result of a componentwise not equal operation on two int3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator != (int3x4 lhs, int3x4 rhs) { return new bool3x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } - - /// Returns the result of a componentwise not equal operation on an int3x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator != (int3x4 lhs, int rhs) { return new bool3x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } - - /// Returns the result of a componentwise not equal operation on an int value and an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator != (int lhs, int3x4 rhs) { return new bool3x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } - - - /// Returns the result of a componentwise bitwise not operation on an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator ~ (int3x4 val) { return new int3x4 (~val.c0, ~val.c1, ~val.c2, ~val.c3); } - - - /// Returns the result of a componentwise bitwise and operation on two int3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator & (int3x4 lhs, int3x4 rhs) { return new int3x4 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2, lhs.c3 & rhs.c3); } - - /// Returns the result of a componentwise bitwise and operation on an int3x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator & (int3x4 lhs, int rhs) { return new int3x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on an int value and an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator & (int lhs, int3x4 rhs) { return new int3x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); } - - - /// Returns the result of a componentwise bitwise or operation on two int3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator | (int3x4 lhs, int3x4 rhs) { return new int3x4 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2, lhs.c3 | rhs.c3); } - - /// Returns the result of a componentwise bitwise or operation on an int3x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator | (int3x4 lhs, int rhs) { return new int3x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on an int value and an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator | (int lhs, int3x4 rhs) { return new int3x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two int3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator ^ (int3x4 lhs, int3x4 rhs) { return new int3x4 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2, lhs.c3 ^ rhs.c3); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int3x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator ^ (int3x4 lhs, int rhs) { return new int3x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 operator ^ (int lhs, int3x4 rhs) { return new int3x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); } - - - - /// Returns the int3 element at a specified index. - unsafe public ref int3 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (int3x4* array = &this) { return ref ((int3*)array)[index]; } - } - } - - /// Returns true if the int3x4 is equal to a given int3x4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(int3x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } - - /// Returns true if the int3x4 is equal to a given int3x4, false otherwise. - public override bool Equals(object o) { return Equals((int3x4)o); } - - - /// Returns a hash code for the int3x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the int3x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("int3x4({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); - } - - /// Returns a string representation of the int3x4 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("int3x4({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)); - } - - } - - public static partial class math - { - /// Returns a int3x4 matrix constructed from four int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 int3x4(int3 c0, int3 c1, int3 c2, int3 c3) { return new int3x4(c0, c1, c2, c3); } - - /// Returns a int3x4 matrix constructed from from 12 int values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 int3x4(int m00, int m01, int m02, int m03, - int m10, int m11, int m12, int m13, - int m20, int m21, int m22, int m23) - { - return new int3x4(m00, m01, m02, m03, - m10, m11, m12, m13, - m20, m21, m22, m23); - } - - /// Returns a int3x4 matrix constructed from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 int3x4(int v) { return new int3x4(v); } - - /// Returns a int3x4 matrix constructed from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 int3x4(bool v) { return new int3x4(v); } - - /// Return a int3x4 matrix constructed from a bool3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 int3x4(bool3x4 v) { return new int3x4(v); } - - /// Returns a int3x4 matrix constructed from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 int3x4(uint v) { return new int3x4(v); } - - /// Return a int3x4 matrix constructed from a uint3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 int3x4(uint3x4 v) { return new int3x4(v); } - - /// Returns a int3x4 matrix constructed from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 int3x4(float v) { return new int3x4(v); } - - /// Return a int3x4 matrix constructed from a float3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 int3x4(float3x4 v) { return new int3x4(v); } - - /// Returns a int3x4 matrix constructed from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 int3x4(double v) { return new int3x4(v); } - - /// Return a int3x4 matrix constructed from a double3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 int3x4(double3x4 v) { return new int3x4(v); } - - /// Return the int4x3 transpose of a int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 transpose(int3x4 v) - { - return int4x3( - v.c0.x, v.c0.y, v.c0.z, - v.c1.x, v.c1.y, v.c1.z, - v.c2.x, v.c2.y, v.c2.z, - v.c3.x, v.c3.y, v.c3.z); - } - - /// Returns a uint hash code of a int3x4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(int3x4 v) - { - return csum(asuint(v.c0) * uint3(0x5AB3E8CDu, 0x676E8407u, 0xB36DE767u) + - asuint(v.c1) * uint3(0x6FCA387Du, 0xAF0F3103u, 0xE4A056C7u) + - asuint(v.c2) * uint3(0x841D8225u, 0xC9393C7Du, 0xD42EAFA3u) + - asuint(v.c3) * uint3(0xD9AFD06Du, 0x97A65421u, 0x7809205Fu)) + 0x9C9F0823u; - } - - /// - /// Returns a uint3 vector hash code of a int3x4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(int3x4 v) - { - return (asuint(v.c0) * uint3(0x5A9CA13Bu, 0xAFCDD5EFu, 0xA88D187Du) + - asuint(v.c1) * uint3(0xCF6EBA1Du, 0x9D88E5A1u, 0xEADF0775u) + - asuint(v.c2) * uint3(0x747A9D7Bu, 0x4111F799u, 0xB5F05AF1u) + - asuint(v.c3) * uint3(0xFD80290Bu, 0x8B65ADB7u, 0xDFF4F563u)) + 0x7069770Du; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/int4.gen.cs b/Economy.Shared/Unity.Mathematics/int4.gen.cs deleted file mode 100644 index d5f7795d2..000000000 --- a/Economy.Shared/Unity.Mathematics/int4.gen.cs +++ /dev/null @@ -1,3480 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; -using System.Diagnostics; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [DebuggerTypeProxy(typeof(int4.DebuggerProxy))] - [System.Serializable] - public partial struct int4 : System.IEquatable, IFormattable - { - public int x; - public int y; - public int z; - public int w; - - /// int4 zero value. - public static readonly int4 zero; - - /// Constructs a int4 vector from four int values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int x, int y, int z, int w) - { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - - /// Constructs a int4 vector from two int values and an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int x, int y, int2 zw) - { - this.x = x; - this.y = y; - this.z = zw.x; - this.w = zw.y; - } - - /// Constructs a int4 vector from an int value, an int2 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int x, int2 yz, int w) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - this.w = w; - } - - /// Constructs a int4 vector from an int value and an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int x, int3 yzw) - { - this.x = x; - this.y = yzw.x; - this.z = yzw.y; - this.w = yzw.z; - } - - /// Constructs a int4 vector from an int2 vector and two int values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int2 xy, int z, int w) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - this.w = w; - } - - /// Constructs a int4 vector from two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int2 xy, int2 zw) - { - this.x = xy.x; - this.y = xy.y; - this.z = zw.x; - this.w = zw.y; - } - - /// Constructs a int4 vector from an int3 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int3 xyz, int w) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - this.w = w; - } - - /// Constructs a int4 vector from an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int4 xyzw) - { - this.x = xyzw.x; - this.y = xyzw.y; - this.z = xyzw.z; - this.w = xyzw.w; - } - - /// Constructs a int4 vector from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int v) - { - this.x = v; - this.y = v; - this.z = v; - this.w = v; - } - - /// Constructs a int4 vector from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(bool v) - { - this.x = v ? 1 : 0; - this.y = v ? 1 : 0; - this.z = v ? 1 : 0; - this.w = v ? 1 : 0; - } - - /// Constructs a int4 vector from a bool4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(bool4 v) - { - this.x = v.x ? 1 : 0; - this.y = v.y ? 1 : 0; - this.z = v.z ? 1 : 0; - this.w = v.w ? 1 : 0; - } - - /// Constructs a int4 vector from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(uint v) - { - this.x = (int)v; - this.y = (int)v; - this.z = (int)v; - this.w = (int)v; - } - - /// Constructs a int4 vector from a uint4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(uint4 v) - { - this.x = (int)v.x; - this.y = (int)v.y; - this.z = (int)v.z; - this.w = (int)v.w; - } - - /// Constructs a int4 vector from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(float v) - { - this.x = (int)v; - this.y = (int)v; - this.z = (int)v; - this.w = (int)v; - } - - /// Constructs a int4 vector from a float4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(float4 v) - { - this.x = (int)v.x; - this.y = (int)v.y; - this.z = (int)v.z; - this.w = (int)v.w; - } - - /// Constructs a int4 vector from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(double v) - { - this.x = (int)v; - this.y = (int)v; - this.z = (int)v; - this.w = (int)v; - } - - /// Constructs a int4 vector from a double4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(double4 v) - { - this.x = (int)v.x; - this.y = (int)v.y; - this.z = (int)v.z; - this.w = (int)v.w; - } - - - /// Implicitly converts a single int value to a int4 vector by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator int4(int v) { return new int4(v); } - - /// Explicitly converts a single bool value to a int4 vector by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4(bool v) { return new int4(v); } - - /// Explicitly converts a bool4 vector to a int4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4(bool4 v) { return new int4(v); } - - /// Explicitly converts a single uint value to a int4 vector by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4(uint v) { return new int4(v); } - - /// Explicitly converts a uint4 vector to a int4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4(uint4 v) { return new int4(v); } - - /// Explicitly converts a single float value to a int4 vector by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4(float v) { return new int4(v); } - - /// Explicitly converts a float4 vector to a int4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4(float4 v) { return new int4(v); } - - /// Explicitly converts a single double value to a int4 vector by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4(double v) { return new int4(v); } - - /// Explicitly converts a double4 vector to a int4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4(double4 v) { return new int4(v); } - - - /// Returns the result of a componentwise multiplication operation on two int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator * (int4 lhs, int4 rhs) { return new int4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } - - /// Returns the result of a componentwise multiplication operation on an int4 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator * (int4 lhs, int rhs) { return new int4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } - - /// Returns the result of a componentwise multiplication operation on an int value and an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator * (int lhs, int4 rhs) { return new int4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } - - - /// Returns the result of a componentwise addition operation on two int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator + (int4 lhs, int4 rhs) { return new int4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } - - /// Returns the result of a componentwise addition operation on an int4 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator + (int4 lhs, int rhs) { return new int4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } - - /// Returns the result of a componentwise addition operation on an int value and an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator + (int lhs, int4 rhs) { return new int4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } - - - /// Returns the result of a componentwise subtraction operation on two int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator - (int4 lhs, int4 rhs) { return new int4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } - - /// Returns the result of a componentwise subtraction operation on an int4 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator - (int4 lhs, int rhs) { return new int4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } - - /// Returns the result of a componentwise subtraction operation on an int value and an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator - (int lhs, int4 rhs) { return new int4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } - - - /// Returns the result of a componentwise division operation on two int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator / (int4 lhs, int4 rhs) { return new int4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } - - /// Returns the result of a componentwise division operation on an int4 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator / (int4 lhs, int rhs) { return new int4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } - - /// Returns the result of a componentwise division operation on an int value and an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator / (int lhs, int4 rhs) { return new int4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } - - - /// Returns the result of a componentwise modulus operation on two int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator % (int4 lhs, int4 rhs) { return new int4 (lhs.x % rhs.x, lhs.y % rhs.y, lhs.z % rhs.z, lhs.w % rhs.w); } - - /// Returns the result of a componentwise modulus operation on an int4 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator % (int4 lhs, int rhs) { return new int4 (lhs.x % rhs, lhs.y % rhs, lhs.z % rhs, lhs.w % rhs); } - - /// Returns the result of a componentwise modulus operation on an int value and an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator % (int lhs, int4 rhs) { return new int4 (lhs % rhs.x, lhs % rhs.y, lhs % rhs.z, lhs % rhs.w); } - - - /// Returns the result of a componentwise increment operation on an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator ++ (int4 val) { return new int4 (++val.x, ++val.y, ++val.z, ++val.w); } - - - /// Returns the result of a componentwise decrement operation on an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator -- (int4 val) { return new int4 (--val.x, --val.y, --val.z, --val.w); } - - - /// Returns the result of a componentwise less than operation on two int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (int4 lhs, int4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } - - /// Returns the result of a componentwise less than operation on an int4 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (int4 lhs, int rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } - - /// Returns the result of a componentwise less than operation on an int value and an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (int lhs, int4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } - - - /// Returns the result of a componentwise less or equal operation on two int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (int4 lhs, int4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } - - /// Returns the result of a componentwise less or equal operation on an int4 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (int4 lhs, int rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } - - /// Returns the result of a componentwise less or equal operation on an int value and an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (int lhs, int4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } - - - /// Returns the result of a componentwise greater than operation on two int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (int4 lhs, int4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } - - /// Returns the result of a componentwise greater than operation on an int4 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (int4 lhs, int rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } - - /// Returns the result of a componentwise greater than operation on an int value and an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (int lhs, int4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } - - - /// Returns the result of a componentwise greater or equal operation on two int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (int4 lhs, int4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } - - /// Returns the result of a componentwise greater or equal operation on an int4 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (int4 lhs, int rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on an int value and an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (int lhs, int4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } - - - /// Returns the result of a componentwise unary minus operation on an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator - (int4 val) { return new int4 (-val.x, -val.y, -val.z, -val.w); } - - - /// Returns the result of a componentwise unary plus operation on an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator + (int4 val) { return new int4 (+val.x, +val.y, +val.z, +val.w); } - - - /// Returns the result of a componentwise left shift operation on an int4 vector by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator << (int4 x, int n) { return new int4 (x.x << n, x.y << n, x.z << n, x.w << n); } - - /// Returns the result of a componentwise right shift operation on an int4 vector by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator >> (int4 x, int n) { return new int4 (x.x >> n, x.y >> n, x.z >> n, x.w >> n); } - - /// Returns the result of a componentwise equality operation on two int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (int4 lhs, int4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } - - /// Returns the result of a componentwise equality operation on an int4 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (int4 lhs, int rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } - - /// Returns the result of a componentwise equality operation on an int value and an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (int lhs, int4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } - - - /// Returns the result of a componentwise not equal operation on two int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (int4 lhs, int4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } - - /// Returns the result of a componentwise not equal operation on an int4 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (int4 lhs, int rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } - - /// Returns the result of a componentwise not equal operation on an int value and an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (int lhs, int4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } - - - /// Returns the result of a componentwise bitwise not operation on an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator ~ (int4 val) { return new int4 (~val.x, ~val.y, ~val.z, ~val.w); } - - - /// Returns the result of a componentwise bitwise and operation on two int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator & (int4 lhs, int4 rhs) { return new int4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } - - /// Returns the result of a componentwise bitwise and operation on an int4 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator & (int4 lhs, int rhs) { return new int4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } - - /// Returns the result of a componentwise bitwise and operation on an int value and an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator & (int lhs, int4 rhs) { return new int4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } - - - /// Returns the result of a componentwise bitwise or operation on two int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator | (int4 lhs, int4 rhs) { return new int4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } - - /// Returns the result of a componentwise bitwise or operation on an int4 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator | (int4 lhs, int rhs) { return new int4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } - - /// Returns the result of a componentwise bitwise or operation on an int value and an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator | (int lhs, int4 rhs) { return new int4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator ^ (int4 lhs, int4 rhs) { return new int4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int4 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator ^ (int4 lhs, int rhs) { return new int4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator ^ (int lhs, int4 rhs) { return new int4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } - - - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 ywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 ywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 ywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 www - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 wx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 wy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 wz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 ww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(w, w); } - } - - - - /// Returns the int element at a specified index. - unsafe public int this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (int4* array = &this) { return ((int*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (int* array = &x) { array[index] = value; } - } - } - - /// Returns true if the int4 is equal to a given int4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(int4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } - - /// Returns true if the int4 is equal to a given int4, false otherwise. - public override bool Equals(object o) { return Equals((int4)o); } - - - /// Returns a hash code for the int4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the int4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("int4({0}, {1}, {2}, {3})", x, y, z, w); - } - - /// Returns a string representation of the int4 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("int4({0}, {1}, {2}, {3})", x.ToString(format, formatProvider), y.ToString(format, formatProvider), z.ToString(format, formatProvider), w.ToString(format, formatProvider)); - } - - internal sealed class DebuggerProxy - { - public int x; - public int y; - public int z; - public int w; - public DebuggerProxy(int4 v) - { - x = v.x; - y = v.y; - z = v.z; - w = v.w; - } - } - - } - - public static partial class math - { - /// Returns a int4 vector constructed from four int values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int x, int y, int z, int w) { return new int4(x, y, z, w); } - - /// Returns a int4 vector constructed from two int values and an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int x, int y, int2 zw) { return new int4(x, y, zw); } - - /// Returns a int4 vector constructed from an int value, an int2 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int x, int2 yz, int w) { return new int4(x, yz, w); } - - /// Returns a int4 vector constructed from an int value and an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int x, int3 yzw) { return new int4(x, yzw); } - - /// Returns a int4 vector constructed from an int2 vector and two int values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int2 xy, int z, int w) { return new int4(xy, z, w); } - - /// Returns a int4 vector constructed from two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int2 xy, int2 zw) { return new int4(xy, zw); } - - /// Returns a int4 vector constructed from an int3 vector and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int3 xyz, int w) { return new int4(xyz, w); } - - /// Returns a int4 vector constructed from an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int4 xyzw) { return new int4(xyzw); } - - /// Returns a int4 vector constructed from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int v) { return new int4(v); } - - /// Returns a int4 vector constructed from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(bool v) { return new int4(v); } - - /// Return a int4 vector constructed from a bool4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(bool4 v) { return new int4(v); } - - /// Returns a int4 vector constructed from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(uint v) { return new int4(v); } - - /// Return a int4 vector constructed from a uint4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(uint4 v) { return new int4(v); } - - /// Returns a int4 vector constructed from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(float v) { return new int4(v); } - - /// Return a int4 vector constructed from a float4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(float4 v) { return new int4(v); } - - /// Returns a int4 vector constructed from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(double v) { return new int4(v); } - - /// Return a int4 vector constructed from a double4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(double4 v) { return new int4(v); } - - /// Returns a uint hash code of a int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(int4 v) - { - return csum(asuint(v) * uint4(0x6E050B01u, 0x750FDBF5u, 0x7F3DD499u, 0x52EAAEBBu)) + 0x4599C793u; - } - - /// - /// Returns a uint4 vector hash code of a int4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(int4 v) - { - return (asuint(v) * uint4(0x83B5E729u, 0xC267163Fu, 0x67BC9149u, 0xAD7C5EC1u)) + 0x822A7D6Du; - } - - /// Returns the result of specified shuffling of the components from two int4 vectors into an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int shuffle(int4 a, int4 b, ShuffleComponent x) - { - return select_shuffle_component(a, b, x); - } - - /// Returns the result of specified shuffling of the components from two int4 vectors into an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 shuffle(int4 a, int4 b, ShuffleComponent x, ShuffleComponent y) - { - return int2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); - } - - /// Returns the result of specified shuffling of the components from two int4 vectors into an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 shuffle(int4 a, int4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) - { - return int3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); - } - - /// Returns the result of specified shuffling of the components from two int4 vectors into an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 shuffle(int4 a, int4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) - { - return int4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int select_shuffle_component(int4 a, int4 b, ShuffleComponent component) - { - switch(component) - { - case ShuffleComponent.LeftX: - return a.x; - case ShuffleComponent.LeftY: - return a.y; - case ShuffleComponent.LeftZ: - return a.z; - case ShuffleComponent.LeftW: - return a.w; - case ShuffleComponent.RightX: - return b.x; - case ShuffleComponent.RightY: - return b.y; - case ShuffleComponent.RightZ: - return b.z; - case ShuffleComponent.RightW: - return b.w; - default: - throw new System.ArgumentException("Invalid shuffle component: " + component); - } - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/int4x2.gen.cs b/Economy.Shared/Unity.Mathematics/int4x2.gen.cs deleted file mode 100644 index d63d8143f..000000000 --- a/Economy.Shared/Unity.Mathematics/int4x2.gen.cs +++ /dev/null @@ -1,497 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct int4x2 : System.IEquatable, IFormattable - { - public int4 c0; - public int4 c1; - - /// int4x2 zero value. - public static readonly int4x2 zero; - - /// Constructs a int4x2 matrix from two int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x2(int4 c0, int4 c1) - { - this.c0 = c0; - this.c1 = c1; - } - - /// Constructs a int4x2 matrix from 8 int values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x2(int m00, int m01, - int m10, int m11, - int m20, int m21, - int m30, int m31) - { - this.c0 = new int4(m00, m10, m20, m30); - this.c1 = new int4(m01, m11, m21, m31); - } - - /// Constructs a int4x2 matrix from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x2(int v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a int4x2 matrix from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x2(bool v) - { - this.c0 = math.select(new int4(0), new int4(1), v); - this.c1 = math.select(new int4(0), new int4(1), v); - } - - /// Constructs a int4x2 matrix from a bool4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x2(bool4x2 v) - { - this.c0 = math.select(new int4(0), new int4(1), v.c0); - this.c1 = math.select(new int4(0), new int4(1), v.c1); - } - - /// Constructs a int4x2 matrix from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x2(uint v) - { - this.c0 = (int4)v; - this.c1 = (int4)v; - } - - /// Constructs a int4x2 matrix from a uint4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x2(uint4x2 v) - { - this.c0 = (int4)v.c0; - this.c1 = (int4)v.c1; - } - - /// Constructs a int4x2 matrix from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x2(float v) - { - this.c0 = (int4)v; - this.c1 = (int4)v; - } - - /// Constructs a int4x2 matrix from a float4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x2(float4x2 v) - { - this.c0 = (int4)v.c0; - this.c1 = (int4)v.c1; - } - - /// Constructs a int4x2 matrix from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x2(double v) - { - this.c0 = (int4)v; - this.c1 = (int4)v; - } - - /// Constructs a int4x2 matrix from a double4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x2(double4x2 v) - { - this.c0 = (int4)v.c0; - this.c1 = (int4)v.c1; - } - - - /// Implicitly converts a single int value to a int4x2 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator int4x2(int v) { return new int4x2(v); } - - /// Explicitly converts a single bool value to a int4x2 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x2(bool v) { return new int4x2(v); } - - /// Explicitly converts a bool4x2 matrix to a int4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x2(bool4x2 v) { return new int4x2(v); } - - /// Explicitly converts a single uint value to a int4x2 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x2(uint v) { return new int4x2(v); } - - /// Explicitly converts a uint4x2 matrix to a int4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x2(uint4x2 v) { return new int4x2(v); } - - /// Explicitly converts a single float value to a int4x2 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x2(float v) { return new int4x2(v); } - - /// Explicitly converts a float4x2 matrix to a int4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x2(float4x2 v) { return new int4x2(v); } - - /// Explicitly converts a single double value to a int4x2 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x2(double v) { return new int4x2(v); } - - /// Explicitly converts a double4x2 matrix to a int4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x2(double4x2 v) { return new int4x2(v); } - - - /// Returns the result of a componentwise multiplication operation on two int4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator * (int4x2 lhs, int4x2 rhs) { return new int4x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } - - /// Returns the result of a componentwise multiplication operation on an int4x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator * (int4x2 lhs, int rhs) { return new int4x2 (lhs.c0 * rhs, lhs.c1 * rhs); } - - /// Returns the result of a componentwise multiplication operation on an int value and an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator * (int lhs, int4x2 rhs) { return new int4x2 (lhs * rhs.c0, lhs * rhs.c1); } - - - /// Returns the result of a componentwise addition operation on two int4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator + (int4x2 lhs, int4x2 rhs) { return new int4x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } - - /// Returns the result of a componentwise addition operation on an int4x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator + (int4x2 lhs, int rhs) { return new int4x2 (lhs.c0 + rhs, lhs.c1 + rhs); } - - /// Returns the result of a componentwise addition operation on an int value and an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator + (int lhs, int4x2 rhs) { return new int4x2 (lhs + rhs.c0, lhs + rhs.c1); } - - - /// Returns the result of a componentwise subtraction operation on two int4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator - (int4x2 lhs, int4x2 rhs) { return new int4x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } - - /// Returns the result of a componentwise subtraction operation on an int4x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator - (int4x2 lhs, int rhs) { return new int4x2 (lhs.c0 - rhs, lhs.c1 - rhs); } - - /// Returns the result of a componentwise subtraction operation on an int value and an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator - (int lhs, int4x2 rhs) { return new int4x2 (lhs - rhs.c0, lhs - rhs.c1); } - - - /// Returns the result of a componentwise division operation on two int4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator / (int4x2 lhs, int4x2 rhs) { return new int4x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } - - /// Returns the result of a componentwise division operation on an int4x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator / (int4x2 lhs, int rhs) { return new int4x2 (lhs.c0 / rhs, lhs.c1 / rhs); } - - /// Returns the result of a componentwise division operation on an int value and an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator / (int lhs, int4x2 rhs) { return new int4x2 (lhs / rhs.c0, lhs / rhs.c1); } - - - /// Returns the result of a componentwise modulus operation on two int4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator % (int4x2 lhs, int4x2 rhs) { return new int4x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } - - /// Returns the result of a componentwise modulus operation on an int4x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator % (int4x2 lhs, int rhs) { return new int4x2 (lhs.c0 % rhs, lhs.c1 % rhs); } - - /// Returns the result of a componentwise modulus operation on an int value and an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator % (int lhs, int4x2 rhs) { return new int4x2 (lhs % rhs.c0, lhs % rhs.c1); } - - - /// Returns the result of a componentwise increment operation on an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator ++ (int4x2 val) { return new int4x2 (++val.c0, ++val.c1); } - - - /// Returns the result of a componentwise decrement operation on an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator -- (int4x2 val) { return new int4x2 (--val.c0, --val.c1); } - - - /// Returns the result of a componentwise less than operation on two int4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator < (int4x2 lhs, int4x2 rhs) { return new bool4x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } - - /// Returns the result of a componentwise less than operation on an int4x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator < (int4x2 lhs, int rhs) { return new bool4x2 (lhs.c0 < rhs, lhs.c1 < rhs); } - - /// Returns the result of a componentwise less than operation on an int value and an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator < (int lhs, int4x2 rhs) { return new bool4x2 (lhs < rhs.c0, lhs < rhs.c1); } - - - /// Returns the result of a componentwise less or equal operation on two int4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator <= (int4x2 lhs, int4x2 rhs) { return new bool4x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } - - /// Returns the result of a componentwise less or equal operation on an int4x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator <= (int4x2 lhs, int rhs) { return new bool4x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on an int value and an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator <= (int lhs, int4x2 rhs) { return new bool4x2 (lhs <= rhs.c0, lhs <= rhs.c1); } - - - /// Returns the result of a componentwise greater than operation on two int4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator > (int4x2 lhs, int4x2 rhs) { return new bool4x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } - - /// Returns the result of a componentwise greater than operation on an int4x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator > (int4x2 lhs, int rhs) { return new bool4x2 (lhs.c0 > rhs, lhs.c1 > rhs); } - - /// Returns the result of a componentwise greater than operation on an int value and an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator > (int lhs, int4x2 rhs) { return new bool4x2 (lhs > rhs.c0, lhs > rhs.c1); } - - - /// Returns the result of a componentwise greater or equal operation on two int4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator >= (int4x2 lhs, int4x2 rhs) { return new bool4x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } - - /// Returns the result of a componentwise greater or equal operation on an int4x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator >= (int4x2 lhs, int rhs) { return new bool4x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on an int value and an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator >= (int lhs, int4x2 rhs) { return new bool4x2 (lhs >= rhs.c0, lhs >= rhs.c1); } - - - /// Returns the result of a componentwise unary minus operation on an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator - (int4x2 val) { return new int4x2 (-val.c0, -val.c1); } - - - /// Returns the result of a componentwise unary plus operation on an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator + (int4x2 val) { return new int4x2 (+val.c0, +val.c1); } - - - /// Returns the result of a componentwise left shift operation on an int4x2 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator << (int4x2 x, int n) { return new int4x2 (x.c0 << n, x.c1 << n); } - - /// Returns the result of a componentwise right shift operation on an int4x2 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator >> (int4x2 x, int n) { return new int4x2 (x.c0 >> n, x.c1 >> n); } - - /// Returns the result of a componentwise equality operation on two int4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator == (int4x2 lhs, int4x2 rhs) { return new bool4x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } - - /// Returns the result of a componentwise equality operation on an int4x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator == (int4x2 lhs, int rhs) { return new bool4x2 (lhs.c0 == rhs, lhs.c1 == rhs); } - - /// Returns the result of a componentwise equality operation on an int value and an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator == (int lhs, int4x2 rhs) { return new bool4x2 (lhs == rhs.c0, lhs == rhs.c1); } - - - /// Returns the result of a componentwise not equal operation on two int4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator != (int4x2 lhs, int4x2 rhs) { return new bool4x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } - - /// Returns the result of a componentwise not equal operation on an int4x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator != (int4x2 lhs, int rhs) { return new bool4x2 (lhs.c0 != rhs, lhs.c1 != rhs); } - - /// Returns the result of a componentwise not equal operation on an int value and an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator != (int lhs, int4x2 rhs) { return new bool4x2 (lhs != rhs.c0, lhs != rhs.c1); } - - - /// Returns the result of a componentwise bitwise not operation on an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator ~ (int4x2 val) { return new int4x2 (~val.c0, ~val.c1); } - - - /// Returns the result of a componentwise bitwise and operation on two int4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator & (int4x2 lhs, int4x2 rhs) { return new int4x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); } - - /// Returns the result of a componentwise bitwise and operation on an int4x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator & (int4x2 lhs, int rhs) { return new int4x2 (lhs.c0 & rhs, lhs.c1 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on an int value and an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator & (int lhs, int4x2 rhs) { return new int4x2 (lhs & rhs.c0, lhs & rhs.c1); } - - - /// Returns the result of a componentwise bitwise or operation on two int4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator | (int4x2 lhs, int4x2 rhs) { return new int4x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); } - - /// Returns the result of a componentwise bitwise or operation on an int4x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator | (int4x2 lhs, int rhs) { return new int4x2 (lhs.c0 | rhs, lhs.c1 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on an int value and an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator | (int lhs, int4x2 rhs) { return new int4x2 (lhs | rhs.c0, lhs | rhs.c1); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two int4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator ^ (int4x2 lhs, int4x2 rhs) { return new int4x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int4x2 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator ^ (int4x2 lhs, int rhs) { return new int4x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 operator ^ (int lhs, int4x2 rhs) { return new int4x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); } - - - - /// Returns the int4 element at a specified index. - unsafe public ref int4 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (int4x2* array = &this) { return ref ((int4*)array)[index]; } - } - } - - /// Returns true if the int4x2 is equal to a given int4x2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(int4x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } - - /// Returns true if the int4x2 is equal to a given int4x2, false otherwise. - public override bool Equals(object o) { return Equals((int4x2)o); } - - - /// Returns a hash code for the int4x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the int4x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("int4x2({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7})", c0.x, c1.x, c0.y, c1.y, c0.z, c1.z, c0.w, c1.w); - } - - /// Returns a string representation of the int4x2 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("int4x2({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)); - } - - } - - public static partial class math - { - /// Returns a int4x2 matrix constructed from two int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 int4x2(int4 c0, int4 c1) { return new int4x2(c0, c1); } - - /// Returns a int4x2 matrix constructed from from 8 int values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 int4x2(int m00, int m01, - int m10, int m11, - int m20, int m21, - int m30, int m31) - { - return new int4x2(m00, m01, - m10, m11, - m20, m21, - m30, m31); - } - - /// Returns a int4x2 matrix constructed from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 int4x2(int v) { return new int4x2(v); } - - /// Returns a int4x2 matrix constructed from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 int4x2(bool v) { return new int4x2(v); } - - /// Return a int4x2 matrix constructed from a bool4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 int4x2(bool4x2 v) { return new int4x2(v); } - - /// Returns a int4x2 matrix constructed from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 int4x2(uint v) { return new int4x2(v); } - - /// Return a int4x2 matrix constructed from a uint4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 int4x2(uint4x2 v) { return new int4x2(v); } - - /// Returns a int4x2 matrix constructed from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 int4x2(float v) { return new int4x2(v); } - - /// Return a int4x2 matrix constructed from a float4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 int4x2(float4x2 v) { return new int4x2(v); } - - /// Returns a int4x2 matrix constructed from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 int4x2(double v) { return new int4x2(v); } - - /// Return a int4x2 matrix constructed from a double4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 int4x2(double4x2 v) { return new int4x2(v); } - - /// Return the int2x4 transpose of a int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 transpose(int4x2 v) - { - return int2x4( - v.c0.x, v.c0.y, v.c0.z, v.c0.w, - v.c1.x, v.c1.y, v.c1.z, v.c1.w); - } - - /// Returns a uint hash code of a int4x2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(int4x2 v) - { - return csum(asuint(v.c0) * uint4(0xFAAF07DDu, 0x625C45BDu, 0xC9F27FCBu, 0x6D2523B1u) + - asuint(v.c1) * uint4(0x6E2BF6A9u, 0xCC74B3B7u, 0x83B58237u, 0x833E3E29u)) + 0xA9D919BFu; - } - - /// - /// Returns a uint4 vector hash code of a int4x2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(int4x2 v) - { - return (asuint(v.c0) * uint4(0xC3EC1D97u, 0xB8B208C7u, 0x5D3ED947u, 0x4473BBB1u) + - asuint(v.c1) * uint4(0xCBA11D5Fu, 0x685835CFu, 0xC3D32AE1u, 0xB966942Fu)) + 0xFE9856B3u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/int4x3.gen.cs b/Economy.Shared/Unity.Mathematics/int4x3.gen.cs deleted file mode 100644 index 5d5c55b8a..000000000 --- a/Economy.Shared/Unity.Mathematics/int4x3.gen.cs +++ /dev/null @@ -1,512 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct int4x3 : System.IEquatable, IFormattable - { - public int4 c0; - public int4 c1; - public int4 c2; - - /// int4x3 zero value. - public static readonly int4x3 zero; - - /// Constructs a int4x3 matrix from three int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x3(int4 c0, int4 c1, int4 c2) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - } - - /// Constructs a int4x3 matrix from 12 int values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x3(int m00, int m01, int m02, - int m10, int m11, int m12, - int m20, int m21, int m22, - int m30, int m31, int m32) - { - this.c0 = new int4(m00, m10, m20, m30); - this.c1 = new int4(m01, m11, m21, m31); - this.c2 = new int4(m02, m12, m22, m32); - } - - /// Constructs a int4x3 matrix from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x3(int v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a int4x3 matrix from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x3(bool v) - { - this.c0 = math.select(new int4(0), new int4(1), v); - this.c1 = math.select(new int4(0), new int4(1), v); - this.c2 = math.select(new int4(0), new int4(1), v); - } - - /// Constructs a int4x3 matrix from a bool4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x3(bool4x3 v) - { - this.c0 = math.select(new int4(0), new int4(1), v.c0); - this.c1 = math.select(new int4(0), new int4(1), v.c1); - this.c2 = math.select(new int4(0), new int4(1), v.c2); - } - - /// Constructs a int4x3 matrix from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x3(uint v) - { - this.c0 = (int4)v; - this.c1 = (int4)v; - this.c2 = (int4)v; - } - - /// Constructs a int4x3 matrix from a uint4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x3(uint4x3 v) - { - this.c0 = (int4)v.c0; - this.c1 = (int4)v.c1; - this.c2 = (int4)v.c2; - } - - /// Constructs a int4x3 matrix from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x3(float v) - { - this.c0 = (int4)v; - this.c1 = (int4)v; - this.c2 = (int4)v; - } - - /// Constructs a int4x3 matrix from a float4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x3(float4x3 v) - { - this.c0 = (int4)v.c0; - this.c1 = (int4)v.c1; - this.c2 = (int4)v.c2; - } - - /// Constructs a int4x3 matrix from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x3(double v) - { - this.c0 = (int4)v; - this.c1 = (int4)v; - this.c2 = (int4)v; - } - - /// Constructs a int4x3 matrix from a double4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x3(double4x3 v) - { - this.c0 = (int4)v.c0; - this.c1 = (int4)v.c1; - this.c2 = (int4)v.c2; - } - - - /// Implicitly converts a single int value to a int4x3 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator int4x3(int v) { return new int4x3(v); } - - /// Explicitly converts a single bool value to a int4x3 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x3(bool v) { return new int4x3(v); } - - /// Explicitly converts a bool4x3 matrix to a int4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x3(bool4x3 v) { return new int4x3(v); } - - /// Explicitly converts a single uint value to a int4x3 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x3(uint v) { return new int4x3(v); } - - /// Explicitly converts a uint4x3 matrix to a int4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x3(uint4x3 v) { return new int4x3(v); } - - /// Explicitly converts a single float value to a int4x3 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x3(float v) { return new int4x3(v); } - - /// Explicitly converts a float4x3 matrix to a int4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x3(float4x3 v) { return new int4x3(v); } - - /// Explicitly converts a single double value to a int4x3 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x3(double v) { return new int4x3(v); } - - /// Explicitly converts a double4x3 matrix to a int4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x3(double4x3 v) { return new int4x3(v); } - - - /// Returns the result of a componentwise multiplication operation on two int4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator * (int4x3 lhs, int4x3 rhs) { return new int4x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } - - /// Returns the result of a componentwise multiplication operation on an int4x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator * (int4x3 lhs, int rhs) { return new int4x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } - - /// Returns the result of a componentwise multiplication operation on an int value and an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator * (int lhs, int4x3 rhs) { return new int4x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } - - - /// Returns the result of a componentwise addition operation on two int4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator + (int4x3 lhs, int4x3 rhs) { return new int4x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } - - /// Returns the result of a componentwise addition operation on an int4x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator + (int4x3 lhs, int rhs) { return new int4x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } - - /// Returns the result of a componentwise addition operation on an int value and an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator + (int lhs, int4x3 rhs) { return new int4x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } - - - /// Returns the result of a componentwise subtraction operation on two int4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator - (int4x3 lhs, int4x3 rhs) { return new int4x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } - - /// Returns the result of a componentwise subtraction operation on an int4x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator - (int4x3 lhs, int rhs) { return new int4x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } - - /// Returns the result of a componentwise subtraction operation on an int value and an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator - (int lhs, int4x3 rhs) { return new int4x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } - - - /// Returns the result of a componentwise division operation on two int4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator / (int4x3 lhs, int4x3 rhs) { return new int4x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } - - /// Returns the result of a componentwise division operation on an int4x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator / (int4x3 lhs, int rhs) { return new int4x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } - - /// Returns the result of a componentwise division operation on an int value and an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator / (int lhs, int4x3 rhs) { return new int4x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } - - - /// Returns the result of a componentwise modulus operation on two int4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator % (int4x3 lhs, int4x3 rhs) { return new int4x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } - - /// Returns the result of a componentwise modulus operation on an int4x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator % (int4x3 lhs, int rhs) { return new int4x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } - - /// Returns the result of a componentwise modulus operation on an int value and an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator % (int lhs, int4x3 rhs) { return new int4x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } - - - /// Returns the result of a componentwise increment operation on an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator ++ (int4x3 val) { return new int4x3 (++val.c0, ++val.c1, ++val.c2); } - - - /// Returns the result of a componentwise decrement operation on an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator -- (int4x3 val) { return new int4x3 (--val.c0, --val.c1, --val.c2); } - - - /// Returns the result of a componentwise less than operation on two int4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator < (int4x3 lhs, int4x3 rhs) { return new bool4x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } - - /// Returns the result of a componentwise less than operation on an int4x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator < (int4x3 lhs, int rhs) { return new bool4x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } - - /// Returns the result of a componentwise less than operation on an int value and an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator < (int lhs, int4x3 rhs) { return new bool4x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } - - - /// Returns the result of a componentwise less or equal operation on two int4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator <= (int4x3 lhs, int4x3 rhs) { return new bool4x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } - - /// Returns the result of a componentwise less or equal operation on an int4x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator <= (int4x3 lhs, int rhs) { return new bool4x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on an int value and an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator <= (int lhs, int4x3 rhs) { return new bool4x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } - - - /// Returns the result of a componentwise greater than operation on two int4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator > (int4x3 lhs, int4x3 rhs) { return new bool4x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } - - /// Returns the result of a componentwise greater than operation on an int4x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator > (int4x3 lhs, int rhs) { return new bool4x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } - - /// Returns the result of a componentwise greater than operation on an int value and an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator > (int lhs, int4x3 rhs) { return new bool4x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } - - - /// Returns the result of a componentwise greater or equal operation on two int4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator >= (int4x3 lhs, int4x3 rhs) { return new bool4x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } - - /// Returns the result of a componentwise greater or equal operation on an int4x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator >= (int4x3 lhs, int rhs) { return new bool4x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on an int value and an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator >= (int lhs, int4x3 rhs) { return new bool4x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } - - - /// Returns the result of a componentwise unary minus operation on an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator - (int4x3 val) { return new int4x3 (-val.c0, -val.c1, -val.c2); } - - - /// Returns the result of a componentwise unary plus operation on an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator + (int4x3 val) { return new int4x3 (+val.c0, +val.c1, +val.c2); } - - - /// Returns the result of a componentwise left shift operation on an int4x3 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator << (int4x3 x, int n) { return new int4x3 (x.c0 << n, x.c1 << n, x.c2 << n); } - - /// Returns the result of a componentwise right shift operation on an int4x3 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator >> (int4x3 x, int n) { return new int4x3 (x.c0 >> n, x.c1 >> n, x.c2 >> n); } - - /// Returns the result of a componentwise equality operation on two int4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator == (int4x3 lhs, int4x3 rhs) { return new bool4x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } - - /// Returns the result of a componentwise equality operation on an int4x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator == (int4x3 lhs, int rhs) { return new bool4x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } - - /// Returns the result of a componentwise equality operation on an int value and an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator == (int lhs, int4x3 rhs) { return new bool4x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } - - - /// Returns the result of a componentwise not equal operation on two int4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator != (int4x3 lhs, int4x3 rhs) { return new bool4x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } - - /// Returns the result of a componentwise not equal operation on an int4x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator != (int4x3 lhs, int rhs) { return new bool4x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } - - /// Returns the result of a componentwise not equal operation on an int value and an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator != (int lhs, int4x3 rhs) { return new bool4x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } - - - /// Returns the result of a componentwise bitwise not operation on an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator ~ (int4x3 val) { return new int4x3 (~val.c0, ~val.c1, ~val.c2); } - - - /// Returns the result of a componentwise bitwise and operation on two int4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator & (int4x3 lhs, int4x3 rhs) { return new int4x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); } - - /// Returns the result of a componentwise bitwise and operation on an int4x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator & (int4x3 lhs, int rhs) { return new int4x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on an int value and an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator & (int lhs, int4x3 rhs) { return new int4x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); } - - - /// Returns the result of a componentwise bitwise or operation on two int4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator | (int4x3 lhs, int4x3 rhs) { return new int4x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); } - - /// Returns the result of a componentwise bitwise or operation on an int4x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator | (int4x3 lhs, int rhs) { return new int4x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on an int value and an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator | (int lhs, int4x3 rhs) { return new int4x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two int4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator ^ (int4x3 lhs, int4x3 rhs) { return new int4x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int4x3 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator ^ (int4x3 lhs, int rhs) { return new int4x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 operator ^ (int lhs, int4x3 rhs) { return new int4x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); } - - - - /// Returns the int4 element at a specified index. - unsafe public ref int4 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (int4x3* array = &this) { return ref ((int4*)array)[index]; } - } - } - - /// Returns true if the int4x3 is equal to a given int4x3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(int4x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } - - /// Returns true if the int4x3 is equal to a given int4x3, false otherwise. - public override bool Equals(object o) { return Equals((int4x3)o); } - - - /// Returns a hash code for the int4x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the int4x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("int4x3({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); - } - - /// Returns a string representation of the int4x3 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("int4x3({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)); - } - - } - - public static partial class math - { - /// Returns a int4x3 matrix constructed from three int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 int4x3(int4 c0, int4 c1, int4 c2) { return new int4x3(c0, c1, c2); } - - /// Returns a int4x3 matrix constructed from from 12 int values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 int4x3(int m00, int m01, int m02, - int m10, int m11, int m12, - int m20, int m21, int m22, - int m30, int m31, int m32) - { - return new int4x3(m00, m01, m02, - m10, m11, m12, - m20, m21, m22, - m30, m31, m32); - } - - /// Returns a int4x3 matrix constructed from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 int4x3(int v) { return new int4x3(v); } - - /// Returns a int4x3 matrix constructed from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 int4x3(bool v) { return new int4x3(v); } - - /// Return a int4x3 matrix constructed from a bool4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 int4x3(bool4x3 v) { return new int4x3(v); } - - /// Returns a int4x3 matrix constructed from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 int4x3(uint v) { return new int4x3(v); } - - /// Return a int4x3 matrix constructed from a uint4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 int4x3(uint4x3 v) { return new int4x3(v); } - - /// Returns a int4x3 matrix constructed from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 int4x3(float v) { return new int4x3(v); } - - /// Return a int4x3 matrix constructed from a float4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 int4x3(float4x3 v) { return new int4x3(v); } - - /// Returns a int4x3 matrix constructed from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 int4x3(double v) { return new int4x3(v); } - - /// Return a int4x3 matrix constructed from a double4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 int4x3(double4x3 v) { return new int4x3(v); } - - /// Return the int3x4 transpose of a int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 transpose(int4x3 v) - { - return int3x4( - v.c0.x, v.c0.y, v.c0.z, v.c0.w, - v.c1.x, v.c1.y, v.c1.z, v.c1.w, - v.c2.x, v.c2.y, v.c2.z, v.c2.w); - } - - /// Returns a uint hash code of a int4x3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(int4x3 v) - { - return csum(asuint(v.c0) * uint4(0x69B60C81u, 0xE0EB6C25u, 0xF648BEABu, 0x6BDB2B07u) + - asuint(v.c1) * uint4(0xEF63C699u, 0x9001903Fu, 0xA895B9CDu, 0x9D23B201u) + - asuint(v.c2) * uint4(0x4B01D3E1u, 0x7461CA0Du, 0x79725379u, 0xD6258E5Bu)) + 0xEE390C97u; - } - - /// - /// Returns a uint4 vector hash code of a int4x3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(int4x3 v) - { - return (asuint(v.c0) * uint4(0x9C8A2F05u, 0x4DDC6509u, 0x7CF083CBu, 0x5C4D6CEDu) + - asuint(v.c1) * uint4(0xF9137117u, 0xE857DCE1u, 0xF62213C5u, 0x9CDAA959u) + - asuint(v.c2) * uint4(0xAA269ABFu, 0xD54BA36Fu, 0xFD0847B9u, 0x8189A683u)) + 0xB139D651u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/int4x4.gen.cs b/Economy.Shared/Unity.Mathematics/int4x4.gen.cs deleted file mode 100644 index 2125aac96..000000000 --- a/Economy.Shared/Unity.Mathematics/int4x4.gen.cs +++ /dev/null @@ -1,546 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct int4x4 : System.IEquatable, IFormattable - { - public int4 c0; - public int4 c1; - public int4 c2; - public int4 c3; - - /// int4x4 identity transform. - public static readonly int4x4 identity = new int4x4(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); - - /// int4x4 zero value. - public static readonly int4x4 zero; - - /// Constructs a int4x4 matrix from four int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x4(int4 c0, int4 c1, int4 c2, int4 c3) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - this.c3 = c3; - } - - /// Constructs a int4x4 matrix from 16 int values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x4(int m00, int m01, int m02, int m03, - int m10, int m11, int m12, int m13, - int m20, int m21, int m22, int m23, - int m30, int m31, int m32, int m33) - { - this.c0 = new int4(m00, m10, m20, m30); - this.c1 = new int4(m01, m11, m21, m31); - this.c2 = new int4(m02, m12, m22, m32); - this.c3 = new int4(m03, m13, m23, m33); - } - - /// Constructs a int4x4 matrix from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x4(int v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a int4x4 matrix from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x4(bool v) - { - this.c0 = math.select(new int4(0), new int4(1), v); - this.c1 = math.select(new int4(0), new int4(1), v); - this.c2 = math.select(new int4(0), new int4(1), v); - this.c3 = math.select(new int4(0), new int4(1), v); - } - - /// Constructs a int4x4 matrix from a bool4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x4(bool4x4 v) - { - this.c0 = math.select(new int4(0), new int4(1), v.c0); - this.c1 = math.select(new int4(0), new int4(1), v.c1); - this.c2 = math.select(new int4(0), new int4(1), v.c2); - this.c3 = math.select(new int4(0), new int4(1), v.c3); - } - - /// Constructs a int4x4 matrix from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x4(uint v) - { - this.c0 = (int4)v; - this.c1 = (int4)v; - this.c2 = (int4)v; - this.c3 = (int4)v; - } - - /// Constructs a int4x4 matrix from a uint4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x4(uint4x4 v) - { - this.c0 = (int4)v.c0; - this.c1 = (int4)v.c1; - this.c2 = (int4)v.c2; - this.c3 = (int4)v.c3; - } - - /// Constructs a int4x4 matrix from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x4(float v) - { - this.c0 = (int4)v; - this.c1 = (int4)v; - this.c2 = (int4)v; - this.c3 = (int4)v; - } - - /// Constructs a int4x4 matrix from a float4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x4(float4x4 v) - { - this.c0 = (int4)v.c0; - this.c1 = (int4)v.c1; - this.c2 = (int4)v.c2; - this.c3 = (int4)v.c3; - } - - /// Constructs a int4x4 matrix from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x4(double v) - { - this.c0 = (int4)v; - this.c1 = (int4)v; - this.c2 = (int4)v; - this.c3 = (int4)v; - } - - /// Constructs a int4x4 matrix from a double4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4x4(double4x4 v) - { - this.c0 = (int4)v.c0; - this.c1 = (int4)v.c1; - this.c2 = (int4)v.c2; - this.c3 = (int4)v.c3; - } - - - /// Implicitly converts a single int value to a int4x4 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator int4x4(int v) { return new int4x4(v); } - - /// Explicitly converts a single bool value to a int4x4 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x4(bool v) { return new int4x4(v); } - - /// Explicitly converts a bool4x4 matrix to a int4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x4(bool4x4 v) { return new int4x4(v); } - - /// Explicitly converts a single uint value to a int4x4 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x4(uint v) { return new int4x4(v); } - - /// Explicitly converts a uint4x4 matrix to a int4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x4(uint4x4 v) { return new int4x4(v); } - - /// Explicitly converts a single float value to a int4x4 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x4(float v) { return new int4x4(v); } - - /// Explicitly converts a float4x4 matrix to a int4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x4(float4x4 v) { return new int4x4(v); } - - /// Explicitly converts a single double value to a int4x4 matrix by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x4(double v) { return new int4x4(v); } - - /// Explicitly converts a double4x4 matrix to a int4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator int4x4(double4x4 v) { return new int4x4(v); } - - - /// Returns the result of a componentwise multiplication operation on two int4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator * (int4x4 lhs, int4x4 rhs) { return new int4x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } - - /// Returns the result of a componentwise multiplication operation on an int4x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator * (int4x4 lhs, int rhs) { return new int4x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } - - /// Returns the result of a componentwise multiplication operation on an int value and an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator * (int lhs, int4x4 rhs) { return new int4x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } - - - /// Returns the result of a componentwise addition operation on two int4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator + (int4x4 lhs, int4x4 rhs) { return new int4x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } - - /// Returns the result of a componentwise addition operation on an int4x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator + (int4x4 lhs, int rhs) { return new int4x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } - - /// Returns the result of a componentwise addition operation on an int value and an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator + (int lhs, int4x4 rhs) { return new int4x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } - - - /// Returns the result of a componentwise subtraction operation on two int4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator - (int4x4 lhs, int4x4 rhs) { return new int4x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } - - /// Returns the result of a componentwise subtraction operation on an int4x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator - (int4x4 lhs, int rhs) { return new int4x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } - - /// Returns the result of a componentwise subtraction operation on an int value and an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator - (int lhs, int4x4 rhs) { return new int4x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } - - - /// Returns the result of a componentwise division operation on two int4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator / (int4x4 lhs, int4x4 rhs) { return new int4x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } - - /// Returns the result of a componentwise division operation on an int4x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator / (int4x4 lhs, int rhs) { return new int4x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } - - /// Returns the result of a componentwise division operation on an int value and an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator / (int lhs, int4x4 rhs) { return new int4x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } - - - /// Returns the result of a componentwise modulus operation on two int4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator % (int4x4 lhs, int4x4 rhs) { return new int4x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } - - /// Returns the result of a componentwise modulus operation on an int4x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator % (int4x4 lhs, int rhs) { return new int4x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } - - /// Returns the result of a componentwise modulus operation on an int value and an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator % (int lhs, int4x4 rhs) { return new int4x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } - - - /// Returns the result of a componentwise increment operation on an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator ++ (int4x4 val) { return new int4x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } - - - /// Returns the result of a componentwise decrement operation on an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator -- (int4x4 val) { return new int4x4 (--val.c0, --val.c1, --val.c2, --val.c3); } - - - /// Returns the result of a componentwise less than operation on two int4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator < (int4x4 lhs, int4x4 rhs) { return new bool4x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } - - /// Returns the result of a componentwise less than operation on an int4x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator < (int4x4 lhs, int rhs) { return new bool4x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } - - /// Returns the result of a componentwise less than operation on an int value and an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator < (int lhs, int4x4 rhs) { return new bool4x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } - - - /// Returns the result of a componentwise less or equal operation on two int4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator <= (int4x4 lhs, int4x4 rhs) { return new bool4x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } - - /// Returns the result of a componentwise less or equal operation on an int4x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator <= (int4x4 lhs, int rhs) { return new bool4x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on an int value and an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator <= (int lhs, int4x4 rhs) { return new bool4x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } - - - /// Returns the result of a componentwise greater than operation on two int4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator > (int4x4 lhs, int4x4 rhs) { return new bool4x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } - - /// Returns the result of a componentwise greater than operation on an int4x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator > (int4x4 lhs, int rhs) { return new bool4x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } - - /// Returns the result of a componentwise greater than operation on an int value and an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator > (int lhs, int4x4 rhs) { return new bool4x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } - - - /// Returns the result of a componentwise greater or equal operation on two int4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator >= (int4x4 lhs, int4x4 rhs) { return new bool4x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } - - /// Returns the result of a componentwise greater or equal operation on an int4x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator >= (int4x4 lhs, int rhs) { return new bool4x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on an int value and an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator >= (int lhs, int4x4 rhs) { return new bool4x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } - - - /// Returns the result of a componentwise unary minus operation on an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator - (int4x4 val) { return new int4x4 (-val.c0, -val.c1, -val.c2, -val.c3); } - - - /// Returns the result of a componentwise unary plus operation on an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator + (int4x4 val) { return new int4x4 (+val.c0, +val.c1, +val.c2, +val.c3); } - - - /// Returns the result of a componentwise left shift operation on an int4x4 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator << (int4x4 x, int n) { return new int4x4 (x.c0 << n, x.c1 << n, x.c2 << n, x.c3 << n); } - - /// Returns the result of a componentwise right shift operation on an int4x4 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator >> (int4x4 x, int n) { return new int4x4 (x.c0 >> n, x.c1 >> n, x.c2 >> n, x.c3 >> n); } - - /// Returns the result of a componentwise equality operation on two int4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator == (int4x4 lhs, int4x4 rhs) { return new bool4x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } - - /// Returns the result of a componentwise equality operation on an int4x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator == (int4x4 lhs, int rhs) { return new bool4x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } - - /// Returns the result of a componentwise equality operation on an int value and an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator == (int lhs, int4x4 rhs) { return new bool4x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } - - - /// Returns the result of a componentwise not equal operation on two int4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator != (int4x4 lhs, int4x4 rhs) { return new bool4x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } - - /// Returns the result of a componentwise not equal operation on an int4x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator != (int4x4 lhs, int rhs) { return new bool4x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } - - /// Returns the result of a componentwise not equal operation on an int value and an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator != (int lhs, int4x4 rhs) { return new bool4x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } - - - /// Returns the result of a componentwise bitwise not operation on an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator ~ (int4x4 val) { return new int4x4 (~val.c0, ~val.c1, ~val.c2, ~val.c3); } - - - /// Returns the result of a componentwise bitwise and operation on two int4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator & (int4x4 lhs, int4x4 rhs) { return new int4x4 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2, lhs.c3 & rhs.c3); } - - /// Returns the result of a componentwise bitwise and operation on an int4x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator & (int4x4 lhs, int rhs) { return new int4x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on an int value and an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator & (int lhs, int4x4 rhs) { return new int4x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); } - - - /// Returns the result of a componentwise bitwise or operation on two int4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator | (int4x4 lhs, int4x4 rhs) { return new int4x4 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2, lhs.c3 | rhs.c3); } - - /// Returns the result of a componentwise bitwise or operation on an int4x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator | (int4x4 lhs, int rhs) { return new int4x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on an int value and an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator | (int lhs, int4x4 rhs) { return new int4x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two int4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator ^ (int4x4 lhs, int4x4 rhs) { return new int4x4 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2, lhs.c3 ^ rhs.c3); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int4x4 matrix and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator ^ (int4x4 lhs, int rhs) { return new int4x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 operator ^ (int lhs, int4x4 rhs) { return new int4x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); } - - - - /// Returns the int4 element at a specified index. - unsafe public ref int4 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (int4x4* array = &this) { return ref ((int4*)array)[index]; } - } - } - - /// Returns true if the int4x4 is equal to a given int4x4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(int4x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } - - /// Returns true if the int4x4 is equal to a given int4x4, false otherwise. - public override bool Equals(object o) { return Equals((int4x4)o); } - - - /// Returns a hash code for the int4x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the int4x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("int4x4({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); - } - - /// Returns a string representation of the int4x4 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("int4x4({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)); - } - - } - - public static partial class math - { - /// Returns a int4x4 matrix constructed from four int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 int4x4(int4 c0, int4 c1, int4 c2, int4 c3) { return new int4x4(c0, c1, c2, c3); } - - /// Returns a int4x4 matrix constructed from from 16 int values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 int4x4(int m00, int m01, int m02, int m03, - int m10, int m11, int m12, int m13, - int m20, int m21, int m22, int m23, - int m30, int m31, int m32, int m33) - { - return new int4x4(m00, m01, m02, m03, - m10, m11, m12, m13, - m20, m21, m22, m23, - m30, m31, m32, m33); - } - - /// Returns a int4x4 matrix constructed from a single int value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 int4x4(int v) { return new int4x4(v); } - - /// Returns a int4x4 matrix constructed from a single bool value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 int4x4(bool v) { return new int4x4(v); } - - /// Return a int4x4 matrix constructed from a bool4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 int4x4(bool4x4 v) { return new int4x4(v); } - - /// Returns a int4x4 matrix constructed from a single uint value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 int4x4(uint v) { return new int4x4(v); } - - /// Return a int4x4 matrix constructed from a uint4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 int4x4(uint4x4 v) { return new int4x4(v); } - - /// Returns a int4x4 matrix constructed from a single float value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 int4x4(float v) { return new int4x4(v); } - - /// Return a int4x4 matrix constructed from a float4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 int4x4(float4x4 v) { return new int4x4(v); } - - /// Returns a int4x4 matrix constructed from a single double value by converting it to int and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 int4x4(double v) { return new int4x4(v); } - - /// Return a int4x4 matrix constructed from a double4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 int4x4(double4x4 v) { return new int4x4(v); } - - /// Return the int4x4 transpose of a int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 transpose(int4x4 v) - { - return int4x4( - v.c0.x, v.c0.y, v.c0.z, v.c0.w, - v.c1.x, v.c1.y, v.c1.z, v.c1.w, - v.c2.x, v.c2.y, v.c2.z, v.c2.w, - v.c3.x, v.c3.y, v.c3.z, v.c3.w); - } - - /// Returns the determinant of a int4x4 matrix. - public static int determinant(int4x4 m) - { - int4 c0 = m.c0; - int4 c1 = m.c1; - int4 c2 = m.c2; - int4 c3 = m.c3; - - int m00 = c1.y * (c2.z * c3.w - c2.w * c3.z) - c2.y * (c1.z * c3.w - c1.w * c3.z) + c3.y * (c1.z * c2.w - c1.w * c2.z); - int m01 = c0.y * (c2.z * c3.w - c2.w * c3.z) - c2.y * (c0.z * c3.w - c0.w * c3.z) + c3.y * (c0.z * c2.w - c0.w * c2.z); - int m02 = c0.y * (c1.z * c3.w - c1.w * c3.z) - c1.y * (c0.z * c3.w - c0.w * c3.z) + c3.y * (c0.z * c1.w - c0.w * c1.z); - int m03 = c0.y * (c1.z * c2.w - c1.w * c2.z) - c1.y * (c0.z * c2.w - c0.w * c2.z) + c2.y * (c0.z * c1.w - c0.w * c1.z); - - return c0.x * m00 - c1.x * m01 + c2.x * m02 - c3.x * m03; - } - - /// Returns a uint hash code of a int4x4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(int4x4 v) - { - return csum(asuint(v.c0) * uint4(0x5D1B165Bu, 0x87096CD7u, 0x4C7F6DD1u, 0x4822A3E9u) + - asuint(v.c1) * uint4(0xAAC3C25Du, 0xD21D0945u, 0x88FCAB2Du, 0x614DA60Du) + - asuint(v.c2) * uint4(0x5BA2C50Bu, 0x8C455ACBu, 0xCD266C89u, 0xF1852A33u) + - asuint(v.c3) * uint4(0x77E35E77u, 0x863E3729u, 0xE191B035u, 0x68586FAFu)) + 0xD4DFF6D3u; - } - - /// - /// Returns a uint4 vector hash code of a int4x4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(int4x4 v) - { - return (asuint(v.c0) * uint4(0xCB634F4Du, 0x9B13B92Du, 0x4ABF0813u, 0x86068063u) + - asuint(v.c1) * uint4(0xD75513F9u, 0x5AB3E8CDu, 0x676E8407u, 0xB36DE767u) + - asuint(v.c2) * uint4(0x6FCA387Du, 0xAF0F3103u, 0xE4A056C7u, 0x841D8225u) + - asuint(v.c3) * uint4(0xC9393C7Du, 0xD42EAFA3u, 0xD9AFD06Du, 0x97A65421u)) + 0x7809205Fu; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/math.cs b/Economy.Shared/Unity.Mathematics/math.cs deleted file mode 100644 index bf84dbdb7..000000000 --- a/Economy.Shared/Unity.Mathematics/math.cs +++ /dev/null @@ -1,3470 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; - -namespace Unity.Mathematics -{ - public static partial class math - { - /// Extrinsic rotation order. Specifies in which order rotations around the principal axes (x, y and z) are to be applied. - public enum RotationOrder : byte - { - /// Extrinsic rotation around the x axis, then around the y axis and finally around the z axis. - XYZ, - /// Extrinsic rotation around the x axis, then around the z axis and finally around the y axis. - XZY, - /// Extrinsic rotation around the y axis, then around the x axis and finally around the z axis. - YXZ, - /// Extrinsic rotation around the y axis, then around the z axis and finally around the x axis. - YZX, - /// Extrinsic rotation around the z axis, then around the x axis and finally around the y axis. - ZXY, - /// Extrinsic rotation around the z axis, then around the y axis and finally around the x axis. - ZYX, - /// Unity default rotation order. Extrinsic Rotation around the z axis, then around the x axis and finally around the y axis. - Default = ZXY - }; - - /// Specifies a shuffle component. - public enum ShuffleComponent : byte - { - /// Specified the x component of the left vector. - LeftX, - /// Specified the y component of the left vector. - LeftY, - /// Specified the z component of the left vector. - LeftZ, - /// Specified the w component of the left vector. - LeftW, - - /// Specified the x component of the right vector. - RightX, - /// Specified the y component of the right vector. - RightY, - /// Specified the z component of the right vector. - RightZ, - /// Specified the w component of the right vector. - RightW - }; - - /// The mathematical constant e also known as Euler's number. Approximately 2.72. This is a f64/double precision constant. - public const double E_DBL = 2.71828182845904523536; - - /// The base 2 logarithm of e. Approximately 1.44. This is a f64/double precision constant. - public const double LOG2E_DBL = 1.44269504088896340736; - - /// The base 10 logarithm of e. Approximately 0.43. This is a f64/double precision constant. - public const double LOG10E_DBL = 0.434294481903251827651; - - /// The natural logarithm of 2. Approximately 0.69. This is a f64/double precision constant. - public const double LN2_DBL = 0.693147180559945309417; - - /// The natural logarithm of 10. Approximately 2.30. This is a f64/double precision constant. - public const double LN10_DBL = 2.30258509299404568402; - - /// The mathematical constant pi. Approximately 3.14. This is a f64/double precision constant. - public const double PI_DBL = 3.14159265358979323846; - - /// The square root 2. Approximately 1.41. This is a f64/double precision constant. - public const double SQRT2_DBL = 1.41421356237309504880; - - /// The smallest positive normal number representable in a float. - public const float FLT_MIN_NORMAL = 1.175494351e-38F; - - /// The smallest positive normal number representable in a double. This is a f64/double precision constant. - public const double DBL_MIN_NORMAL = 2.2250738585072014e-308; - - /// The mathematical constant e also known as Euler's number. Approximately 2.72. - public const float E = (float)E_DBL; - - /// The base 2 logarithm of e. Approximately 1.44. - public const float LOG2E = (float)LOG2E_DBL; - - /// The base 10 logarithm of e. Approximately 0.43. - public const float LOG10E = (float)LOG10E_DBL; - - /// The natural logarithm of 2. Approximately 0.69. - public const float LN2 = (float)LN2_DBL; - - /// The natural logarithm of 10. Approximately 2.30. - public const float LN10 = (float)LN10_DBL; - - /// The mathematical constant pi. Approximately 3.14. - public const float PI = (float)PI_DBL; - - /// The square root 2. Approximately 1.41. - public const float SQRT2 = (float)SQRT2_DBL; - - /// Returns the bit pattern of a uint as an int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int asint(uint x) { return (int)x; } - - /// Returns the bit pattern of a uint2 as an int2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 asint(uint2 x) { return int2((int)x.x, (int)x.y); } - - /// Returns the bit pattern of a uint3 as an int3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 asint(uint3 x) { return int3((int)x.x, (int)x.y, (int)x.z); } - - /// Returns the bit pattern of a uint4 as an int4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 asint(uint4 x) { return int4((int)x.x, (int)x.y, (int)x.z, (int)x.w); } - - - /// Returns the bit pattern of a float as an int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int asint(float x) { - IntFloatUnion u; - u.intValue = 0; - u.floatValue = x; - return u.intValue; - } - - /// Returns the bit pattern of a float2 as an int2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 asint(float2 x) { return int2(asint(x.x), asint(x.y)); } - - /// Returns the bit pattern of a float3 as an int3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 asint(float3 x) { return int3(asint(x.x), asint(x.y), asint(x.z)); } - - /// Returns the bit pattern of a float4 as an int4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 asint(float4 x) { return int4(asint(x.x), asint(x.y), asint(x.z), asint(x.w)); } - - - /// Returns the bit pattern of an int as a uint. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint asuint(int x) { return (uint)x; } - - /// Returns the bit pattern of an int2 as a uint2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 asuint(int2 x) { return uint2((uint)x.x, (uint)x.y); } - - /// Returns the bit pattern of an int3 as a uint3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 asuint(int3 x) { return uint3((uint)x.x, (uint)x.y, (uint)x.z); } - - /// Returns the bit pattern of an int4 as a uint4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 asuint(int4 x) { return uint4((uint)x.x, (uint)x.y, (uint)x.z, (uint)x.w); } - - - /// Returns the bit pattern of a float as a uint. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint asuint(float x) { return (uint)asint(x); } - - /// Returns the bit pattern of a float2 as a uint2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 asuint(float2 x) { return uint2(asuint(x.x), asuint(x.y)); } - - /// Returns the bit pattern of a float3 as a uint3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 asuint(float3 x) { return uint3(asuint(x.x), asuint(x.y), asuint(x.z)); } - - /// Returns the bit pattern of a float4 as a uint4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 asuint(float4 x) { return uint4(asuint(x.x), asuint(x.y), asuint(x.z), asuint(x.w)); } - - - /// Returns the bit pattern of a ulong as a long. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static long aslong(ulong x) { return (long)x; } - - /// Returns the bit pattern of a double as a long. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static long aslong(double x) - { - LongDoubleUnion u; - u.longValue = 0; - u.doubleValue = x; - return u.longValue; - } - - - /// Returns the bit pattern of a long as a ulong. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ulong asulong(long x) { return (ulong)x; } - - /// Returns the bit pattern of a double as a ulong. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ulong asulong(double x) { return (ulong) aslong(x); } - - - /// Returns the bit pattern of an int as a float. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float asfloat(int x) - { - IntFloatUnion u; - u.floatValue = 0; - u.intValue = x; - - return u.floatValue; - } - - /// Returns the bit pattern of an int2 as a float2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 asfloat(int2 x) { return float2(asfloat(x.x), asfloat(x.y)); } - - /// Returns the bit pattern of an int3 as a float3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 asfloat(int3 x) { return float3(asfloat(x.x), asfloat(x.y), asfloat(x.z)); } - - /// Returns the bit pattern of an int4 as a float4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 asfloat(int4 x) { return float4(asfloat(x.x), asfloat(x.y), asfloat(x.z), asfloat(x.w)); } - - - /// Returns the bit pattern of a uint as a float. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float asfloat(uint x) { return asfloat((int)x); } - - /// Returns the bit pattern of a uint2 as a float2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 asfloat(uint2 x) { return float2(asfloat(x.x), asfloat(x.y)); } - - /// Returns the bit pattern of a uint3 as a float3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 asfloat(uint3 x) { return float3(asfloat(x.x), asfloat(x.y), asfloat(x.z)); } - - /// Returns the bit pattern of a uint4 as a float4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 asfloat(uint4 x) { return float4(asfloat(x.x), asfloat(x.y), asfloat(x.z), asfloat(x.w)); } - - /// - /// Returns a bitmask representation of a bool4. Storing one 1 bit per component - /// in LSB order, from lower to higher bits (so 4 bits in total). - /// The component x is stored at bit 0, - /// The component y is stored at bit 1, - /// The component z is stored at bit 2, - /// The component w is stored at bit 3 - /// The bool4(x = true, y = true, z = false, w = true) would produce the value 1011 = 0xB - /// - /// The input bool4 to calculate the bitmask for - /// A bitmask representation of the bool4, in LSB order - public static int bitmask(bool4 value) - { - int mask = 0; - if (value.x) mask |= 0x01; - if (value.y) mask |= 0x02; - if (value.z) mask |= 0x04; - if (value.w) mask |= 0x08; - return mask; - } - - /// Returns the bit pattern of a long as a double. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double asdouble(long x) - { - LongDoubleUnion u; - u.doubleValue = 0; - u.longValue = x; - return u.doubleValue; - } - - - /// Returns the bit pattern of a ulong as a double. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double asdouble(ulong x) { return asdouble((long)x); } - - - /// Returns true if the input float is a finite floating point value, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool isfinite(float x) { return abs(x) < float.PositiveInfinity; } - - /// Returns a bool2 indicating for each component of a float2 whether it is a finite floating point value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 isfinite(float2 x) { return abs(x) < float.PositiveInfinity; } - - /// Returns a bool3 indicating for each component of a float3 whether it is a finite floating point value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 isfinite(float3 x) { return abs(x) < float.PositiveInfinity; } - - /// Returns a bool4 indicating for each component of a float4 whether it is a finite floating point value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 isfinite(float4 x) { return abs(x) < float.PositiveInfinity; } - - - /// Returns true if the input double is a finite floating point value, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool isfinite(double x) { return abs(x) < double.PositiveInfinity; } - - /// Returns a bool2 indicating for each component of a double2 whether it is a finite floating point value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 isfinite(double2 x) { return abs(x) < double.PositiveInfinity; } - - /// Returns a bool3 indicating for each component of a double3 whether it is a finite floating point value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 isfinite(double3 x) { return abs(x) < double.PositiveInfinity; } - - /// Returns a bool4 indicating for each component of a double4 whether it is a finite floating point value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 isfinite(double4 x) { return abs(x) < double.PositiveInfinity; } - - - /// Returns true if the input float is an infinite floating point value, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool isinf(float x) { return abs(x) == float.PositiveInfinity; } - - /// Returns a bool2 indicating for each component of a float2 whether it is an infinite floating point value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 isinf(float2 x) { return abs(x) == float.PositiveInfinity; } - - /// Returns a bool3 indicating for each component of a float3 whether it is an infinite floating point value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 isinf(float3 x) { return abs(x) == float.PositiveInfinity; } - - /// Returns a bool4 indicating for each component of a float4 whether it is an infinite floating point value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 isinf(float4 x) { return abs(x) == float.PositiveInfinity; } - - /// Returns true if the input double is an infinite floating point value, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool isinf(double x) { return abs(x) == double.PositiveInfinity; } - - /// Returns a bool2 indicating for each component of a double2 whether it is an infinite floating point value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 isinf(double2 x) { return abs(x) == double.PositiveInfinity; } - - /// Returns a bool3 indicating for each component of a double3 whether it is an infinite floating point value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 isinf(double3 x) { return abs(x) == double.PositiveInfinity; } - - /// Returns a bool4 indicating for each component of a double4 whether it is an infinite floating point value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 isinf(double4 x) { return abs(x) == double.PositiveInfinity; } - - - /// Returns true if the input float is a NaN (not a number) floating point value, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool isnan(float x) { return (asuint(x) & 0x7FFFFFFF) > 0x7F800000; } - - /// Returns a bool2 indicating for each component of a float2 whether it is a NaN (not a number) floating point value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 isnan(float2 x) { return (asuint(x) & 0x7FFFFFFF) > 0x7F800000; } - - /// Returns a bool3 indicating for each component of a float3 whether it is a NaN (not a number) floating point value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 isnan(float3 x) { return (asuint(x) & 0x7FFFFFFF) > 0x7F800000; } - - /// Returns a bool4 indicating for each component of a float4 whether it is a NaN (not a number) floating point value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 isnan(float4 x) { return (asuint(x) & 0x7FFFFFFF) > 0x7F800000; } - - - /// Returns true if the input double is a NaN (not a number) floating point value, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool isnan(double x) { return (asulong(x) & 0x7FFFFFFFFFFFFFFF) > 0x7FF0000000000000; } - - /// Returns a bool2 indicating for each component of a double2 whether it is a NaN (not a number) floating point value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 isnan(double2 x) { - return bool2((asulong(x.x) & 0x7FFFFFFFFFFFFFFF) > 0x7FF0000000000000, - (asulong(x.y) & 0x7FFFFFFFFFFFFFFF) > 0x7FF0000000000000); - } - - /// Returns a bool3 indicating for each component of a double3 whether it is a NaN (not a number) floating point value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 isnan(double3 x) - { - return bool3((asulong(x.x) & 0x7FFFFFFFFFFFFFFF) > 0x7FF0000000000000, - (asulong(x.y) & 0x7FFFFFFFFFFFFFFF) > 0x7FF0000000000000, - (asulong(x.z) & 0x7FFFFFFFFFFFFFFF) > 0x7FF0000000000000); - } - - /// Returns a bool4 indicating for each component of a double4 whether it is a NaN (not a number) floating point value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 isnan(double4 x) - { - return bool4((asulong(x.x) & 0x7FFFFFFFFFFFFFFF) > 0x7FF0000000000000, - (asulong(x.y) & 0x7FFFFFFFFFFFFFFF) > 0x7FF0000000000000, - (asulong(x.z) & 0x7FFFFFFFFFFFFFFF) > 0x7FF0000000000000, - (asulong(x.w) & 0x7FFFFFFFFFFFFFFF) > 0x7FF0000000000000); - } - - - /// Returns the minimum of two int values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int min(int x, int y) { return x < y ? x : y; } - - /// Returns the componentwise minimum of two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 min(int2 x, int2 y) { return new int2(min(x.x, y.x), min(x.y, y.y)); } - - /// Returns the componentwise minimum of two int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 min(int3 x, int3 y) { return new int3(min(x.x, y.x), min(x.y, y.y), min(x.z, y.z)); } - - /// Returns the componentwise minimum of two int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 min(int4 x, int4 y) { return new int4(min(x.x, y.x), min(x.y, y.y), min(x.z, y.z), min(x.w, y.w)); } - - - /// Returns the minimum of two uint values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint min(uint x, uint y) { return x < y ? x : y; } - - /// Returns the componentwise minimum of two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 min(uint2 x, uint2 y) { return new uint2(min(x.x, y.x), min(x.y, y.y)); } - - /// Returns the componentwise minimum of two uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 min(uint3 x, uint3 y) { return new uint3(min(x.x, y.x), min(x.y, y.y), min(x.z, y.z)); } - - /// Returns the componentwise minimum of two uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 min(uint4 x, uint4 y) { return new uint4(min(x.x, y.x), min(x.y, y.y), min(x.z, y.z), min(x.w, y.w)); } - - - /// Returns the minimum of two long values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static long min(long x, long y) { return x < y ? x : y; } - - - /// Returns the minimum of two ulong values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ulong min(ulong x, ulong y) { return x < y ? x : y; } - - - /// Returns the minimum of two float values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float min(float x, float y) { return float.IsNaN(y) || x < y ? x : y; } - - /// Returns the componentwise minimum of two float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 min(float2 x, float2 y) { return new float2(min(x.x, y.x), min(x.y, y.y)); } - - /// Returns the componentwise minimum of two float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 min(float3 x, float3 y) { return new float3(min(x.x, y.x), min(x.y, y.y), min(x.z, y.z)); } - - /// Returns the componentwise minimum of two float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 min(float4 x, float4 y) { return new float4(min(x.x, y.x), min(x.y, y.y), min(x.z, y.z), min(x.w, y.w)); } - - - /// Returns the minimum of two double values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double min(double x, double y) { return double.IsNaN(y) || x < y ? x : y; } - - /// Returns the componentwise minimum of two double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 min(double2 x, double2 y) { return new double2(min(x.x, y.x), min(x.y, y.y)); } - - /// Returns the componentwise minimum of two double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 min(double3 x, double3 y) { return new double3(min(x.x, y.x), min(x.y, y.y), min(x.z, y.z)); } - - /// Returns the componentwise minimum of two double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 min(double4 x, double4 y) { return new double4(min(x.x, y.x), min(x.y, y.y), min(x.z, y.z), min(x.w, y.w)); } - - - /// Returns the maximum of two int values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int max(int x, int y) { return x > y ? x : y; } - - /// Returns the componentwise maximum of two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 max(int2 x, int2 y) { return new int2(max(x.x, y.x), max(x.y, y.y)); } - - /// Returns the componentwise maximum of two int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 max(int3 x, int3 y) { return new int3(max(x.x, y.x), max(x.y, y.y), max(x.z, y.z)); } - - /// Returns the componentwise maximum of two int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 max(int4 x, int4 y) { return new int4(max(x.x, y.x), max(x.y, y.y), max(x.z, y.z), max(x.w, y.w)); } - - - /// Returns the maximum of two uint values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint max(uint x, uint y) { return x > y ? x : y; } - - /// Returns the componentwise maximum of two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 max(uint2 x, uint2 y) { return new uint2(max(x.x, y.x), max(x.y, y.y)); } - - /// Returns the componentwise maximum of two uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 max(uint3 x, uint3 y) { return new uint3(max(x.x, y.x), max(x.y, y.y), max(x.z, y.z)); } - - /// Returns the componentwise maximum of two uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 max(uint4 x, uint4 y) { return new uint4(max(x.x, y.x), max(x.y, y.y), max(x.z, y.z), max(x.w, y.w)); } - - - /// Returns the maximum of two long values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static long max(long x, long y) { return x > y ? x : y; } - - - /// Returns the maximum of two ulong values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ulong max(ulong x, ulong y) { return x > y ? x : y; } - - - /// Returns the maximum of two float values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float max(float x, float y) { return float.IsNaN(y) || x > y ? x : y; } - - /// Returns the componentwise maximum of two float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 max(float2 x, float2 y) { return new float2(max(x.x, y.x), max(x.y, y.y)); } - - /// Returns the componentwise maximum of two float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 max(float3 x, float3 y) { return new float3(max(x.x, y.x), max(x.y, y.y), max(x.z, y.z)); } - - /// Returns the componentwise maximum of two float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 max(float4 x, float4 y) { return new float4(max(x.x, y.x), max(x.y, y.y), max(x.z, y.z), max(x.w, y.w)); } - - - /// Returns the maximum of two double values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double max(double x, double y) { return double.IsNaN(y) || x > y ? x : y; } - - /// Returns the componentwise maximum of two double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 max(double2 x, double2 y) { return new double2(max(x.x, y.x), max(x.y, y.y)); } - - /// Returns the componentwise maximum of two double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 max(double3 x, double3 y) { return new double3(max(x.x, y.x), max(x.y, y.y), max(x.z, y.z)); } - - /// Returns the componentwise maximum of two double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 max(double4 x, double4 y) { return new double4(max(x.x, y.x), max(x.y, y.y), max(x.z, y.z), max(x.w, y.w)); } - - - /// Returns the result of linearly interpolating from x to y using the interpolation parameter s. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float lerp(float x, float y, float s) { return x + s * (y - x); } - - /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter s. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 lerp(float2 x, float2 y, float s) { return x + s * (y - x); } - - /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter s. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 lerp(float3 x, float3 y, float s) { return x + s * (y - x); } - - /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter s. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 lerp(float4 x, float4 y, float s) { return x + s * (y - x); } - - - /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter s. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 lerp(float2 x, float2 y, float2 s) { return x + s * (y - x); } - - /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter s. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 lerp(float3 x, float3 y, float3 s) { return x + s * (y - x); } - - /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter s. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 lerp(float4 x, float4 y, float4 s) { return x + s * (y - x); } - - - /// Returns the result of linearly interpolating from x to y using the interpolation parameter s. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double lerp(double x, double y, double s) { return x + s * (y - x); } - - /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter s. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 lerp(double2 x, double2 y, double s) { return x + s * (y - x); } - - /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter s. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 lerp(double3 x, double3 y, double s) { return x + s * (y - x); } - - /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter s. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 lerp(double4 x, double4 y, double s) { return x + s * (y - x); } - - - /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter s. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 lerp(double2 x, double2 y, double2 s) { return x + s * (y - x); } - - /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter s. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 lerp(double3 x, double3 y, double3 s) { return x + s * (y - x); } - - /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter s. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 lerp(double4 x, double4 y, double4 s) { return x + s * (y - x); } - - - /// Returns the result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float unlerp(float a, float b, float x) { return (x - a) / (b - a); } - - /// Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 unlerp(float2 a, float2 b, float2 x) { return (x - a) / (b - a); } - - /// Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 unlerp(float3 a, float3 b, float3 x) { return (x - a) / (b - a); } - - /// Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 unlerp(float4 a, float4 b, float4 x) { return (x - a) / (b - a); } - - - /// Returns the result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double unlerp(double a, double b, double x) { return (x - a) / (b - a); } - - /// Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 unlerp(double2 a, double2 b, double2 x) { return (x - a) / (b - a); } - - /// Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 unlerp(double3 a, double3 b, double3 x) { return (x - a) / (b - a); } - - /// Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 unlerp(double4 a, double4 b, double4 x) { return (x - a) / (b - a); } - - - /// Returns the result of a non-clamping linear remapping of a value x from [a, b] to [c, d]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float remap(float a, float b, float c, float d, float x) { return lerp(c, d, unlerp(a, b, x)); } - - /// Returns the componentwise result of a non-clamping linear remapping of a value x from [a, b] to [c, d]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 remap(float2 a, float2 b, float2 c, float2 d, float2 x) { return lerp(c, d, unlerp(a, b, x)); } - - /// Returns the componentwise result of a non-clamping linear remapping of a value x from [a, b] to [c, d]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 remap(float3 a, float3 b, float3 c, float3 d, float3 x) { return lerp(c, d, unlerp(a, b, x)); } - - /// Returns the componentwise result of a non-clamping linear remapping of a value x from [a, b] to [c, d]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 remap(float4 a, float4 b, float4 c, float4 d, float4 x) { return lerp(c, d, unlerp(a, b, x)); } - - - /// Returns the result of a non-clamping linear remapping of a value x from [a, b] to [c, d]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double remap(double a, double b, double c, double d, double x) { return lerp(c, d, unlerp(a, b, x)); } - - /// Returns the componentwise result of a non-clamping linear remapping of a value x from [a, b] to [c, d]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 remap(double2 a, double2 b, double2 c, double2 d, double2 x) { return lerp(c, d, unlerp(a, b, x)); } - - /// Returns the componentwise result of a non-clamping linear remapping of a value x from [a, b] to [c, d]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 remap(double3 a, double3 b, double3 c, double3 d, double3 x) { return lerp(c, d, unlerp(a, b, x)); } - - /// Returns the componentwise result of a non-clamping linear remapping of a value x from [a, b] to [c, d]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 remap(double4 a, double4 b, double4 c, double4 d, double4 x) { return lerp(c, d, unlerp(a, b, x)); } - - - /// Returns the result of a multiply-add operation (a * b + c) on 3 int values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int mad(int a, int b, int c) { return a * b + c; } - - /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 mad(int2 a, int2 b, int2 c) { return a * b + c; } - - /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 mad(int3 a, int3 b, int3 c) { return a * b + c; } - - /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 mad(int4 a, int4 b, int4 c) { return a * b + c; } - - - /// Returns the result of a multiply-add operation (a * b + c) on 3 uint values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint mad(uint a, uint b, uint c) { return a * b + c; } - - /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 mad(uint2 a, uint2 b, uint2 c) { return a * b + c; } - - /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 mad(uint3 a, uint3 b, uint3 c) { return a * b + c; } - - /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 mad(uint4 a, uint4 b, uint4 c) { return a * b + c; } - - - /// Returns the result of a multiply-add operation (a * b + c) on 3 long values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static long mad(long a, long b, long c) { return a * b + c; } - - - /// Returns the result of a multiply-add operation (a * b + c) on 3 ulong values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ulong mad(ulong a, ulong b, ulong c) { return a * b + c; } - - - /// Returns the result of a multiply-add operation (a * b + c) on 3 float values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float mad(float a, float b, float c) { return a * b + c; } - - /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 mad(float2 a, float2 b, float2 c) { return a * b + c; } - - /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 mad(float3 a, float3 b, float3 c) { return a * b + c; } - - /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 mad(float4 a, float4 b, float4 c) { return a * b + c; } - - - /// Returns the result of a multiply-add operation (a * b + c) on 3 double values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double mad(double a, double b, double c) { return a * b + c; } - - /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 mad(double2 a, double2 b, double2 c) { return a * b + c; } - - /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 mad(double3 a, double3 b, double3 c) { return a * b + c; } - - /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 mad(double4 a, double4 b, double4 c) { return a * b + c; } - - - /// Returns the result of clamping the value x into the interval [a, b], where x, a and b are int values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int clamp(int x, int a, int b) { return max(a, min(b, x)); } - - /// Returns the result of a componentwise clamping of the int2 x into the interval [a, b], where a and b are int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 clamp(int2 x, int2 a, int2 b) { return max(a, min(b, x)); } - - /// Returns the result of a componentwise clamping of the int3 x into the interval [a, b], where x, a and b are int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 clamp(int3 x, int3 a, int3 b) { return max(a, min(b, x)); } - - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 clamp(int4 x, int4 a, int4 b) { return max(a, min(b, x)); } - - - /// Returns the result of clamping the value x into the interval [a, b], where x, a and b are uint values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint clamp(uint x, uint a, uint b) { return max(a, min(b, x)); } - - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 clamp(uint2 x, uint2 a, uint2 b) { return max(a, min(b, x)); } - - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 clamp(uint3 x, uint3 a, uint3 b) { return max(a, min(b, x)); } - - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 clamp(uint4 x, uint4 a, uint4 b) { return max(a, min(b, x)); } - - - /// Returns the result of clamping the value x into the interval [a, b], where x, a and b are long values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static long clamp(long x, long a, long b) { return max(a, min(b, x)); } - - /// Returns the result of clamping the value x into the interval [a, b], where x, a and b are ulong values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ulong clamp(ulong x, ulong a, ulong b) { return max(a, min(b, x)); } - - - /// Returns the result of clamping the value x into the interval [a, b], where x, a and b are float values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float clamp(float x, float a, float b) { return max(a, min(b, x)); } - - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 clamp(float2 x, float2 a, float2 b) { return max(a, min(b, x)); } - - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 clamp(float3 x, float3 a, float3 b) { return max(a, min(b, x)); } - - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 clamp(float4 x, float4 a, float4 b) { return max(a, min(b, x)); } - - - /// Returns the result of clamping the value x into the interval [a, b], where x, a and b are double values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double clamp(double x, double a, double b) { return max(a, min(b, x)); } - - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 clamp(double2 x, double2 a, double2 b) { return max(a, min(b, x)); } - - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 clamp(double3 x, double3 a, double3 b) { return max(a, min(b, x)); } - - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 clamp(double4 x, double4 a, double4 b) { return max(a, min(b, x)); } - - - /// Returns the result of clamping the float value x into the interval [0, 1]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float saturate(float x) { return clamp(x, 0.0f, 1.0f); } - - /// Returns the result of a componentwise clamping of the float2 vector x into the interval [0, 1]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 saturate(float2 x) { return clamp(x, new float2(0.0f), new float2(1.0f)); } - - /// Returns the result of a componentwise clamping of the float3 vector x into the interval [0, 1]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 saturate(float3 x) { return clamp(x, new float3(0.0f), new float3(1.0f)); } - - /// Returns the result of a componentwise clamping of the float4 vector x into the interval [0, 1]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 saturate(float4 x) { return clamp(x, new float4(0.0f), new float4(1.0f)); } - - - /// Returns the result of clamping the double value x into the interval [0, 1]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double saturate(double x) { return clamp(x, 0.0, 1.0); } - - /// Returns the result of a componentwise clamping of the double2 vector x into the interval [0, 1]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 saturate(double2 x) { return clamp(x, new double2(0.0), new double2(1.0)); } - - /// Returns the result of a componentwise clamping of the double3 vector x into the interval [0, 1]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 saturate(double3 x) { return clamp(x, new double3(0.0), new double3(1.0)); } - - /// Returns the result of a componentwise clamping of the double4 vector x into the interval [0, 1]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 saturate(double4 x) { return clamp(x, new double4(0.0), new double4(1.0)); } - - - /// Returns the absolute value of a int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int abs(int x) { return max(-x, x); } - - /// Returns the componentwise absolute value of a int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 abs(int2 x) { return max(-x, x); } - - /// Returns the componentwise absolute value of a int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 abs(int3 x) { return max(-x, x); } - - /// Returns the componentwise absolute value of a int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 abs(int4 x) { return max(-x, x); } - - /// Returns the absolute value of a long value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static long abs(long x) { return max(-x, x); } - - - /// Returns the absolute value of a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float abs(float x) { return asfloat(asuint(x) & 0x7FFFFFFF); } - - /// Returns the componentwise absolute value of a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 abs(float2 x) { return asfloat(asuint(x) & 0x7FFFFFFF); } - - /// Returns the componentwise absolute value of a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 abs(float3 x) { return asfloat(asuint(x) & 0x7FFFFFFF); } - - /// Returns the componentwise absolute value of a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 abs(float4 x) { return asfloat(asuint(x) & 0x7FFFFFFF); } - - - /// Returns the absolute value of a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double abs(double x) { return asdouble(asulong(x) & 0x7FFFFFFFFFFFFFFF); } - - /// Returns the componentwise absolute value of a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 abs(double2 x) { return double2(asdouble(asulong(x.x) & 0x7FFFFFFFFFFFFFFF), asdouble(asulong(x.y) & 0x7FFFFFFFFFFFFFFF)); } - - /// Returns the componentwise absolute value of a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 abs(double3 x) { return double3(asdouble(asulong(x.x) & 0x7FFFFFFFFFFFFFFF), asdouble(asulong(x.y) & 0x7FFFFFFFFFFFFFFF), asdouble(asulong(x.z) & 0x7FFFFFFFFFFFFFFF)); } - - /// Returns the componentwise absolute value of a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 abs(double4 x) { return double4(asdouble(asulong(x.x) & 0x7FFFFFFFFFFFFFFF), asdouble(asulong(x.y) & 0x7FFFFFFFFFFFFFFF), asdouble(asulong(x.z) & 0x7FFFFFFFFFFFFFFF), asdouble(asulong(x.w) & 0x7FFFFFFFFFFFFFFF)); } - - - /// Returns the dot product of two int values. Equivalent to multiplication. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int dot(int x, int y) { return x * y; } - - /// Returns the dot product of two int2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int dot(int2 x, int2 y) { return x.x * y.x + x.y * y.y; } - - /// Returns the dot product of two int3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int dot(int3 x, int3 y) { return x.x * y.x + x.y * y.y + x.z * y.z; } - - /// Returns the dot product of two int4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int dot(int4 x, int4 y) { return x.x * y.x + x.y * y.y + x.z * y.z + x.w * y.w; } - - - /// Returns the dot product of two uint values. Equivalent to multiplication. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint dot(uint x, uint y) { return x * y; } - - /// Returns the dot product of two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint dot(uint2 x, uint2 y) { return x.x * y.x + x.y * y.y; } - - /// Returns the dot product of two uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint dot(uint3 x, uint3 y) { return x.x * y.x + x.y * y.y + x.z * y.z; } - - /// Returns the dot product of two uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint dot(uint4 x, uint4 y) { return x.x * y.x + x.y * y.y + x.z * y.z + x.w * y.w; } - - - /// Returns the dot product of two float values. Equivalent to multiplication. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float dot(float x, float y) { return x * y; } - - /// Returns the dot product of two float2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float dot(float2 x, float2 y) { return x.x * y.x + x.y * y.y; } - - /// Returns the dot product of two float3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float dot(float3 x, float3 y) { return x.x * y.x + x.y * y.y + x.z * y.z; } - - /// Returns the dot product of two float4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float dot(float4 x, float4 y) { return x.x * y.x + x.y * y.y + x.z * y.z + x.w * y.w; } - - - /// Returns the dot product of two double values. Equivalent to multiplication. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double dot(double x, double y) { return x * y; } - - /// Returns the dot product of two double2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double dot(double2 x, double2 y) { return x.x * y.x + x.y * y.y; } - - /// Returns the dot product of two double3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double dot(double3 x, double3 y) { return x.x * y.x + x.y * y.y + x.z * y.z; } - - /// Returns the dot product of two double4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double dot(double4 x, double4 y) { return x.x * y.x + x.y * y.y + x.z * y.z + x.w * y.w; } - - - /// Returns the tangent of a float value. - public static float tan(float x) { return (float)System.Math.Tan(x); } - - /// Returns the componentwise tangent of a float2 vector. - public static float2 tan(float2 x) { return new float2(tan(x.x), tan(x.y)); } - - /// Returns the componentwise tangent of a float3 vector. - public static float3 tan(float3 x) { return new float3(tan(x.x), tan(x.y), tan(x.z)); } - - /// Returns the componentwise tangent of a float4 vector. - public static float4 tan(float4 x) { return new float4(tan(x.x), tan(x.y), tan(x.z), tan(x.w)); } - - - /// Returns the tangent of a double value. - public static double tan(double x) { return System.Math.Tan(x); } - - /// Returns the componentwise tangent of a double2 vector. - public static double2 tan(double2 x) { return new double2(tan(x.x), tan(x.y)); } - - /// Returns the componentwise tangent of a double3 vector. - public static double3 tan(double3 x) { return new double3(tan(x.x), tan(x.y), tan(x.z)); } - - /// Returns the componentwise tangent of a double4 vector. - public static double4 tan(double4 x) { return new double4(tan(x.x), tan(x.y), tan(x.z), tan(x.w)); } - - - /// Returns the hyperbolic tangent of a float value. - public static float tanh(float x) { return (float)System.Math.Tanh(x); } - - /// Returns the componentwise hyperbolic tangent of a float2 vector. - public static float2 tanh(float2 x) { return new float2(tanh(x.x), tanh(x.y)); } - - /// Returns the componentwise hyperbolic tangent of a float3 vector. - public static float3 tanh(float3 x) { return new float3(tanh(x.x), tanh(x.y), tanh(x.z)); } - - /// Returns the componentwise hyperbolic tangent of a float4 vector. - public static float4 tanh(float4 x) { return new float4(tanh(x.x), tanh(x.y), tanh(x.z), tanh(x.w)); } - - - /// Returns the hyperbolic tangent of a double value. - public static double tanh(double x) { return System.Math.Tanh(x); } - - /// Returns the componentwise hyperbolic tangent of a double2 vector. - public static double2 tanh(double2 x) { return new double2(tanh(x.x), tanh(x.y)); } - - /// Returns the componentwise hyperbolic tangent of a double3 vector. - public static double3 tanh(double3 x) { return new double3(tanh(x.x), tanh(x.y), tanh(x.z)); } - - /// Returns the componentwise hyperbolic tangent of a double4 vector. - public static double4 tanh(double4 x) { return new double4(tanh(x.x), tanh(x.y), tanh(x.z), tanh(x.w)); } - - - /// Returns the arctangent of a float value. - public static float atan(float x) { return (float)System.Math.Atan(x); } - - /// Returns the componentwise arctangent of a float2 vector. - public static float2 atan(float2 x) { return new float2(atan(x.x), atan(x.y)); } - - /// Returns the componentwise arctangent of a float3 vector. - public static float3 atan(float3 x) { return new float3(atan(x.x), atan(x.y), atan(x.z)); } - - /// Returns the componentwise arctangent of a float4 vector. - public static float4 atan(float4 x) { return new float4(atan(x.x), atan(x.y), atan(x.z), atan(x.w)); } - - - /// Returns the arctangent of a double value. - public static double atan(double x) { return System.Math.Atan(x); } - - /// Returns the componentwise arctangent of a double2 vector. - public static double2 atan(double2 x) { return new double2(atan(x.x), atan(x.y)); } - - /// Returns the componentwise arctangent of a double3 vector. - public static double3 atan(double3 x) { return new double3(atan(x.x), atan(x.y), atan(x.z)); } - - /// Returns the componentwise arctangent of a double4 vector. - public static double4 atan(double4 x) { return new double4(atan(x.x), atan(x.y), atan(x.z), atan(x.w)); } - - - /// Returns the 2-argument arctangent of a pair of float values. - public static float atan2(float y, float x) { return (float)System.Math.Atan2(y, x); } - - /// Returns the componentwise 2-argument arctangent of a pair of floats2 vectors. - public static float2 atan2(float2 y, float2 x) { return new float2(atan2(y.x, x.x), atan2(y.y, x.y)); } - - /// Returns the componentwise 2-argument arctangent of a pair of floats3 vectors. - public static float3 atan2(float3 y, float3 x) { return new float3(atan2(y.x, x.x), atan2(y.y, x.y), atan2(y.z, x.z)); } - - /// Returns the componentwise 2-argument arctangent of a pair of floats4 vectors. - public static float4 atan2(float4 y, float4 x) { return new float4(atan2(y.x, x.x), atan2(y.y, x.y), atan2(y.z, x.z), atan2(y.w, x.w)); } - - - /// Returns the 2-argument arctangent of a pair of double values. - public static double atan2(double y, double x) { return System.Math.Atan2(y, x); } - - /// Returns the 2-argument arctangent of a pair of double2 vectors. - public static double2 atan2(double2 y, double2 x) { return new double2(atan2(y.x, x.x), atan2(y.y, x.y)); } - - /// Returns the 2-argument arctangent of a pair of double3 vectors. - public static double3 atan2(double3 y, double3 x) { return new double3(atan2(y.x, x.x), atan2(y.y, x.y), atan2(y.z, x.z)); } - - /// Returns the 2-argument arctangent of a pair of double4 vectors. - public static double4 atan2(double4 y, double4 x) { return new double4(atan2(y.x, x.x), atan2(y.y, x.y), atan2(y.z, x.z), atan2(y.w, x.w)); } - - - /// Returns the cosine of a float value. - public static float cos(float x) { return (float)System.Math.Cos(x); } - - /// Returns the componentwise cosine of a float2 vector. - public static float2 cos(float2 x) { return new float2(cos(x.x), cos(x.y)); } - - /// Returns the componentwise cosine of a float3 vector. - public static float3 cos(float3 x) { return new float3(cos(x.x), cos(x.y), cos(x.z)); } - - /// Returns the componentwise cosine of a float4 vector. - public static float4 cos(float4 x) { return new float4(cos(x.x), cos(x.y), cos(x.z), cos(x.w)); } - - - /// Returns the cosine of a double value. - public static double cos(double x) { return System.Math.Cos(x); } - - /// Returns the componentwise cosine of a double2 vector. - public static double2 cos(double2 x) { return new double2(cos(x.x), cos(x.y)); } - - /// Returns the componentwise cosine of a double3 vector. - public static double3 cos(double3 x) { return new double3(cos(x.x), cos(x.y), cos(x.z)); } - - /// Returns the componentwise cosine of a double4 vector. - public static double4 cos(double4 x) { return new double4(cos(x.x), cos(x.y), cos(x.z), cos(x.w)); } - - - /// Returns the hyperbolic cosine of a float value. - public static float cosh(float x) { return (float)System.Math.Cosh(x); } - - /// Returns the componentwise hyperbolic cosine of a float2 vector. - public static float2 cosh(float2 x) { return new float2(cosh(x.x), cosh(x.y)); } - - /// Returns the componentwise hyperbolic cosine of a float3 vector. - public static float3 cosh(float3 x) { return new float3(cosh(x.x), cosh(x.y), cosh(x.z)); } - - /// Returns the componentwise hyperbolic cosine of a float4 vector. - public static float4 cosh(float4 x) { return new float4(cosh(x.x), cosh(x.y), cosh(x.z), cosh(x.w)); } - - - /// Returns the hyperbolic cosine of a double value. - public static double cosh(double x) { return System.Math.Cosh(x); } - - /// Returns the componentwise hyperbolic cosine of a double2 vector. - public static double2 cosh(double2 x) { return new double2(cosh(x.x), cosh(x.y)); } - - /// Returns the componentwise hyperbolic cosine of a double3 vector. - public static double3 cosh(double3 x) { return new double3(cosh(x.x), cosh(x.y), cosh(x.z)); } - - /// Returns the componentwise hyperbolic cosine of a double4 vector. - public static double4 cosh(double4 x) { return new double4(cosh(x.x), cosh(x.y), cosh(x.z), cosh(x.w)); } - - - /// Returns the arccosine of a float value. - public static float acos(float x) { return (float)System.Math.Acos((float)x); } - - /// Returns the componentwise arccosine of a float2 vector. - public static float2 acos(float2 x) { return new float2(acos(x.x), acos(x.y)); } - - /// Returns the componentwise arccosine of a float3 vector. - public static float3 acos(float3 x) { return new float3(acos(x.x), acos(x.y), acos(x.z)); } - - /// Returns the componentwise arccosine of a float4 vector. - public static float4 acos(float4 x) { return new float4(acos(x.x), acos(x.y), acos(x.z), acos(x.w)); } - - - /// Returns the arccosine of a double value. - public static double acos(double x) { return System.Math.Acos(x); } - - /// Returns the componentwise arccosine of a double2 vector. - public static double2 acos(double2 x) { return new double2(acos(x.x), acos(x.y)); } - - /// Returns the componentwise arccosine of a double3 vector. - public static double3 acos(double3 x) { return new double3(acos(x.x), acos(x.y), acos(x.z)); } - - /// Returns the componentwise arccosine of a double4 vector. - public static double4 acos(double4 x) { return new double4(acos(x.x), acos(x.y), acos(x.z), acos(x.w)); } - - - /// Returns the sine of a float value. - public static float sin(float x) { return (float)System.Math.Sin((float)x); } - - /// Returns the componentwise sine of a float2 vector. - public static float2 sin(float2 x) { return new float2(sin(x.x), sin(x.y)); } - - /// Returns the componentwise sine of a float3 vector. - public static float3 sin(float3 x) { return new float3(sin(x.x), sin(x.y), sin(x.z)); } - - /// Returns the componentwise sine of a float4 vector. - public static float4 sin(float4 x) { return new float4(sin(x.x), sin(x.y), sin(x.z), sin(x.w)); } - - - /// Returns the sine of a double value. - public static double sin(double x) { return System.Math.Sin(x); } - - /// Returns the componentwise sine of a double2 vector. - public static double2 sin(double2 x) { return new double2(sin(x.x), sin(x.y)); } - - /// Returns the componentwise sine of a double3 vector. - public static double3 sin(double3 x) { return new double3(sin(x.x), sin(x.y), sin(x.z)); } - - /// Returns the componentwise sine of a double4 vector. - public static double4 sin(double4 x) { return new double4(sin(x.x), sin(x.y), sin(x.z), sin(x.w)); } - - - /// Returns the hyperbolic sine of a float value. - public static float sinh(float x) { return (float)System.Math.Sinh((float)x); } - - /// Returns the componentwise hyperbolic sine of a float2 vector. - public static float2 sinh(float2 x) { return new float2(sinh(x.x), sinh(x.y)); } - - /// Returns the componentwise hyperbolic sine of a float3 vector. - public static float3 sinh(float3 x) { return new float3(sinh(x.x), sinh(x.y), sinh(x.z)); } - - /// Returns the componentwise hyperbolic sine of a float4 vector. - public static float4 sinh(float4 x) { return new float4(sinh(x.x), sinh(x.y), sinh(x.z), sinh(x.w)); } - - - /// Returns the hyperbolic sine of a double value. - public static double sinh(double x) { return System.Math.Sinh(x); } - - /// Returns the componentwise hyperbolic sine of a double2 vector. - public static double2 sinh(double2 x) { return new double2(sinh(x.x), sinh(x.y)); } - - /// Returns the componentwise hyperbolic sine of a double3 vector. - public static double3 sinh(double3 x) { return new double3(sinh(x.x), sinh(x.y), sinh(x.z)); } - - /// Returns the componentwise hyperbolic sine of a double4 vector. - public static double4 sinh(double4 x) { return new double4(sinh(x.x), sinh(x.y), sinh(x.z), sinh(x.w)); } - - - /// Returns the arcsine of a float value. - public static float asin(float x) { return (float)System.Math.Asin((float)x); } - - /// Returns the componentwise arcsine of a float2 vector. - public static float2 asin(float2 x) { return new float2(asin(x.x), asin(x.y)); } - - /// Returns the componentwise arcsine of a float3 vector. - public static float3 asin(float3 x) { return new float3(asin(x.x), asin(x.y), asin(x.z)); } - - /// Returns the componentwise arcsine of a float4 vector. - public static float4 asin(float4 x) { return new float4(asin(x.x), asin(x.y), asin(x.z), asin(x.w)); } - - - /// Returns the arcsine of a double value. - public static double asin(double x) { return System.Math.Asin(x); } - - /// Returns the componentwise arcsine of a double2 vector. - public static double2 asin(double2 x) { return new double2(asin(x.x), asin(x.y)); } - - /// Returns the componentwise arcsine of a double3 vector. - public static double3 asin(double3 x) { return new double3(asin(x.x), asin(x.y), asin(x.z)); } - - /// Returns the componentwise arcsine of a double4 vector. - public static double4 asin(double4 x) { return new double4(asin(x.x), asin(x.y), asin(x.z), asin(x.w)); } - - - /// Returns the result of rounding a float value up to the nearest integral value less or equal to the original value. - public static float floor(float x) { return (float)System.Math.Floor((float)x); } - - /// Returns the result of rounding each component of a float2 vector value down to the nearest value less or equal to the original value. - public static float2 floor(float2 x) { return new float2(floor(x.x), floor(x.y)); } - - /// Returns the result of rounding each component of a float3 vector value down to the nearest value less or equal to the original value. - public static float3 floor(float3 x) { return new float3(floor(x.x), floor(x.y), floor(x.z)); } - - /// Returns the result of rounding each component of a float4 vector value down to the nearest value less or equal to the original value. - public static float4 floor(float4 x) { return new float4(floor(x.x), floor(x.y), floor(x.z), floor(x.w)); } - - - /// Returns the result of rounding a double value up to the nearest integral value less or equal to the original value. - public static double floor(double x) { return System.Math.Floor(x); } - - /// Returns the result of rounding each component of a double2 vector value down to the nearest value less or equal to the original value. - public static double2 floor(double2 x) { return new double2(floor(x.x), floor(x.y)); } - - /// Returns the result of rounding each component of a double3 vector value down to the nearest value less or equal to the original value. - public static double3 floor(double3 x) { return new double3(floor(x.x), floor(x.y), floor(x.z)); } - - /// Returns the result of rounding each component of a double4 vector value down to the nearest value less or equal to the original value. - public static double4 floor(double4 x) { return new double4(floor(x.x), floor(x.y), floor(x.z), floor(x.w)); } - - - /// Returns the result of rounding a float value up to the nearest integral value greater or equal to the original value. - public static float ceil(float x) { return (float)System.Math.Ceiling((float)x); } - - /// Returns the result of rounding each component of a float2 vector value up to the nearest value greater or equal to the original value. - public static float2 ceil(float2 x) { return new float2(ceil(x.x), ceil(x.y)); } - - /// Returns the result of rounding each component of a float3 vector value up to the nearest value greater or equal to the original value. - public static float3 ceil(float3 x) { return new float3(ceil(x.x), ceil(x.y), ceil(x.z)); } - - /// Returns the result of rounding each component of a float4 vector value up to the nearest value greater or equal to the original value. - public static float4 ceil(float4 x) { return new float4(ceil(x.x), ceil(x.y), ceil(x.z), ceil(x.w)); } - - - /// Returns the result of rounding a double value up to the nearest greater integral value greater or equal to the original value. - public static double ceil(double x) { return System.Math.Ceiling(x); } - - /// Returns the result of rounding each component of a double2 vector value up to the nearest integral value greater or equal to the original value. - public static double2 ceil(double2 x) { return new double2(ceil(x.x), ceil(x.y)); } - - /// Returns the result of rounding each component of a double3 vector value up to the nearest integral value greater or equal to the original value.. - public static double3 ceil(double3 x) { return new double3(ceil(x.x), ceil(x.y), ceil(x.z)); } - - /// Returns the result of rounding each component of a double4 vector value up to the nearest integral value greater or equal to the original value. - public static double4 ceil(double4 x) { return new double4(ceil(x.x), ceil(x.y), ceil(x.z), ceil(x.w)); } - - - /// Returns the result of rounding a float value to the nearest integral value. - public static float round(float x) { return (float)System.Math.Round((float)x); } - - /// Returns the result of rounding each component of a float2 vector value to the nearest integral value. - public static float2 round(float2 x) { return new float2(round(x.x), round(x.y)); } - - /// Returns the result of rounding each component of a float3 vector value to the nearest integral value. - public static float3 round(float3 x) { return new float3(round(x.x), round(x.y), round(x.z)); } - - /// Returns the result of rounding each component of a float4 vector value to the nearest integral value. - public static float4 round(float4 x) { return new float4(round(x.x), round(x.y), round(x.z), round(x.w)); } - - - /// Returns the result of rounding a double value to the nearest integral value. - public static double round(double x) { return System.Math.Round(x); } - - /// Returns the result of rounding each component of a double2 vector value to the nearest integral value. - public static double2 round(double2 x) { return new double2(round(x.x), round(x.y)); } - - /// Returns the result of rounding each component of a double3 vector value to the nearest integral value. - public static double3 round(double3 x) { return new double3(round(x.x), round(x.y), round(x.z)); } - - /// Returns the result of rounding each component of a double4 vector value to the nearest integral value. - public static double4 round(double4 x) { return new double4(round(x.x), round(x.y), round(x.z), round(x.w)); } - - - /// Returns the result of truncating a float value to an integral float value. - public static float trunc(float x) { return (float)System.Math.Truncate((float)x); } - - /// Returns the result of a componentwise truncation of a float2 value to an integral float2 value. - public static float2 trunc(float2 x) { return new float2(trunc(x.x), trunc(x.y)); } - - /// Returns the result of a componentwise truncation of a float3 value to an integral float3 value. - public static float3 trunc(float3 x) { return new float3(trunc(x.x), trunc(x.y), trunc(x.z)); } - - /// Returns the result of a componentwise truncation of a float4 value to an integral float4 value. - public static float4 trunc(float4 x) { return new float4(trunc(x.x), trunc(x.y), trunc(x.z), trunc(x.w)); } - - - /// Returns the result of truncating a double value to an integral double value. - public static double trunc(double x) { return System.Math.Truncate(x); } - - /// Returns the result of a componentwise truncation of a double2 value to an integral double2 value. - public static double2 trunc(double2 x) { return new double2(trunc(x.x), trunc(x.y)); } - - /// Returns the result of a componentwise truncation of a double3 value to an integral double3 value. - public static double3 trunc(double3 x) { return new double3(trunc(x.x), trunc(x.y), trunc(x.z)); } - - /// Returns the result of a componentwise truncation of a double4 value to an integral double4 value. - public static double4 trunc(double4 x) { return new double4(trunc(x.x), trunc(x.y), trunc(x.z), trunc(x.w)); } - - - /// Returns the fractional part of a float value. - public static float frac(float x) { return x - floor(x); } - - /// Returns the componentwise fractional parts of a float2 vector. - public static float2 frac(float2 x) { return x - floor(x); } - - /// Returns the componentwise fractional parts of a float3 vector. - public static float3 frac(float3 x) { return x - floor(x); } - - /// Returns the componentwise fractional parts of a float4 vector. - public static float4 frac(float4 x) { return x - floor(x); } - - - /// Returns the fractional part of a double value. - public static double frac(double x) { return x - floor(x); } - - /// Returns the componentwise fractional parts of a double2 vector. - public static double2 frac(double2 x) { return x - floor(x); } - - /// Returns the componentwise fractional parts of a double3 vector. - public static double3 frac(double3 x) { return x - floor(x); } - - /// Returns the componentwise fractional parts of a double4 vector. - public static double4 frac(double4 x) { return x - floor(x); } - - - /// Returns the reciprocal a float value. - public static float rcp(float x) { return 1.0f / x; } - - /// Returns the componentwise reciprocal a float2 vector. - public static float2 rcp(float2 x) { return 1.0f / x; } - - /// Returns the componentwise reciprocal a float3 vector. - public static float3 rcp(float3 x) { return 1.0f / x; } - - /// Returns the componentwise reciprocal a float4 vector. - public static float4 rcp(float4 x) { return 1.0f / x; } - - - /// Returns the reciprocal a double value. - public static double rcp(double x) { return 1.0 / x; } - - /// Returns the componentwise reciprocal a double2 vector. - public static double2 rcp(double2 x) { return 1.0 / x; } - - /// Returns the componentwise reciprocal a double3 vector. - public static double3 rcp(double3 x) { return 1.0 / x; } - - /// Returns the componentwise reciprocal a double4 vector. - public static double4 rcp(double4 x) { return 1.0 / x; } - - - /// Returns the sign of a float value. -1.0f if it is less than zero, 0.0f if it is zero and 1.0f if it greater than zero. - public static float sign(float x) { return (x > 0.0f ? 1.0f : 0.0f) - (x < 0.0f ? 1.0f : 0.0f); } - - /// Returns the componentwise sign of a float2 value. 1.0f for positive components, 0.0f for zero components and -1.0f for negative components. - public static float2 sign(float2 x) { return new float2(sign(x.x), sign(x.y)); } - - /// Returns the componentwise sign of a float3 value. 1.0f for positive components, 0.0f for zero components and -1.0f for negative components. - public static float3 sign(float3 x) { return new float3(sign(x.x), sign(x.y), sign(x.z)); } - - /// Returns the componentwise sign of a float4 value. 1.0f for positive components, 0.0f for zero components and -1.0f for negative components. - public static float4 sign(float4 x) { return new float4(sign(x.x), sign(x.y), sign(x.z), sign(x.w)); } - - - /// Returns the sign of a double value. -1.0 if it is less than zero, 0.0 if it is zero and 1.0 if it greater than zero. - public static double sign(double x) { return x == 0 ? 0 : (x > 0.0 ? 1.0 : 0.0) - (x < 0.0 ? 1.0 : 0.0); } - - /// Returns the componentwise sign of a double2 value. 1.0 for positive components, 0.0 for zero components and -1.0 for negative components. - public static double2 sign(double2 x) { return new double2(sign(x.x), sign(x.y)); } - - /// Returns the componentwise sign of a double3 value. 1.0 for positive components, 0.0 for zero components and -1.0 for negative components. - public static double3 sign(double3 x) { return new double3(sign(x.x), sign(x.y), sign(x.z)); } - - /// Returns the componentwise sign of a double4 value. 1.0 for positive components, 0.0 for zero components and -1.0 for negative components. - public static double4 sign(double4 x) { return new double4(sign(x.x), sign(x.y), sign(x.z), sign(x.w)); } - - - /// Returns x raised to the power y. - public static float pow(float x, float y) { return (float)System.Math.Pow((float)x, (float)y); } - - /// Returns the componentwise result of raising x to the power y. - public static float2 pow(float2 x, float2 y) { return new float2(pow(x.x, y.x), pow(x.y, y.y)); } - - /// Returns the componentwise result of raising x to the power y. - public static float3 pow(float3 x, float3 y) { return new float3(pow(x.x, y.x), pow(x.y, y.y), pow(x.z, y.z)); } - - /// Returns the componentwise result of raising x to the power y. - public static float4 pow(float4 x, float4 y) { return new float4(pow(x.x, y.x), pow(x.y, y.y), pow(x.z, y.z), pow(x.w, y.w)); } - - - /// Returns x raised to the power y. - public static double pow(double x, double y) { return System.Math.Pow(x, y); } - - /// Returns the componentwise result of raising x to the power y. - public static double2 pow(double2 x, double2 y) { return new double2(pow(x.x, y.x), pow(x.y, y.y)); } - - /// Returns the componentwise result of raising x to the power y. - public static double3 pow(double3 x, double3 y) { return new double3(pow(x.x, y.x), pow(x.y, y.y), pow(x.z, y.z)); } - - /// Returns the componentwise result of raising x to the power y. - public static double4 pow(double4 x, double4 y) { return new double4(pow(x.x, y.x), pow(x.y, y.y), pow(x.z, y.z), pow(x.w, y.w)); } - - - /// Returns the base-e exponential of x. - public static float exp(float x) { return (float)System.Math.Exp((float)x); } - - /// Returns the componentwise base-e exponential of x. - public static float2 exp(float2 x) { return new float2(exp(x.x), exp(x.y)); } - - /// Returns the componentwise base-e exponential of x. - public static float3 exp(float3 x) { return new float3(exp(x.x), exp(x.y), exp(x.z)); } - - /// Returns the componentwise base-e exponential of x. - public static float4 exp(float4 x) { return new float4(exp(x.x), exp(x.y), exp(x.z), exp(x.w)); } - - - /// Returns the base-e exponential of x. - public static double exp(double x) { return System.Math.Exp(x); } - - /// Returns the componentwise base-e exponential of x. - public static double2 exp(double2 x) { return new double2(exp(x.x), exp(x.y)); } - - /// Returns the componentwise base-e exponential of x. - public static double3 exp(double3 x) { return new double3(exp(x.x), exp(x.y), exp(x.z)); } - - /// Returns the componentwise base-e exponential of x. - public static double4 exp(double4 x) { return new double4(exp(x.x), exp(x.y), exp(x.z), exp(x.w)); } - - - /// Returns the base-2 exponential of x. - public static float exp2(float x) { return (float)System.Math.Exp((float)x * 0.69314718f); } - - /// Returns the componentwise base-2 exponential of x. - public static float2 exp2(float2 x) { return new float2(exp2(x.x), exp2(x.y)); } - - /// Returns the componentwise base-2 exponential of x. - public static float3 exp2(float3 x) { return new float3(exp2(x.x), exp2(x.y), exp2(x.z)); } - - /// Returns the componentwise base-2 exponential of x. - public static float4 exp2(float4 x) { return new float4(exp2(x.x), exp2(x.y), exp2(x.z), exp2(x.w)); } - - - /// Returns the base-2 exponential of x. - public static double exp2(double x) { return System.Math.Exp(x * 0.693147180559945309); } - - /// Returns the componentwise base-2 exponential of x. - public static double2 exp2(double2 x) { return new double2(exp2(x.x), exp2(x.y)); } - - /// Returns the componentwise base-2 exponential of x. - public static double3 exp2(double3 x) { return new double3(exp2(x.x), exp2(x.y), exp2(x.z)); } - - /// Returns the componentwise base-2 exponential of x. - public static double4 exp2(double4 x) { return new double4(exp2(x.x), exp2(x.y), exp2(x.z), exp2(x.w)); } - - - /// Returns the base-10 exponential of x. - public static float exp10(float x) { return (float)System.Math.Exp((float)x * 2.30258509f); } - - /// Returns the componentwise base-10 exponential of x. - public static float2 exp10(float2 x) { return new float2(exp10(x.x), exp10(x.y)); } - - /// Returns the componentwise base-10 exponential of x. - public static float3 exp10(float3 x) { return new float3(exp10(x.x), exp10(x.y), exp10(x.z)); } - - /// Returns the componentwise base-10 exponential of x. - public static float4 exp10(float4 x) { return new float4(exp10(x.x), exp10(x.y), exp10(x.z), exp10(x.w)); } - - - /// Returns the base-10 exponential of x. - public static double exp10(double x) { return System.Math.Exp(x * 2.302585092994045684); } - - /// Returns the componentwise base-10 exponential of x. - public static double2 exp10(double2 x) { return new double2(exp10(x.x), exp10(x.y)); } - - /// Returns the componentwise base-10 exponential of x. - public static double3 exp10(double3 x) { return new double3(exp10(x.x), exp10(x.y), exp10(x.z)); } - - /// Returns the componentwise base-10 exponential of x. - public static double4 exp10(double4 x) { return new double4(exp10(x.x), exp10(x.y), exp10(x.z), exp10(x.w)); } - - - /// Returns the natural logarithm of a float value. - public static float log(float x) { return (float)System.Math.Log((float)x); } - - /// Returns the componentwise natural logarithm of a float2 vector. - public static float2 log(float2 x) { return new float2(log(x.x), log(x.y)); } - - /// Returns the componentwise natural logarithm of a float3 vector. - public static float3 log(float3 x) { return new float3(log(x.x), log(x.y), log(x.z)); } - - /// Returns the componentwise natural logarithm of a float4 vector. - public static float4 log(float4 x) { return new float4(log(x.x), log(x.y), log(x.z), log(x.w)); } - - - /// Returns the natural logarithm of a double value. - public static double log(double x) { return System.Math.Log(x); } - - /// Returns the componentwise natural logarithm of a double2 vector. - public static double2 log(double2 x) { return new double2(log(x.x), log(x.y)); } - - /// Returns the componentwise natural logarithm of a double3 vector. - public static double3 log(double3 x) { return new double3(log(x.x), log(x.y), log(x.z)); } - - /// Returns the componentwise natural logarithm of a double4 vector. - public static double4 log(double4 x) { return new double4(log(x.x), log(x.y), log(x.z), log(x.w)); } - - - /// Returns the base-2 logarithm of a float value. - public static float log2(float x) { return (float)System.Math.Log((float)x, 2.0f); } - - /// Returns the componentwise base-2 logarithm of a float2 vector. - public static float2 log2(float2 x) { return new float2(log2(x.x), log2(x.y)); } - - /// Returns the componentwise base-2 logarithm of a float3 vector. - public static float3 log2(float3 x) { return new float3(log2(x.x), log2(x.y), log2(x.z)); } - - /// Returns the componentwise base-2 logarithm of a float4 vector. - public static float4 log2(float4 x) { return new float4(log2(x.x), log2(x.y), log2(x.z), log2(x.w)); } - - - /// Returns the base-2 logarithm of a double value. - public static double log2(double x) { return System.Math.Log(x, 2.0); } - - /// Returns the componentwise base-2 logarithm of a double2 vector. - public static double2 log2(double2 x) { return new double2(log2(x.x), log2(x.y)); } - - /// Returns the componentwise base-2 logarithm of a double3 vector. - public static double3 log2(double3 x) { return new double3(log2(x.x), log2(x.y), log2(x.z)); } - - /// Returns the componentwise base-2 logarithm of a double4 vector. - public static double4 log2(double4 x) { return new double4(log2(x.x), log2(x.y), log2(x.z), log2(x.w)); } - - - /// Returns the base-10 logarithm of a float value. - public static float log10(float x) { return (float)System.Math.Log10((float)x); } - - /// Returns the componentwise base-10 logarithm of a float2 vector. - public static float2 log10(float2 x) { return new float2(log10(x.x), log10(x.y)); } - - /// Returns the componentwise base-10 logarithm of a float3 vector. - public static float3 log10(float3 x) { return new float3(log10(x.x), log10(x.y), log10(x.z)); } - - /// Returns the componentwise base-10 logarithm of a float4 vector. - public static float4 log10(float4 x) { return new float4(log10(x.x), log10(x.y), log10(x.z), log10(x.w)); } - - - /// Returns the base-10 logarithm of a double value. - public static double log10(double x) { return System.Math.Log10(x); } - - /// Returns the componentwise base-10 logarithm of a double2 vector. - public static double2 log10(double2 x) { return new double2(log10(x.x), log10(x.y)); } - - /// Returns the componentwise base-10 logarithm of a double3 vector. - public static double3 log10(double3 x) { return new double3(log10(x.x), log10(x.y), log10(x.z)); } - - /// Returns the componentwise base-10 logarithm of a double4 vector. - public static double4 log10(double4 x) { return new double4(log10(x.x), log10(x.y), log10(x.z), log10(x.w)); } - - - /// Returns the floating point remainder of x/y. - public static float fmod(float x, float y) { return x % y; } - - /// Returns the componentwise floating point remainder of x/y. - public static float2 fmod(float2 x, float2 y) { return new float2(x.x % y.x, x.y % y.y); } - - /// Returns the componentwise floating point remainder of x/y. - public static float3 fmod(float3 x, float3 y) { return new float3(x.x % y.x, x.y % y.y, x.z % y.z); } - - /// Returns the componentwise floating point remainder of x/y. - public static float4 fmod(float4 x, float4 y) { return new float4(x.x % y.x, x.y % y.y, x.z % y.z, x.w % y.w); } - - - /// Returns the double precision floating point remainder of x/y. - public static double fmod(double x, double y) { return x % y; } - - /// Returns the componentwise double precision floating point remainder of x/y. - public static double2 fmod(double2 x, double2 y) { return new double2(x.x % y.x, x.y % y.y); } - - /// Returns the componentwise double precision floating point remainder of x/y. - public static double3 fmod(double3 x, double3 y) { return new double3(x.x % y.x, x.y % y.y, x.z % y.z); } - - /// Returns the componentwise double precision floating point remainder of x/y. - public static double4 fmod(double4 x, double4 y) { return new double4(x.x % y.x, x.y % y.y, x.z % y.z, x.w % y.w); } - - - /// Splits a float value into an integral part i and a fractional part that gets returned. Both parts take the sign of the input. - public static float modf(float x, out float i) { i = trunc(x); return x - i; } - - /// - // Performs a componentwise split of a float2 vector into an integral part i and a fractional part that gets returned. - // Both parts take the sign of the corresponding input component. - // - public static float2 modf(float2 x, out float2 i) { i = trunc(x); return x - i; } - - /// - // Performs a componentwise split of a float3 vector into an integral part i and a fractional part that gets returned. - // Both parts take the sign of the corresponding input component. - // - public static float3 modf(float3 x, out float3 i) { i = trunc(x); return x - i; } - - /// - // Performs a componentwise split of a float4 vector into an integral part i and a fractional part that gets returned. - // Both parts take the sign of the corresponding input component. - // - public static float4 modf(float4 x, out float4 i) { i = trunc(x); return x - i; } - - - /// Splits a double value into an integral part i and a fractional part that gets returned. Both parts take the sign of the input. - public static double modf(double x, out double i) { i = trunc(x); return x - i; } - - /// - // Performs a componentwise split of a double2 vector into an integral part i and a fractional part that gets returned. - // Both parts take the sign of the corresponding input component. - // - public static double2 modf(double2 x, out double2 i) { i = trunc(x); return x - i; } - - /// - // Performs a componentwise split of a double3 vector into an integral part i and a fractional part that gets returned. - // Both parts take the sign of the corresponding input component. - // - public static double3 modf(double3 x, out double3 i) { i = trunc(x); return x - i; } - - /// - // Performs a componentwise split of a double4 vector into an integral part i and a fractional part that gets returned. - // Both parts take the sign of the corresponding input component. - // - public static double4 modf(double4 x, out double4 i) { i = trunc(x); return x - i; } - - - /// Returns the square root of a float value. - public static float sqrt(float x) { return (float)System.Math.Sqrt((float)x); } - - /// Returns the componentwise square root of a float2 vector. - public static float2 sqrt(float2 x) { return new float2(sqrt(x.x), sqrt(x.y)); } - - /// Returns the componentwise square root of a float3 vector. - public static float3 sqrt(float3 x) { return new float3(sqrt(x.x), sqrt(x.y), sqrt(x.z)); } - - /// Returns the componentwise square root of a float4 vector. - public static float4 sqrt(float4 x) { return new float4(sqrt(x.x), sqrt(x.y), sqrt(x.z), sqrt(x.w)); } - - - /// Returns the square root of a double value. - public static double sqrt(double x) { return System.Math.Sqrt(x); } - - /// Returns the componentwise square root of a double2 vector. - public static double2 sqrt(double2 x) { return new double2(sqrt(x.x), sqrt(x.y)); } - - /// Returns the componentwise square root of a double3 vector. - public static double3 sqrt(double3 x) { return new double3(sqrt(x.x), sqrt(x.y), sqrt(x.z)); } - - /// Returns the componentwise square root of a double4 vector. - public static double4 sqrt(double4 x) { return new double4(sqrt(x.x), sqrt(x.y), sqrt(x.z), sqrt(x.w)); } - - - /// Returns the reciprocal square root of a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float rsqrt(float x) { return 1.0f / sqrt(x); } - - /// Returns the componentwise reciprocal square root of a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 rsqrt(float2 x) { return 1.0f / sqrt(x); } - - /// Returns the componentwise reciprocal square root of a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 rsqrt(float3 x) { return 1.0f / sqrt(x); } - - /// Returns the componentwise reciprocal square root of a float4 vector - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 rsqrt(float4 x) { return 1.0f / sqrt(x); } - - - /// Returns the reciprocal square root of a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double rsqrt(double x) { return 1.0 / sqrt(x); } - - /// Returns the componentwise reciprocal square root of a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 rsqrt(double2 x) { return 1.0 / sqrt(x); } - - /// Returns the componentwise reciprocal square root of a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 rsqrt(double3 x) { return 1.0 / sqrt(x); } - - /// Returns the componentwise reciprocal square root of a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 rsqrt(double4 x) { return 1.0 / sqrt(x); } - - - /// Returns a normalized version of the float2 vector x by scaling it by 1 / length(x). - public static float2 normalize(float2 x) { return rsqrt(dot(x, x)) * x; } - - /// Returns a normalized version of the float3 vector x by scaling it by 1 / length(x). - public static float3 normalize(float3 x) { return rsqrt(dot(x, x)) * x; } - - /// Returns a normalized version of the float4 vector x by scaling it by 1 / length(x). - public static float4 normalize(float4 x) { return rsqrt(dot(x, x)) * x; } - - - /// Returns a normalized version of the double2 vector x by scaling it by 1 / length(x). - public static double2 normalize(double2 x) { return rsqrt(dot(x, x)) * x; } - - /// Returns a normalized version of the double3 vector x by scaling it by 1 / length(x). - public static double3 normalize(double3 x) { return rsqrt(dot(x, x)) * x; } - - /// Returns a normalized version of the double4 vector x by scaling it by 1 / length(x). - public static double4 normalize(double4 x) { return rsqrt(dot(x, x)) * x; } - - - /// - /// Returns a safe normalized version of the float2 vector x by scaling it by 1 / length(x). - /// Returns the given default value when 1 / length(x) does not produce a finite number. - /// - static public float2 normalizesafe(float2 x, float2 defaultvalue = new float2()) - { - float len = math.dot(x, x); - return math.select(defaultvalue, x * math.rsqrt(len), len > FLT_MIN_NORMAL); - } - - /// - /// Returns a safe normalized version of the float3 vector x by scaling it by 1 / length(x). - /// Returns the given default value when 1 / length(x) does not produce a finite number. - /// - static public float3 normalizesafe(float3 x, float3 defaultvalue = new float3()) - { - float len = math.dot(x, x); - return math.select(defaultvalue, x * math.rsqrt(len), len > FLT_MIN_NORMAL); - } - - /// - /// Returns a safe normalized version of the float4 vector x by scaling it by 1 / length(x). - /// Returns the given default value when 1 / length(x) does not produce a finite number. - /// - static public float4 normalizesafe(float4 x, float4 defaultvalue = new float4()) - { - float len = math.dot(x, x); - return math.select(defaultvalue, x * math.rsqrt(len), len > FLT_MIN_NORMAL); - } - - - /// - /// Returns a safe normalized version of the double4 vector x by scaling it by 1 / length(x). - /// Returns the given default value when 1 / length(x) does not produce a finite number. - /// - static public double2 normalizesafe(double2 x, double2 defaultvalue = new double2()) - { - double len = math.dot(x, x); - return math.select(defaultvalue, x * math.rsqrt(len), len > FLT_MIN_NORMAL); - } - - /// - /// Returns a safe normalized version of the double4 vector x by scaling it by 1 / length(x). - /// Returns the given default value when 1 / length(x) does not produce a finite number. - /// - static public double3 normalizesafe(double3 x, double3 defaultvalue = new double3()) - { - double len = math.dot(x, x); - return math.select(defaultvalue, x * math.rsqrt(len), len > FLT_MIN_NORMAL); - } - - /// - /// Returns a safe normalized version of the double4 vector x by scaling it by 1 / length(x). - /// Returns the given default value when 1 / length(x) does not produce a finite number. - /// - static public double4 normalizesafe(double4 x, double4 defaultvalue = new double4()) - { - double len = math.dot(x, x); - return math.select(defaultvalue, x * math.rsqrt(len), len > FLT_MIN_NORMAL); - } - - - /// Returns the length of a float value. Equivalent to the absolute value. - public static float length(float x) { return abs(x); } - - /// Returns the length of a float2 vector. - public static float length(float2 x) { return sqrt(dot(x, x)); } - - /// Returns the length of a float3 vector. - public static float length(float3 x) { return sqrt(dot(x, x)); } - - /// Returns the length of a float4 vector. - public static float length(float4 x) { return sqrt(dot(x, x)); } - - - /// Returns the length of a double value. Equivalent to the absolute value. - public static double length(double x) { return abs(x); } - - /// Returns the length of a double2 vector. - public static double length(double2 x) { return sqrt(dot(x, x)); } - - /// Returns the length of a double3 vector. - public static double length(double3 x) { return sqrt(dot(x, x)); } - - /// Returns the length of a double4 vector. - public static double length(double4 x) { return sqrt(dot(x, x)); } - - - /// Returns the squared length of a float value. Equivalent to squaring the value. - public static float lengthsq(float x) { return x*x; } - - /// Returns the squared length of a float2 vector. - public static float lengthsq(float2 x) { return dot(x, x); } - - /// Returns the squared length of a float3 vector. - public static float lengthsq(float3 x) { return dot(x, x); } - - /// Returns the squared length of a float4 vector. - public static float lengthsq(float4 x) { return dot(x, x); } - - - /// Returns the squared length of a double value. Equivalent to squaring the value. - public static double lengthsq(double x) { return x * x; } - - /// Returns the squared length of a double2 vector. - public static double lengthsq(double2 x) { return dot(x, x); } - - /// Returns the squared length of a double3 vector. - public static double lengthsq(double3 x) { return dot(x, x); } - - /// Returns the squared length of a double4 vector. - public static double lengthsq(double4 x) { return dot(x, x); } - - - /// Returns the distance between two float values. - public static float distance(float x, float y) { return abs(y - x); } - - /// Returns the distance between two float2 vectors. - public static float distance(float2 x, float2 y) { return length(y - x); } - - /// Returns the distance between two float3 vectors. - public static float distance(float3 x, float3 y) { return length(y - x); } - - /// Returns the distance between two float4 vectors. - public static float distance(float4 x, float4 y) { return length(y - x); } - - - /// Returns the distance between two double values. - public static double distance(double x, double y) { return abs(y - x); } - - /// Returns the distance between two double2 vectors. - public static double distance(double2 x, double2 y) { return length(y - x); } - - /// Returns the distance between two double3 vectors. - public static double distance(double3 x, double3 y) { return length(y - x); } - - /// Returns the distance between two double4 vectors. - public static double distance(double4 x, double4 y) { return length(y - x); } - - - /// Returns the distance between two float values. - public static float distancesq(float x, float y) { return (y - x) * (y - x); } - - /// Returns the distance between two float2 vectors. - public static float distancesq(float2 x, float2 y) { return lengthsq(y - x); } - - /// Returns the distance between two float3 vectors. - public static float distancesq(float3 x, float3 y) { return lengthsq(y - x); } - - /// Returns the distance between two float4 vectors. - public static float distancesq(float4 x, float4 y) { return lengthsq(y - x); } - - - /// Returns the distance between two double values. - public static double distancesq(double x, double y) { return (y - x) * (y - x); } - - /// Returns the distance between two double2 vectors. - public static double distancesq(double2 x, double2 y) { return lengthsq(y - x); } - - /// Returns the distance between two double3 vectors. - public static double distancesq(double3 x, double3 y) { return lengthsq(y - x); } - - /// Returns the distance between two double4 vectors. - public static double distancesq(double4 x, double4 y) { return lengthsq(y - x); } - - - /// Returns the cross product of two float3 vectors. - public static float3 cross(float3 x, float3 y) { return (x * y.yzx - x.yzx * y).yzx; } - - /// Returns the cross product of two double3 vectors. - public static double3 cross(double3 x, double3 y) { return (x * y.yzx - x.yzx * y).yzx; } - - - /// Returns a smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b]. - public static float smoothstep(float a, float b, float x) - { - var t = saturate((x - a) / (b - a)); - return t * t * (3.0f - (2.0f * t)); - } - - /// Returns a componentwise smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b]. - public static float2 smoothstep(float2 a, float2 b, float2 x) - { - var t = saturate((x - a) / (b - a)); - return t * t * (3.0f - (2.0f * t)); - } - - /// Returns a componentwise smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b]. - public static float3 smoothstep(float3 a, float3 b, float3 x) - { - var t = saturate((x - a) / (b - a)); - return t * t * (3.0f - (2.0f * t)); - } - - /// Returns a componentwise smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b]. - public static float4 smoothstep(float4 a, float4 b, float4 x) - { - var t = saturate((x - a) / (b - a)); - return t * t * (3.0f - (2.0f * t)); - } - - - /// Returns a smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b]. - public static double smoothstep(double a, double b, double x) - { - var t = saturate((x - a) / (b - a)); - return t * t * (3.0 - (2.0 * t)); - } - - /// Returns a componentwise smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b]. - public static double2 smoothstep(double2 a, double2 b, double2 x) - { - var t = saturate((x - a) / (b - a)); - return t * t * (3.0 - (2.0 * t)); - } - - /// Returns a componentwise smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b]. - public static double3 smoothstep(double3 a, double3 b, double3 x) - { - var t = saturate((x - a) / (b - a)); - return t * t * (3.0 - (2.0 * t)); - } - - /// Returns a componentwise smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b]. - public static double4 smoothstep(double4 a, double4 b, double4 x) - { - var t = saturate((x - a) / (b - a)); - return t * t * (3.0 - (2.0 * t)); - } - - - /// Returns true if any component of the input bool2 vector is true, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool any(bool2 x) { return x.x || x.y; } - - /// Returns true if any component of the input bool3 vector is true, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool any(bool3 x) { return x.x || x.y || x.z; } - - /// Returns true if any components of the input bool4 vector is true, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool any(bool4 x) { return x.x || x.y || x.z || x.w; } - - - /// Returns true if any component of the input int2 vector is non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool any(int2 x) { return x.x != 0 || x.y != 0; } - - /// Returns true if any component of the input int3 vector is non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool any(int3 x) { return x.x != 0 || x.y != 0 || x.z != 0; } - - /// Returns true if any components of the input int4 vector is non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool any(int4 x) { return x.x != 0 || x.y != 0 || x.z != 0 || x.w != 0; } - - - /// Returns true if any component of the input uint2 vector is non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool any(uint2 x) { return x.x != 0 || x.y != 0; } - - /// Returns true if any component of the input uint3 vector is non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool any(uint3 x) { return x.x != 0 || x.y != 0 || x.z != 0; } - - /// Returns true if any components of the input uint4 vector is non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool any(uint4 x) { return x.x != 0 || x.y != 0 || x.z != 0 || x.w != 0; } - - - /// Returns true if any component of the input float2 vector is non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool any(float2 x) { return x.x != 0.0f || x.y != 0.0f; } - - /// Returns true if any component of the input float3 vector is non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool any(float3 x) { return x.x != 0.0f || x.y != 0.0f || x.z != 0.0f; } - - /// Returns true if any component of the input float4 vector is non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool any(float4 x) { return x.x != 0.0f || x.y != 0.0f || x.z != 0.0f || x.w != 0.0f; } - - - /// Returns true if any component of the input double2 vector is non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool any(double2 x) { return x.x != 0.0 || x.y != 0.0; } - - /// Returns true if any component of the input double3 vector is non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool any(double3 x) { return x.x != 0.0 || x.y != 0.0 || x.z != 0.0; } - - /// Returns true if any component of the input double4 vector is non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool any(double4 x) { return x.x != 0.0 || x.y != 0.0 || x.z != 0.0 || x.w != 0.0; } - - - /// Returns true if all components of the input bool2 vector are true, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool all(bool2 x) { return x.x && x.y; } - - /// Returns true if all components of the input bool3 vector are true, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool all(bool3 x) { return x.x && x.y && x.z; } - - /// Returns true if all components of the input bool4 vector are true, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool all(bool4 x) { return x.x && x.y && x.z && x.w; } - - - /// Returns true if all components of the input int2 vector are non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool all(int2 x) { return x.x != 0 && x.y != 0; } - - /// Returns true if all components of the input int3 vector are non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool all(int3 x) { return x.x != 0 && x.y != 0 && x.z != 0; } - - /// Returns true if all components of the input int4 vector are non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool all(int4 x) { return x.x != 0 && x.y != 0 && x.z != 0 && x.w != 0; } - - - /// Returns true if all components of the input uint2 vector are non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool all(uint2 x) { return x.x != 0 && x.y != 0; } - - /// Returns true if all components of the input uint3 vector are non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool all(uint3 x) { return x.x != 0 && x.y != 0 && x.z != 0; } - - /// Returns true if all components of the input uint4 vector are non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool all(uint4 x) { return x.x != 0 && x.y != 0 && x.z != 0 && x.w != 0; } - - - /// Returns true if all components of the input float2 vector are non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool all(float2 x) { return x.x != 0.0f && x.y != 0.0f; } - - /// Returns true if all components of the input float3 vector are non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool all(float3 x) { return x.x != 0.0f && x.y != 0.0f && x.z != 0.0f; } - - /// Returns true if all components of the input float4 vector are non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool all(float4 x) { return x.x != 0.0f && x.y != 0.0f && x.z != 0.0f && x.w != 0.0f; } - - - /// Returns true if all components of the input double2 vector are non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool all(double2 x) { return x.x != 0.0 && x.y != 0.0; } - - /// Returns true if all components of the input double3 vector are non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool all(double3 x) { return x.x != 0.0 && x.y != 0.0 && x.z != 0.0; } - - /// Returns true if all components of the input double4 vector are non-zero, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool all(double4 x) { return x.x != 0.0 && x.y != 0.0 && x.z != 0.0 && x.w != 0.0; } - - - /// Returns b if c is true, a otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int select(int a, int b, bool c) { return c ? b : a; } - - /// Returns b if c is true, a otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 select(int2 a, int2 b, bool c) { return c ? b : a; } - - /// Returns b if c is true, a otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 select(int3 a, int3 b, bool c) { return c ? b : a; } - - /// Returns b if c is true, a otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 select(int4 a, int4 b, bool c) { return c ? b : a; } - - - /// - /// Returns a componentwise selection between two int2 vectors a and b based on a bool2 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 select(int2 a, int2 b, bool2 c) { return new int2(c.x ? b.x : a.x, c.y ? b.y : a.y); } - - /// - /// Returns a componentwise selection between two int3 vectors a and b based on a bool3 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 select(int3 a, int3 b, bool3 c) { return new int3(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z); } - - /// - /// Returns a componentwise selection between two int4 vectors a and b based on a bool4 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 select(int4 a, int4 b, bool4 c) { return new int4(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z, c.w ? b.w : a.w); } - - - /// Returns b if c is true, a otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint select(uint a, uint b, bool c) { return c ? b : a; } - - /// Returns b if c is true, a otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 select(uint2 a, uint2 b, bool c) { return c ? b : a; } - - /// Returns b if c is true, a otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 select(uint3 a, uint3 b, bool c) { return c ? b : a; } - - /// Returns b if c is true, a otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 select(uint4 a, uint4 b, bool c) { return c ? b : a; } - - - /// - /// Returns a componentwise selection between two uint2 vectors a and b based on a bool2 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 select(uint2 a, uint2 b, bool2 c) { return new uint2(c.x ? b.x : a.x, c.y ? b.y : a.y); } - - /// - /// Returns a componentwise selection between two uint3 vectors a and b based on a bool3 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 select(uint3 a, uint3 b, bool3 c) { return new uint3(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z); } - - /// - /// Returns a componentwise selection between two uint4 vectors a and b based on a bool4 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 select(uint4 a, uint4 b, bool4 c) { return new uint4(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z, c.w ? b.w : a.w); } - - - /// Returns b if c is true, a otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static long select(long a, long b, bool c) { return c ? b : a; } - - /// Returns b if c is true, a otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ulong select(ulong a, ulong b, bool c) { return c ? b : a; } - - - /// Returns b if c is true, a otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float select(float a, float b, bool c) { return c ? b : a; } - - /// Returns b if c is true, a otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 select(float2 a, float2 b, bool c) { return c ? b : a; } - - /// Returns b if c is true, a otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 select(float3 a, float3 b, bool c) { return c ? b : a; } - - /// Returns b if c is true, a otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 select(float4 a, float4 b, bool c) { return c ? b : a; } - - - /// - /// Returns a componentwise selection between two float2 vectors a and b based on a bool2 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 select(float2 a, float2 b, bool2 c) { return new float2(c.x ? b.x : a.x, c.y ? b.y : a.y); } - - /// - /// Returns a componentwise selection between two float3 vectors a and b based on a bool3 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 select(float3 a, float3 b, bool3 c) { return new float3(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z); } - - /// - /// Returns a componentwise selection between two float4 vectors a and b based on a bool4 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 select(float4 a, float4 b, bool4 c) { return new float4(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z, c.w ? b.w : a.w); } - - - /// Returns b if c is true, a otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double select(double a, double b, bool c) { return c ? b : a; } - - /// Returns b if c is true, a otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 select(double2 a, double2 b, bool c) { return c ? b : a; } - - /// Returns b if c is true, a otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 select(double3 a, double3 b, bool c) { return c ? b : a; } - - /// Returns b if c is true, a otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 select(double4 a, double4 b, bool c) { return c ? b : a; } - - /// - /// Returns a componentwise selection between two double2 vectors a and b based on a bool2 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 select(double2 a, double2 b, bool2 c) { return new double2(c.x ? b.x : a.x, c.y ? b.y : a.y); } - - /// - /// Returns a componentwise selection between two double3 vectors a and b based on a bool3 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 select(double3 a, double3 b, bool3 c) { return new double3(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z); } - - /// - /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 select(double4 a, double4 b, bool4 c) { return new double4(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z, c.w ? b.w : a.w); } - - - /// Computes a step function. Returns 1.0f when x >= y, 0.0f otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float step(float y, float x) { return select(0.0f, 1.0f, x >= y); } - - /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 step(float2 y, float2 x) { return select(float2(0.0f), float2(1.0f), x >= y); } - - /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 step(float3 y, float3 x) { return select(float3(0.0f), float3(1.0f), x >= y); } - - /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 step(float4 y, float4 x) { return select(float4(0.0f), float4(1.0f), x >= y); } - - - /// Computes a step function. Returns 1.0 when x >= y, 0.0 otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double step(double y, double x) { return select(0.0, 1.0, x >= y); } - - /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 step(double2 y, double2 x) { return select(double2(0.0), double2(1.0), x >= y); } - - /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 step(double3 y, double3 x) { return select(double3(0.0), double3(1.0), x >= y); } - - /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 step(double4 y, double4 x) { return select(double4(0.0), double4(1.0), x >= y); } - - - /// Given an incident vector i and a normal vector n, returns the reflection vector r = i - 2.0f * dot(i, n) * n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 reflect(float2 i, float2 n) { return i - 2f * n * dot(i, n); } - - /// Given an incident vector i and a normal vector n, returns the reflection vector r = i - 2.0f * dot(i, n) * n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 reflect(float3 i, float3 n) { return i - 2f * n * dot(i, n); } - - /// Given an incident vector i and a normal vector n, returns the reflection vector r = i - 2.0f * dot(i, n) * n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 reflect(float4 i, float4 n) { return i - 2f * n * dot(i, n); } - - - /// Given an incident vector i and a normal vector n, returns the reflection vector r = i - 2.0 * dot(i, n) * n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 reflect(double2 i, double2 n) { return i - 2 * n * dot(i, n); } - - /// Given an incident vector i and a normal vector n, returns the reflection vector r = i - 2.0 * dot(i, n) * n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 reflect(double3 i, double3 n) { return i - 2 * n * dot(i, n); } - - /// Given an incident vector i and a normal vector n, returns the reflection vector r = i - 2.0 * dot(i, n) * n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 reflect(double4 i, double4 n) { return i - 2 * n * dot(i, n); } - - - /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index eta. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 refract(float2 i, float2 n, float eta) - { - float ni = dot(n, i); - float k = 1.0f - eta * eta * (1.0f - ni * ni); - return select(0.0f, eta * i - (eta * ni + sqrt(k)) * n, k >= 0); - } - - /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index eta. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 refract(float3 i, float3 n, float eta) - { - float ni = dot(n, i); - float k = 1.0f - eta * eta * (1.0f - ni * ni); - return select(0.0f, eta * i - (eta * ni + sqrt(k)) * n, k >= 0); - } - - /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index eta. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 refract(float4 i, float4 n, float eta) - { - float ni = dot(n, i); - float k = 1.0f - eta * eta * (1.0f - ni * ni); - return select(0.0f, eta * i - (eta * ni + sqrt(k)) * n, k >= 0); - } - - - /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index eta. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 refract(double2 i, double2 n, double eta) - { - double ni = dot(n, i); - double k = 1.0 - eta * eta * (1.0 - ni * ni); - return select(0.0f, eta * i - (eta * ni + sqrt(k)) * n, k >= 0); - } - - /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index eta. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 refract(double3 i, double3 n, double eta) - { - double ni = dot(n, i); - double k = 1.0 - eta * eta * (1.0 - ni * ni); - return select(0.0f, eta * i - (eta * ni + sqrt(k)) * n, k >= 0); - } - - /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index eta. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 refract(double4 i, double4 n, double eta) - { - double ni = dot(n, i); - double k = 1.0 - eta * eta * (1.0 - ni * ni); - return select(0.0f, eta * i - (eta * ni + sqrt(k)) * n, k >= 0); - } - - - /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 faceforward(float2 n, float2 i, float2 ng) { return select(n, -n, dot(ng, i) >= 0.0f); } - - /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 faceforward(float3 n, float3 i, float3 ng) { return select(n, -n, dot(ng, i) >= 0.0f); } - - /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 faceforward(float4 n, float4 i, float4 ng) { return select(n, -n, dot(ng, i) >= 0.0f); } - - - /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 faceforward(double2 n, double2 i, double2 ng) { return select(n, -n, dot(ng, i) >= 0.0f); } - - /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 faceforward(double3 n, double3 i, double3 ng) { return select(n, -n, dot(ng, i) >= 0.0f); } - - /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 faceforward(double4 n, double4 i, double4 ng) { return select(n, -n, dot(ng, i) >= 0.0f); } - - - /// Returns the sine and cosine of the input float value x through the out parameters s and c. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void sincos(float x, out float s, out float c) { s = sin(x); c = cos(x); } - - /// Returns the componentwise sine and cosine of the input float2 vector x through the out parameters s and c. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void sincos(float2 x, out float2 s, out float2 c) { s = sin(x); c = cos(x); } - - /// Returns the componentwise sine and cosine of the input float3 vector x through the out parameters s and c. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void sincos(float3 x, out float3 s, out float3 c) { s = sin(x); c = cos(x); } - - /// Returns the componentwise sine and cosine of the input float4 vector x through the out parameters s and c. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void sincos(float4 x, out float4 s, out float4 c) { s = sin(x); c = cos(x); } - - - /// Returns the sine and cosine of the input double value x through the out parameters s and c. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void sincos(double x, out double s, out double c) { s = sin(x); c = cos(x); } - - /// Returns the componentwise sine and cosine of the input double2 vector x through the out parameters s and c. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void sincos(double2 x, out double2 s, out double2 c) { s = sin(x); c = cos(x); } - - /// Returns the componentwise sine and cosine of the input double3 vector x through the out parameters s and c. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void sincos(double3 x, out double3 s, out double3 c) { s = sin(x); c = cos(x); } - - /// Returns the componentwise sine and cosine of the input double4 vector x through the out parameters s and c. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void sincos(double4 x, out double4 s, out double4 c) { s = sin(x); c = cos(x); } - - - /// Returns number of 1-bits in the binary representations of an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int countbits(int x) { return countbits((uint)x); } - - /// Returns componentwise number of 1-bits in the binary representations of an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 countbits(int2 x) { return countbits((uint2)x); } - - /// Returns componentwise number of 1-bits in the binary representations of an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 countbits(int3 x) { return countbits((uint3)x); } - - /// Returns componentwise number of 1-bits in the binary representations of an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 countbits(int4 x) { return countbits((uint4)x); } - - - /// Returns number of 1-bits in the binary representations of a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int countbits(uint x) - { - x = x - ((x >> 1) & 0x55555555); - x = (x & 0x33333333) + ((x >> 2) & 0x33333333); - return (int)((((x + (x >> 4)) & 0x0F0F0F0F) * 0x01010101) >> 24); - } - - /// Returns componentwise number of 1-bits in the binary representations of a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 countbits(uint2 x) - { - x = x - ((x >> 1) & 0x55555555); - x = (x & 0x33333333) + ((x >> 2) & 0x33333333); - return int2((((x + (x >> 4)) & 0x0F0F0F0F) * 0x01010101) >> 24); - } - - /// Returns componentwise number of 1-bits in the binary representations of a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 countbits(uint3 x) - { - x = x - ((x >> 1) & 0x55555555); - x = (x & 0x33333333) + ((x >> 2) & 0x33333333); - return int3((((x + (x >> 4)) & 0x0F0F0F0F) * 0x01010101) >> 24); - } - - /// Returns componentwise number of 1-bits in the binary representations of a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 countbits(uint4 x) - { - x = x - ((x >> 1) & 0x55555555); - x = (x & 0x33333333) + ((x >> 2) & 0x33333333); - return int4((((x + (x >> 4)) & 0x0F0F0F0F) * 0x01010101) >> 24); - } - - /// Returns number of 1-bits in the binary representations of a ulong value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int countbits(ulong x) - { - x = x - ((x >> 1) & 0x5555555555555555); - x = (x & 0x3333333333333333) + ((x >> 2) & 0x3333333333333333); - return (int)((((x + (x >> 4)) & 0x0F0F0F0F0F0F0F0F) * 0x0101010101010101) >> 56); - } - - /// Returns number of 1-bits in the binary representations of a long value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int countbits(long x) { return countbits((ulong)x); } - - - /// Returns the componentwise number of leading zeros in the binary representations of an int vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int lzcnt(int x) { return lzcnt((uint)x); } - - /// Returns the componentwise number of leading zeros in the binary representations of an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 lzcnt(int2 x) { return int2(lzcnt(x.x), lzcnt(x.y)); } - - /// Returns the componentwise number of leading zeros in the binary representations of an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 lzcnt(int3 x) { return int3(lzcnt(x.x), lzcnt(x.y), lzcnt(x.z)); } - - /// Returns the componentwise number of leading zeros in the binary representations of an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 lzcnt(int4 x) { return int4(lzcnt(x.x), lzcnt(x.y), lzcnt(x.z), lzcnt(x.w)); } - - - /// Returns number of leading zeros in the binary representations of a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int lzcnt(uint x) - { - if (x == 0) - return 32; - LongDoubleUnion u; - u.doubleValue = 0.0; - u.longValue = 0x4330000000000000L + x; - u.doubleValue -= 4503599627370496.0; - return 0x41E - (int)(u.longValue >> 52); - } - - /// Returns the componentwise number of leading zeros in the binary representations of a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 lzcnt(uint2 x) { return int2(lzcnt(x.x), lzcnt(x.y)); } - - /// Returns the componentwise number of leading zeros in the binary representations of a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 lzcnt(uint3 x) { return int3(lzcnt(x.x), lzcnt(x.y), lzcnt(x.z)); } - - /// Returns the componentwise number of leading zeros in the binary representations of a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 lzcnt(uint4 x) { return int4(lzcnt(x.x), lzcnt(x.y), lzcnt(x.z), lzcnt(x.w)); } - - - /// Returns number of leading zeros in the binary representations of a long value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int lzcnt(long x) { return lzcnt((ulong)x); } - - - /// Returns number of leading zeros in the binary representations of a ulong value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int lzcnt(ulong x) - { - if (x == 0) - return 64; - - uint xh = (uint)(x >> 32); - uint bits = xh != 0 ? xh : (uint)x; - int offset = xh != 0 ? 0x41E : 0x43E; - - LongDoubleUnion u; - u.doubleValue = 0.0; - u.longValue = 0x4330000000000000L + bits; - u.doubleValue -= 4503599627370496.0; - return offset - (int)(u.longValue >> 52); - } - - - /// Returns number of trailing zeros in the binary representations of an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int tzcnt(int x) { return tzcnt((uint)x); } - - /// Returns the componentwise number of leading zeros in the binary representations of an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 tzcnt(int2 x) { return int2(tzcnt(x.x), tzcnt(x.y)); } - - /// Returns the componentwise number of leading zeros in the binary representations of an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 tzcnt(int3 v) { return int3(tzcnt(v.x), tzcnt(v.y), tzcnt(v.z)); } - - /// Returns the componentwise number of leading zeros in the binary representations of an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 tzcnt(int4 v) { return int4(tzcnt(v.x), tzcnt(v.y), tzcnt(v.z), tzcnt(v.w)); } - - - /// Returns number of trailing zeros in the binary representations of a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int tzcnt(uint x) - { - if (x == 0) - return 32; - - x &= (uint)-x; - LongDoubleUnion u; - u.doubleValue = 0.0; - u.longValue = 0x4330000000000000L + x; - u.doubleValue -= 4503599627370496.0; - return (int)(u.longValue >> 52) - 0x3FF; - } - - /// Returns the componentwise number of leading zeros in the binary representations of an uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 tzcnt(uint2 x) { return int2(tzcnt(x.x), tzcnt(x.y)); } - - /// Returns the componentwise number of leading zeros in the binary representations of an uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 tzcnt(uint3 x) { return int3(tzcnt(x.x), tzcnt(x.y), tzcnt(x.z)); } - - /// Returns the componentwise number of leading zeros in the binary representations of an uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 tzcnt(uint4 x) { return int4(tzcnt(x.x), tzcnt(x.y), tzcnt(x.z), tzcnt(x.w)); } - - - /// Returns number of trailing zeros in the binary representations of a long value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int tzcnt(long x) { return tzcnt((ulong)x); } - - - /// Returns number of trailing zeros in the binary representations of a ulong value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int tzcnt(ulong x) - { - if (x == 0) - return 64; - - x = x & (ulong)-(long)x; - uint xl = (uint)x; - - uint bits = xl != 0 ? xl : (uint)(x >> 32); - int offset = xl != 0 ? 0x3FF : 0x3DF; - - LongDoubleUnion u; - u.doubleValue = 0.0; - u.longValue = 0x4330000000000000L + bits; - u.doubleValue -= 4503599627370496.0; - return (int)(u.longValue >> 52) - offset; - } - - - - /// Returns the result of performing a reversal of the bit pattern of an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int reversebits(int x) { return (int)reversebits((uint)x); } - - /// Returns the result of performing a componentwise reversal of the bit pattern of an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 reversebits(int2 x) { return (int2)reversebits((uint2)x); } - - /// Returns the result of performing a componentwise reversal of the bit pattern of an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 reversebits(int3 x) { return (int3)reversebits((uint3)x); } - - /// Returns the result of performing a componentwise reversal of the bit pattern of an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 reversebits(int4 x) { return (int4)reversebits((uint4)x); } - - - /// Returns the result of performing a reversal of the bit pattern of a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint reversebits(uint x) { - x = ((x >> 1) & 0x55555555) | ((x & 0x55555555) << 1); - x = ((x >> 2) & 0x33333333) | ((x & 0x33333333) << 2); - x = ((x >> 4) & 0x0F0F0F0F) | ((x & 0x0F0F0F0F) << 4); - x = ((x >> 8) & 0x00FF00FF) | ((x & 0x00FF00FF) << 8); - return (x >> 16) | (x << 16); - } - - /// Returns the result of performing a componentwise reversal of the bit pattern of an uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 reversebits(uint2 x) - { - x = ((x >> 1) & 0x55555555) | ((x & 0x55555555) << 1); - x = ((x >> 2) & 0x33333333) | ((x & 0x33333333) << 2); - x = ((x >> 4) & 0x0F0F0F0F) | ((x & 0x0F0F0F0F) << 4); - x = ((x >> 8) & 0x00FF00FF) | ((x & 0x00FF00FF) << 8); - return (x >> 16) | (x << 16); - } - - /// Returns the result of performing a componentwise reversal of the bit pattern of an uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 reversebits(uint3 x) - { - x = ((x >> 1) & 0x55555555) | ((x & 0x55555555) << 1); - x = ((x >> 2) & 0x33333333) | ((x & 0x33333333) << 2); - x = ((x >> 4) & 0x0F0F0F0F) | ((x & 0x0F0F0F0F) << 4); - x = ((x >> 8) & 0x00FF00FF) | ((x & 0x00FF00FF) << 8); - return (x >> 16) | (x << 16); - } - - /// Returns the result of performing a componentwise reversal of the bit pattern of an uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 reversebits(uint4 x) - { - x = ((x >> 1) & 0x55555555) | ((x & 0x55555555) << 1); - x = ((x >> 2) & 0x33333333) | ((x & 0x33333333) << 2); - x = ((x >> 4) & 0x0F0F0F0F) | ((x & 0x0F0F0F0F) << 4); - x = ((x >> 8) & 0x00FF00FF) | ((x & 0x00FF00FF) << 8); - return (x >> 16) | (x << 16); - } - - - /// Returns the result of performing a reversal of the bit pattern of a long value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static long reversebits(long x) { return (long)reversebits((ulong)x); } - - - /// Returns the result of performing a reversal of the bit pattern of a ulong value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ulong reversebits(ulong x) - { - x = ((x >> 1) & 0x5555555555555555ul) | ((x & 0x5555555555555555ul) << 1); - x = ((x >> 2) & 0x3333333333333333ul) | ((x & 0x3333333333333333ul) << 2); - x = ((x >> 4) & 0x0F0F0F0F0F0F0F0Ful) | ((x & 0x0F0F0F0F0F0F0F0Ful) << 4); - x = ((x >> 8) & 0x00FF00FF00FF00FFul) | ((x & 0x00FF00FF00FF00FFul) << 8); - x = ((x >> 16) & 0x0000FFFF0000FFFFul) | ((x & 0x0000FFFF0000FFFFul) << 16); - return (x >> 32) | (x << 32); - } - - - /// Returns the result of rotating the bits of an int left by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int rol(int x, int n) { return (int)rol((uint)x, n); } - - /// Returns the componentwise result of rotating the bits of an int2 left by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 rol(int2 x, int n) { return (int2)rol((uint2)x, n); } - - /// Returns the componentwise result of rotating the bits of an int3 left by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 rol(int3 x, int n) { return (int3)rol((uint3)x, n); } - - /// Returns the componentwise result of rotating the bits of an int4 left by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 rol(int4 x, int n) { return (int4)rol((uint4)x, n); } - - - /// Returns the result of rotating the bits of a uint left by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint rol(uint x, int n) { return (x << n) | (x >> (32 - n)); } - - /// Returns the componentwise result of rotating the bits of a uint2 left by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 rol(uint2 x, int n) { return (x << n) | (x >> (32 - n)); } - - /// Returns the componentwise result of rotating the bits of a uint3 left by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 rol(uint3 x, int n) { return (x << n) | (x >> (32 - n)); } - - /// Returns the componentwise result of rotating the bits of a uint4 left by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 rol(uint4 x, int n) { return (x << n) | (x >> (32 - n)); } - - - /// Returns the result of rotating the bits of a long left by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static long rol(long x, int n) { return (long)rol((ulong)x, n); } - - - /// Returns the result of rotating the bits of a ulong left by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ulong rol(ulong x, int n) { return (x << n) | (x >> (64 - n)); } - - - /// Returns the result of rotating the bits of an int right by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int ror(int x, int n) { return (int)ror((uint)x, n); } - - /// Returns the componentwise result of rotating the bits of an int2 right by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 ror(int2 x, int n) { return (int2)ror((uint2)x, n); } - - /// Returns the componentwise result of rotating the bits of an int3 right by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 ror(int3 x, int n) { return (int3)ror((uint3)x, n); } - - /// Returns the componentwise result of rotating the bits of an int4 right by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 ror(int4 x, int n) { return (int4)ror((uint4)x, n); } - - - /// Returns the result of rotating the bits of a uint right by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint ror(uint x, int n) { return (x >> n) | (x << (32 - n)); } - - /// Returns the componentwise result of rotating the bits of a uint2 right by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 ror(uint2 x, int n) { return (x >> n) | (x << (32 - n)); } - - /// Returns the componentwise result of rotating the bits of a uint3 right by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 ror(uint3 x, int n) { return (x >> n) | (x << (32 - n)); } - - /// Returns the componentwise result of rotating the bits of a uint4 right by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 ror(uint4 x, int n) { return (x >> n) | (x << (32 - n)); } - - - /// Returns the result of rotating the bits of a long right by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static long ror(long x, int n) { return (long)ror((ulong)x, n); } - - - /// Returns the result of rotating the bits of a ulong right by bits n. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ulong ror(ulong x, int n) { return (x >> n) | (x << (64 - n)); } - - - /// Returns the smallest power of two greater than or equal to the input. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int ceilpow2(int x) - { - x -= 1; - x |= x >> 1; - x |= x >> 2; - x |= x >> 4; - x |= x >> 8; - x |= x >> 16; - return x + 1; - } - - /// Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 ceilpow2(int2 x) - { - x -= 1; - x |= x >> 1; - x |= x >> 2; - x |= x >> 4; - x |= x >> 8; - x |= x >> 16; - return x + 1; - } - - /// Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 ceilpow2(int3 x) - { - x -= 1; - x |= x >> 1; - x |= x >> 2; - x |= x >> 4; - x |= x >> 8; - x |= x >> 16; - return x + 1; - } - - /// Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 ceilpow2(int4 x) - { - x -= 1; - x |= x >> 1; - x |= x >> 2; - x |= x >> 4; - x |= x >> 8; - x |= x >> 16; - return x + 1; - } - - - /// Returns the smallest power of two greater than or equal to the input. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint ceilpow2(uint x) - { - x -= 1; - x |= x >> 1; - x |= x >> 2; - x |= x >> 4; - x |= x >> 8; - x |= x >> 16; - return x + 1; - } - - /// Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 ceilpow2(uint2 x) - { - x -= 1; - x |= x >> 1; - x |= x >> 2; - x |= x >> 4; - x |= x >> 8; - x |= x >> 16; - return x + 1; - } - - /// Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 ceilpow2(uint3 x) - { - x -= 1; - x |= x >> 1; - x |= x >> 2; - x |= x >> 4; - x |= x >> 8; - x |= x >> 16; - return x + 1; - } - - /// Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 ceilpow2(uint4 x) - { - x -= 1; - x |= x >> 1; - x |= x >> 2; - x |= x >> 4; - x |= x >> 8; - x |= x >> 16; - return x + 1; - } - - - /// Returns the smallest power of two greater than or equal to the input. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static long ceilpow2(long x) - { - x -= 1; - x |= x >> 1; - x |= x >> 2; - x |= x >> 4; - x |= x >> 8; - x |= x >> 16; - x |= x >> 32; - return x + 1; - } - - - /// Returns the smallest power of two greater than or equal to the input. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ulong ceilpow2(ulong x) - { - x -= 1; - x |= x >> 1; - x |= x >> 2; - x |= x >> 4; - x |= x >> 8; - x |= x >> 16; - x |= x >> 32; - return x + 1; - } - - /// Returns the result of converting a float value from degrees to radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float radians(float x) { return x * 0.0174532925f; } - - /// Returns the result of a componentwise conversion of a float2 vector from degrees to radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 radians(float2 x) { return x * 0.0174532925f; } - - /// Returns the result of a componentwise conversion of a float3 vector from degrees to radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 radians(float3 x) { return x * 0.0174532925f; } - - /// Returns the result of a componentwise conversion of a float4 vector from degrees to radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 radians(float4 x) { return x * 0.0174532925f; } - - - /// Returns the result of converting a float value from degrees to radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double radians(double x) { return x * 0.017453292519943296; } - - /// Returns the result of a componentwise conversion of a float2 vector from degrees to radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 radians(double2 x) { return x * 0.017453292519943296; } - - /// Returns the result of a componentwise conversion of a float3 vector from degrees to radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 radians(double3 x) { return x * 0.017453292519943296; } - - /// Returns the result of a componentwise conversion of a float4 vector from degrees to radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 radians(double4 x) { return x * 0.017453292519943296; } - - - /// Returns the result of converting a double value from radians to degrees. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float degrees(float x) { return x * 57.295779513f; } - - /// Returns the result of a componentwise conversion of a double2 vector from radians to degrees. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 degrees(float2 x) { return x * 57.295779513f; } - - /// Returns the result of a componentwise conversion of a double3 vector from radians to degrees. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 degrees(float3 x) { return x * 57.295779513f; } - - /// Returns the result of a componentwise conversion of a double4 vector from radians to degrees. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 degrees(float4 x) { return x * 57.295779513f; } - - - /// Returns the result of converting a double value from radians to degrees. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double degrees(double x) { return x * 57.29577951308232; } - - /// Returns the result of a componentwise conversion of a double2 vector from radians to degrees. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 degrees(double2 x) { return x * 57.29577951308232; } - - /// Returns the result of a componentwise conversion of a double3 vector from radians to degrees. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 degrees(double3 x) { return x * 57.29577951308232; } - - /// Returns the result of a componentwise conversion of a double4 vector from radians to degrees. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 degrees(double4 x) { return x * 57.29577951308232; } - - - /// Returns the minimum component of an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int cmin(int2 x) { return min(x.x, x.y); } - - /// Returns the minimum component of an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int cmin(int3 x) { return min(min(x.x, x.y), x.z); } - - /// Returns the minimum component of an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int cmin(int4 x) { return min(min(x.x, x.y), min(x.z, x.w)); } - - - /// Returns the minimum component of a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint cmin(uint2 x) { return min(x.x, x.y); } - - /// Returns the minimum component of a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint cmin(uint3 x) { return min(min(x.x, x.y), x.z); } - - /// Returns the minimum component of a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint cmin(uint4 x) { return min(min(x.x, x.y), min(x.z, x.w)); } - - - /// Returns the minimum component of a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float cmin(float2 x) { return min(x.x, x.y); } - - /// Returns the minimum component of a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float cmin(float3 x) { return min(min(x.x, x.y), x.z); } - - /// Returns the maximum component of a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float cmin(float4 x) { return min(min(x.x, x.y), min(x.z, x.w)); } - - - /// Returns the minimum component of a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double cmin(double2 x) { return min(x.x, x.y); } - - /// Returns the minimum component of a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double cmin(double3 x) { return min(min(x.x, x.y), x.z); } - - /// Returns the maximum component of a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double cmin(double4 x) { return min(min(x.x, x.y), min(x.z, x.w)); } - - - /// Returns the maximum component of an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int cmax(int2 x) { return max(x.x, x.y); } - - /// Returns the maximum component of an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int cmax(int3 x) { return max(max(x.x, x.y), x.z); } - - /// Returns the maximum component of an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int cmax(int4 x) { return max(max(x.x, x.y), max(x.z, x.w)); } - - - /// Returns the maximum component of a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint cmax(uint2 x) { return max(x.x, x.y); } - - /// Returns the maximum component of a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint cmax(uint3 x) { return max(max(x.x, x.y), x.z); } - - /// Returns the maximum component of a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint cmax(uint4 x) { return max(max(x.x, x.y), max(x.z, x.w)); } - - - /// Returns the maximum component of a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float cmax(float2 x) { return max(x.x, x.y); } - - /// Returns the maximum component of a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float cmax(float3 x) { return max(max(x.x, x.y), x.z); } - - /// Returns the maximum component of a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float cmax(float4 x) { return max(max(x.x, x.y), max(x.z, x.w)); } - - - /// Returns the maximum component of a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double cmax(double2 x) { return max(x.x, x.y); } - - /// Returns the maximum component of a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double cmax(double3 x) { return max(max(x.x, x.y), x.z); } - - /// Returns the maximum component of a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double cmax(double4 x) { return max(max(x.x, x.y), max(x.z, x.w)); } - - - /// Returns the horizontal sum of components of an int2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int csum(int2 x) { return x.x + x.y; } - - /// Returns the horizontal sum of components of an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int csum(int3 x) { return x.x + x.y + x.z; } - - /// Returns the horizontal sum of components of an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int csum(int4 x) { return x.x + x.y + x.z + x.w; } - - - /// Returns the horizontal sum of components of a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint csum(uint2 x) { return x.x + x.y; } - - /// Returns the horizontal sum of components of a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint csum(uint3 x) { return x.x + x.y + x.z; } - - /// Returns the horizontal sum of components of a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint csum(uint4 x) { return x.x + x.y + x.z + x.w; } - - - /// Returns the horizontal sum of components of a float2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float csum(float2 x) { return x.x + x.y; } - - /// Returns the horizontal sum of components of a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float csum(float3 x) { return x.x + x.y + x.z; } - - /// Returns the horizontal sum of components of a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float csum(float4 x) { return (x.x + x.y) + (x.z + x.w); } - - - /// Returns the horizontal sum of components of a double2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double csum(double2 x) { return x.x + x.y; } - - /// Returns the horizontal sum of components of a double3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double csum(double3 x) { return x.x + x.y + x.z; } - - /// Returns the horizontal sum of components of a double4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double csum(double4 x) { return (x.x + x.y) + (x.z + x.w); } - - /// - /// Packs components with an enabled mask (LSB) to the left - /// The value of components after the last packed component are undefined. - /// Returns the number of enabled mask bits. (0 ... 4) - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static unsafe int compress(int* output, int index, int4 val, bool4 mask) - { - if (mask.x) - output[index++] = val.x; - if (mask.y) - output[index++] = val.y; - if (mask.z) - output[index++] = val.z; - if (mask.w) - output[index++] = val.w; - - return index; - } - - /// Returns the floating point representation of a half-precision floating point value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float f16tof32(uint x) - { - const uint shifted_exp = (0x7c00 << 13); - uint uf = (x & 0x7fff) << 13; - uint e = uf & shifted_exp; - uf += (127 - 15) << 23; - uf += select(0, (128u - 16u) << 23, e == shifted_exp); - uf = select(uf, asuint(asfloat(uf + (1 << 23)) - 6.10351563e-05f), e == 0); - uf |= (x & 0x8000) << 16; - return asfloat(uf); - } - - /// Returns the floating point representation of a half-precision floating point vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 f16tof32(uint2 x) - { - const uint shifted_exp = (0x7c00 << 13); - uint2 uf = (x & 0x7fff) << 13; - uint2 e = uf & shifted_exp; - uf += (127 - 15) << 23; - uf += select(0, (128u - 16u) << 23, e == shifted_exp); - uf = select(uf, asuint(asfloat(uf + (1 << 23)) - 6.10351563e-05f), e == 0); - uf |= (x & 0x8000) << 16; - return asfloat(uf); - } - - /// Returns the floating point representation of a half-precision floating point vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 f16tof32(uint3 x) - { - const uint shifted_exp = (0x7c00 << 13); - uint3 uf = (x & 0x7fff) << 13; - uint3 e = uf & shifted_exp; - uf += (127 - 15) << 23; - uf += select(0, (128u - 16u) << 23, e == shifted_exp); - uf = select(uf, asuint(asfloat(uf + (1 << 23)) - 6.10351563e-05f), e == 0); - uf |= (x & 0x8000) << 16; - return asfloat(uf); - } - - /// Returns the floating point representation of a half-precision floating point vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 f16tof32(uint4 x) - { - const uint shifted_exp = (0x7c00 << 13); - uint4 uf = (x & 0x7fff) << 13; - uint4 e = uf & shifted_exp; - uf += (127 - 15) << 23; - uf += select(0, (128u - 16u) << 23, e == shifted_exp); - uf = select(uf, asuint(asfloat(uf + (1 << 23)) - 6.10351563e-05f), e == 0); - uf |= (x & 0x8000) << 16; - return asfloat(uf); - } - - /// Returns the result converting a float value to its nearest half-precision floating point representation. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint f32tof16(float x) - { - const int infinity_32 = 255 << 23; - const uint msk = 0x7FFFF000u; - - uint ux = asuint(x); - uint uux = ux & msk; - uint h = (uint)(asuint(min(asfloat(uux) * 1.92592994e-34f, 260042752.0f)) + 0x1000) >> 13; // Clamp to signed infinity if overflowed - h = select(h, select(0x7c00u, 0x7e00u, (int)uux > infinity_32), (int)uux >= infinity_32); // NaN->qNaN and Inf->Inf - return h | (ux & ~msk) >> 16; - } - - /// Returns the result of a componentwise conversion of a float2 vector to its nearest half-precision floating point representation. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 f32tof16(float2 x) - { - const int infinity_32 = 255 << 23; - const uint msk = 0x7FFFF000u; - - uint2 ux = asuint(x); - uint2 uux = ux & msk; - uint2 h = (uint2)(asint(min(asfloat(uux) * 1.92592994e-34f, 260042752.0f)) + 0x1000) >> 13; // Clamp to signed infinity if overflowed - h = select(h, select(0x7c00u, 0x7e00u, (int2)uux > infinity_32), (int2)uux >= infinity_32); // NaN->qNaN and Inf->Inf - return h | (ux & ~msk) >> 16; - } - - /// Returns the result of a componentwise conversion of a float3 vector to its nearest half-precision floating point representation. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 f32tof16(float3 x) - { - const int infinity_32 = 255 << 23; - const uint msk = 0x7FFFF000u; - - uint3 ux = asuint(x); - uint3 uux = ux & msk; - uint3 h = (uint3)(asint(min(asfloat(uux) * 1.92592994e-34f, 260042752.0f)) + 0x1000) >> 13; // Clamp to signed infinity if overflowed - h = select(h, select(0x7c00u, 0x7e00u, (int3)uux > infinity_32), (int3)uux >= infinity_32); // NaN->qNaN and Inf->Inf - return h | (ux & ~msk) >> 16; - } - - /// Returns the result of a componentwise conversion of a float4 vector to its nearest half-precision floating point representation. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 f32tof16(float4 x) - { - const int infinity_32 = 255 << 23; - const uint msk = 0x7FFFF000u; - - uint4 ux = asuint(x); - uint4 uux = ux & msk; - uint4 h = (uint4)(asint(min(asfloat(uux) * 1.92592994e-34f, 260042752.0f)) + 0x1000) >> 13; // Clamp to signed infinity if overflowed - h = select(h, select(0x7c00u, 0x7e00u, (int4)uux > infinity_32), (int4)uux >= infinity_32); // NaN->qNaN and Inf->Inf - return h | (ux & ~msk) >> 16; - } - - - /// Returns a uint hash from a block of memory using the xxhash32 algorithm. Can only be used in an unsafe context. - /// A pointer to the beginning of the data. - /// Number of bytes to hash. - /// Starting seed value. - public static unsafe uint hash(void* pBuffer, int numBytes, uint seed = 0) - { - unchecked - { - const uint Prime1 = 2654435761; - const uint Prime2 = 2246822519; - const uint Prime3 = 3266489917; - const uint Prime4 = 668265263; - const uint Prime5 = 374761393; - - uint4* p = (uint4*)pBuffer; - uint hash = seed + Prime5; - if (numBytes >= 16) - { - uint4 state = new uint4(Prime1 + Prime2, Prime2, 0, (uint)-Prime1) + seed; - - int count = numBytes >> 4; - for (int i = 0; i < count; ++i) - { - state += *p++ * Prime2; - state = (state << 13) | (state >> 19); - state *= Prime1; - } - - hash = rol(state.x, 1) + rol(state.y, 7) + rol(state.z, 12) + rol(state.w, 18); - } - - hash += (uint)numBytes; - - uint* puint = (uint*)p; - for (int i = 0; i < ((numBytes >> 2) & 3); ++i) - { - hash += *puint++ * Prime3; - hash = rol(hash, 17) * Prime4; - } - - byte* pbyte = (byte*)puint; - for (int i = 0; i < ((numBytes) & 3); ++i) - { - hash += (*pbyte++) * Prime5; - hash = rol(hash, 11) * Prime1; - } - - hash ^= hash >> 15; - hash *= Prime2; - hash ^= hash >> 13; - hash *= Prime3; - hash ^= hash >> 16; - - return hash; - } - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 up() { return new float3(0.0f, 1.0f, 0.0f); } // for compatibility - - - // Internal - - // SSE shuffles - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float4 unpacklo(float4 a, float4 b) - { - return shuffle(a, b, ShuffleComponent.LeftX, ShuffleComponent.RightX, ShuffleComponent.LeftY, ShuffleComponent.RightY); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double4 unpacklo(double4 a, double4 b) - { - return shuffle(a, b, ShuffleComponent.LeftX, ShuffleComponent.RightX, ShuffleComponent.LeftY, ShuffleComponent.RightY); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float4 unpackhi(float4 a, float4 b) - { - return shuffle(a, b, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.LeftW, ShuffleComponent.RightW); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double4 unpackhi(double4 a, double4 b) - { - return shuffle(a, b, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.LeftW, ShuffleComponent.RightW); - } - - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float4 movelh(float4 a, float4 b) - { - return shuffle(a, b, ShuffleComponent.LeftX, ShuffleComponent.LeftY, ShuffleComponent.RightX, ShuffleComponent.RightY); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double4 movelh(double4 a, double4 b) - { - return shuffle(a, b, ShuffleComponent.LeftX, ShuffleComponent.LeftY, ShuffleComponent.RightX, ShuffleComponent.RightY); - } - - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float4 movehl(float4 a, float4 b) - { - return shuffle(b, a, ShuffleComponent.LeftZ, ShuffleComponent.LeftW, ShuffleComponent.RightZ, ShuffleComponent.RightW); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double4 movehl(double4 a, double4 b) - { - return shuffle(b, a, ShuffleComponent.LeftZ, ShuffleComponent.LeftW, ShuffleComponent.RightZ, ShuffleComponent.RightW); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint fold_to_uint(double x) // utility for double hashing - { - LongDoubleUnion u; - u.longValue = 0; - u.doubleValue = x; - return (uint)(u.longValue >> 32) ^ (uint)u.longValue; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint2 fold_to_uint(double2 x) { return uint2(fold_to_uint(x.x), fold_to_uint(x.y)); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint3 fold_to_uint(double3 x) { return uint3(fold_to_uint(x.x), fold_to_uint(x.y), fold_to_uint(x.z)); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint4 fold_to_uint(double4 x) { return uint4(fold_to_uint(x.x), fold_to_uint(x.y), fold_to_uint(x.z), fold_to_uint(x.w)); } - - [StructLayout(LayoutKind.Explicit)] - internal struct IntFloatUnion - { - [FieldOffset(0)] - public int intValue; - [FieldOffset(0)] - public float floatValue; - } - - [StructLayout(LayoutKind.Explicit)] - internal struct LongDoubleUnion - { - [FieldOffset(0)] - public long longValue; - [FieldOffset(0)] - public double doubleValue; - } - } -} diff --git a/Economy.Shared/Unity.Mathematics/matrix.cs b/Economy.Shared/Unity.Mathematics/matrix.cs deleted file mode 100644 index b3cd01e13..000000000 --- a/Economy.Shared/Unity.Mathematics/matrix.cs +++ /dev/null @@ -1,901 +0,0 @@ -using System.Runtime.CompilerServices; -using static Unity.Mathematics.math; - -namespace Unity.Mathematics -{ - public partial struct float2x2 - { - /// Returns a float2x2 matrix representing a counter-clockwise rotation of angle degrees. - public static float2x2 Rotate(float angle) - { - float s, c; - sincos(angle, out s, out c); - return float2x2(c, -s, - s, c); - } - - /// Returns a float2x2 matrix representing a uniform scaling of both axes by s. - public static float2x2 Scale(float s) - { - return float2x2(s, 0.0f, - 0.0f, s); - } - - /// Returns a float2x2 matrix representing a non-uniform axis scaling by x and y. - public static float2x2 Scale(float x, float y) - { - return float2x2(x, 0.0f, - 0.0f, y); - } - - /// Returns a float2x2 matrix representing a non-uniform axis scaling by the components of the float2 vector v. - public static float2x2 Scale(float2 v) - { - return Scale(v.x, v.y); - } - } - - public partial struct float3x3 - { - /// Constructs a float3x3 matrix from a unit quaternion. - public float3x3(quaternion q) - { - float4 v = q.value; - float4 v2 = v + v; - - uint3 npn = uint3(0x80000000, 0x00000000, 0x80000000); - uint3 nnp = uint3(0x80000000, 0x80000000, 0x00000000); - uint3 pnn = uint3(0x00000000, 0x80000000, 0x80000000); - c0 = v2.y * asfloat(asuint(v.yxw) ^ npn) - v2.z * asfloat(asuint(v.zwx) ^ pnn) + float3(1, 0, 0); - c1 = v2.z * asfloat(asuint(v.wzy) ^ nnp) - v2.x * asfloat(asuint(v.yxw) ^ npn) + float3(0, 1, 0); - c2 = v2.x * asfloat(asuint(v.zwx) ^ pnn) - v2.y * asfloat(asuint(v.wzy) ^ nnp) + float3(0, 0, 1); - } - - /// - /// Returns a float3x3 matrix representing a rotation around a unit axis by an angle in radians. - /// The rotation direction is clockwise when looking along the rotation axis towards the origin. - /// - public static float3x3 AxisAngle(float3 axis, float angle) - { - float sina, cosa; - math.sincos(angle, out sina, out cosa); - - float3 u = axis; - float3 u_yzx = u.yzx; - float3 u_zxy = u.zxy; - float3 u_inv_cosa = u - u * cosa; // u * (1.0f - cosa); - float4 t = float4(u * sina, cosa); - - uint3 ppn = uint3(0x00000000, 0x00000000, 0x80000000); - uint3 npp = uint3(0x80000000, 0x00000000, 0x00000000); - uint3 pnp = uint3(0x00000000, 0x80000000, 0x00000000); - - return float3x3( - u.x * u_inv_cosa + asfloat(asuint(t.wzy) ^ ppn), - u.y * u_inv_cosa + asfloat(asuint(t.zwx) ^ npp), - u.z * u_inv_cosa + asfloat(asuint(t.yxw) ^ pnp) - ); - /* - return float3x3( - cosa + u.x * u.x * (1.0f - cosa), u.y * u.x * (1.0f - cosa) - u.z * sina, u.z * u.x * (1.0f - cosa) + u.y * sina, - u.x * u.y * (1.0f - cosa) + u.z * sina, cosa + u.y * u.y * (1.0f - cosa), u.y * u.z * (1.0f - cosa) - u.x * sina, - u.x * u.z * (1.0f - cosa) - u.y * sina, u.y * u.z * (1.0f - cosa) + u.x * sina, cosa + u.z * u.z * (1.0f - cosa) - ); - */ - } - - /// - /// Returns a float3x3 rotation matrix constructed by first performing a rotation around the x-axis, then the y-axis and finally the z-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - public static float3x3 EulerXYZ(float3 xyz) - { - // return mul(rotateZ(xyz.z), mul(rotateY(xyz.y), rotateX(xyz.x))); - float3 s, c; - sincos(xyz, out s, out c); - return float3x3( - c.y * c.z, c.z * s.x * s.y - c.x * s.z, c.x * c.z * s.y + s.x * s.z, - c.y * s.z, c.x * c.z + s.x * s.y * s.z, c.x * s.y * s.z - c.z * s.x, - -s.y, c.y * s.x, c.x * c.y - ); - } - - /// - /// Returns a float3x3 rotation matrix constructed by first performing a rotation around the x-axis, then the z-axis and finally the y-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - public static float3x3 EulerXZY(float3 xyz) - { - // return mul(rotateY(xyz.y), mul(rotateZ(xyz.z), rotateX(xyz.x))); } - float3 s, c; - sincos(xyz, out s, out c); - return float3x3( - c.y * c.z, s.x * s.y - c.x * c.y * s.z, c.x * s.y + c.y * s.x * s.z, - s.z, c.x * c.z, -c.z * s.x, - -c.z * s.y, c.y * s.x + c.x * s.y * s.z, c.x * c.y - s.x * s.y * s.z - ); - } - - /// - /// Returns a float3x3 rotation matrix constructed by first performing a rotation around the y-axis, then the x-axis and finally the z-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - public static float3x3 EulerYXZ(float3 xyz) - { - // return mul(rotateZ(xyz.z), mul(rotateX(xyz.x), rotateY(xyz.y))); - float3 s, c; - sincos(xyz, out s, out c); - return float3x3( - c.y * c.z - s.x * s.y * s.z, -c.x * s.z, c.z * s.y + c.y * s.x * s.z, - c.z * s.x * s.y + c.y * s.z, c.x * c.z, s.y * s.z - c.y * c.z * s.x, - -c.x * s.y, s.x, c.x * c.y - ); - } - - /// - /// Returns a float3x3 rotation matrix constructed by first performing a rotation around the y-axis, then the z-axis and finally the x-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - public static float3x3 EulerYZX(float3 xyz) - { - // return mul(rotateX(xyz.x), mul(rotateZ(xyz.z), rotateY(xyz.y))); - float3 s, c; - sincos(xyz, out s, out c); - return float3x3( - c.y * c.z, -s.z, c.z * s.y, - s.x * s.y + c.x * c.y * s.z, c.x * c.z, c.x * s.y * s.z - c.y * s.x, - c.y * s.x * s.z - c.x * s.y, c.z * s.x, c.x * c.y + s.x * s.y * s.z - ); - } - - /// - /// Returns a float3x3 rotation matrix constructed by first performing a rotation around the z-axis, then the x-axis and finally the y-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// This is the default order rotation order in Unity. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - public static float3x3 EulerZXY(float3 xyz) - { - // return mul(rotateY(xyz.y), mul(rotateX(xyz.x), rotateZ(xyz.z))); - float3 s, c; - sincos(xyz, out s, out c); - return float3x3( - c.y * c.z + s.x * s.y * s.z, c.z * s.x * s.y - c.y * s.z, c.x * s.y, - c.x * s.z, c.x * c.z, -s.x, - c.y * s.x * s.z - c.z * s.y, c.y * c.z * s.x + s.y * s.z, c.x * c.y - ); - } - - /// - /// Returns a float3x3 rotation matrix constructed by first performing a rotation around the z-axis, then the y-axis and finally the x-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - public static float3x3 EulerZYX(float3 xyz) - { - // return mul(rotateX(xyz.x), mul(rotateY(xyz.y), rotateZ(xyz.z))); - float3 s, c; - sincos(xyz, out s, out c); - return float3x3( - c.y * c.z, -c.y * s.z, s.y, - c.z * s.x * s.y + c.x * s.z, c.x * c.z - s.x * s.y * s.z, -c.y * s.x, - s.x * s.z - c.x * c.z * s.y, c.z * s.x + c.x * s.y * s.z, c.x * c.y - ); - } - - /// - /// Returns a float3x3 rotation matrix constructed by first performing a rotation around the x-axis, then the y-axis and finally the z-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 EulerXYZ(float x, float y, float z) { return EulerXYZ(float3(x, y, z)); } - - /// - /// Returns a float3x3 rotation matrix constructed by first performing a rotation around the x-axis, then the z-axis and finally the y-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 EulerXZY(float x, float y, float z) { return EulerXZY(float3(x, y, z)); } - - /// - /// Returns a float3x3 rotation matrix constructed by first performing a rotation around the y-axis, then the x-axis and finally the z-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 EulerYXZ(float x, float y, float z) { return EulerYXZ(float3(x, y, z)); } - - /// - /// Returns a float3x3 rotation matrix constructed by first performing a rotation around the y-axis, then the z-axis and finally the x-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 EulerYZX(float x, float y, float z) { return EulerYZX(float3(x, y, z)); } - - /// - /// Returns a float3x3 rotation matrix constructed by first performing a rotation around the z-axis, then the x-axis and finally the y-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// This is the default order rotation order in Unity. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 EulerZXY(float x, float y, float z) { return EulerZXY(float3(x, y, z)); } - - /// - /// Returns a float3x3 rotation matrix constructed by first performing a rotation around the z-axis, then the y-axis and finally the x-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 EulerZYX(float x, float y, float z) { return EulerZYX(float3(x, y, z)); } - - /// - /// Returns a float3x3 rotation matrix constructed by first performing 3 rotations around the principal axes in a given order. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// When the rotation order is known at compile time, it is recommended for performance reasons to use specific - /// Euler rotation constructors such as EulerZXY(...). - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - /// The order in which the rotations are applied. - public static float3x3 Euler(float3 xyz, RotationOrder order = RotationOrder.Default) - { - switch (order) - { - case RotationOrder.XYZ: - return EulerXYZ(xyz); - case RotationOrder.XZY: - return EulerXZY(xyz); - case RotationOrder.YXZ: - return EulerYXZ(xyz); - case RotationOrder.YZX: - return EulerYZX(xyz); - case RotationOrder.ZXY: - return EulerZXY(xyz); - case RotationOrder.ZYX: - return EulerZYX(xyz); - default: - return float3x3.identity; - } - } - - /// - /// Returns a float3x3 rotation matrix constructed by first performing 3 rotations around the principal axes in a given order. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// When the rotation order is known at compile time, it is recommended for performance reasons to use specific - /// Euler rotation constructors such as EulerZXY(...). - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - /// The order in which the rotations are applied. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 Euler(float x, float y, float z, RotationOrder order = RotationOrder.Default) - { - return Euler(float3(x, y, z), order); - } - - /// Returns a float4x4 matrix that rotates around the x-axis by a given number of radians. - /// The clockwise rotation angle when looking along the x-axis towards the origin in radians. - public static float3x3 RotateX(float angle) - { - // {{1, 0, 0}, {0, c_0, -s_0}, {0, s_0, c_0}} - float s, c; - sincos(angle, out s, out c); - return float3x3(1.0f, 0.0f, 0.0f, - 0.0f, c, -s, - 0.0f, s, c); - } - - /// Returns a float4x4 matrix that rotates around the y-axis by a given number of radians. - /// The clockwise rotation angle when looking along the y-axis towards the origin in radians. - public static float3x3 RotateY(float angle) - { - // {{c_1, 0, s_1}, {0, 1, 0}, {-s_1, 0, c_1}} - float s, c; - sincos(angle, out s, out c); - return float3x3(c, 0.0f, s, - 0.0f, 1.0f, 0.0f, - -s, 0.0f, c); - } - - /// Returns a float4x4 matrix that rotates around the z-axis by a given number of radians. - /// The clockwise rotation angle when looking along the z-axis towards the origin in radians. - public static float3x3 RotateZ(float angle) - { - // {{c_2, -s_2, 0}, {s_2, c_2, 0}, {0, 0, 1}} - float s, c; - sincos(angle, out s, out c); - return float3x3(c, -s, 0.0f, - s, c, 0.0f, - 0.0f, 0.0f, 1.0f); - } - - //Returns a float3x3 matrix representing a uniform scaling of all axes by s. - public static float3x3 Scale(float s) - { - return float3x3(s, 0.0f, 0.0f, - 0.0f, s, 0.0f, - 0.0f, 0.0f, s); - } - - /// Returns a float3x3 matrix representing a non-uniform axis scaling by x, y and z. - public static float3x3 Scale(float x, float y, float z) - { - return float3x3(x, 0.0f, 0.0f, - 0.0f, y, 0.0f, - 0.0f, 0.0f, z); - } - - /// Returns a float3x3 matrix representing a non-uniform axis scaling by the components of the float3 vector v. - public static float3x3 Scale(float3 v) - { - return Scale(v.x, v.y, v.z); - } - - /// - /// Returns a float3x3 view rotation matrix given a unit length forward vector and a unit length up vector. - /// The two input vectors are assumed to be unit length and not collinear. - /// If these assumptions are not met use float3x3.LookRotationSafe instead. - /// - public static float3x3 LookRotation(float3 forward, float3 up) - { - float3 t = normalize(cross(up, forward)); - return float3x3(t, cross(forward, t), forward); - } - - /// - /// Returns a float3x3 view rotation matrix given a forward vector and an up vector. - /// The two input vectors are not assumed to be unit length. - /// If the magnitude of either of the vectors is so extreme that the calculation cannot be carried out reliably or the vectors are collinear, - /// the identity will be returned instead. - /// - public static float3x3 LookRotationSafe(float3 forward, float3 up) - { - float forwardLengthSq = dot(forward, forward); - float upLengthSq = dot(up, up); - - forward *= rsqrt(forwardLengthSq); - up *= rsqrt(upLengthSq); - - float3 t = cross(up, forward); - float tLengthSq = dot(t, t); - t *= rsqrt(tLengthSq); - - float mn = min(min(forwardLengthSq, upLengthSq), tLengthSq); - float mx = max(max(forwardLengthSq, upLengthSq), tLengthSq); - - bool accept = mn > 1e-35f && mx < 1e35f && isfinite(forwardLengthSq) && isfinite(upLengthSq) && isfinite(tLengthSq); - return float3x3( - select(float3(1,0,0), t, accept), - select(float3(0,1,0), cross(forward, t), accept), - select(float3(0,0,1), forward, accept)); - } - } - - public partial struct float4x4 - { - /// Constructs a float4x4 from a float3x3 rotation matrix and a float3 translation vector. - public float4x4(float3x3 rotation, float3 translation) - { - c0 = float4(rotation.c0, 0.0f); - c1 = float4(rotation.c1, 0.0f); - c2 = float4(rotation.c2, 0.0f); - c3 = float4(translation, 1.0f); - } - - /// Constructs a float4x4 from a quaternion and a float3 translation vector. - public float4x4(quaternion rotation, float3 translation) - { - float3x3 rot = float3x3(rotation); - c0 = float4(rot.c0, 0.0f); - c1 = float4(rot.c1, 0.0f); - c2 = float4(rot.c2, 0.0f); - c3 = float4(translation, 1.0f); - } - - /// Constructs a float4x4 from a RigidTransform. - public float4x4(RigidTransform transform) - { - float3x3 rot = float3x3(transform.rot); - c0 = float4(rot.c0, 0.0f); - c1 = float4(rot.c1, 0.0f); - c2 = float4(rot.c2, 0.0f); - c3 = float4(transform.pos, 1.0f); - } - - /// - /// Returns a float4x4 matrix representing a rotation around a unit axis by an angle in radians. - /// The rotation direction is clockwise when looking along the rotation axis towards the origin. - /// - public static float4x4 AxisAngle(float3 axis, float angle) - { - float sina, cosa; - math.sincos(angle, out sina, out cosa); - - float4 u = float4(axis, 0.0f); - float4 u_yzx = u.yzxx; - float4 u_zxy = u.zxyx; - float4 u_inv_cosa = u - u * cosa; // u * (1.0f - cosa); - float4 t = float4(u.xyz * sina, cosa); - - uint4 ppnp = uint4(0x00000000, 0x00000000, 0x80000000, 0x00000000); - uint4 nppp = uint4(0x80000000, 0x00000000, 0x00000000, 0x00000000); - uint4 pnpp = uint4(0x00000000, 0x80000000, 0x00000000, 0x00000000); - uint4 mask = uint4(0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0x00000000); - - return float4x4( - u.x * u_inv_cosa + asfloat((asuint(t.wzyx) ^ ppnp) & mask), - u.y * u_inv_cosa + asfloat((asuint(t.zwxx) ^ nppp) & mask), - u.z * u_inv_cosa + asfloat((asuint(t.yxwx) ^ pnpp) & mask), - float4(0.0f, 0.0f, 0.0f, 1.0f) - ); - - } - - /// - /// Returns a float4x4 rotation matrix constructed by first performing a rotation around the x-axis, then the y-axis and finally the z-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - public static float4x4 EulerXYZ(float3 xyz) - { - // return mul(rotateZ(xyz.z), mul(rotateY(xyz.y), rotateX(xyz.x))); - float3 s, c; - sincos(xyz, out s, out c); - return float4x4( - c.y * c.z, c.z * s.x * s.y - c.x * s.z, c.x * c.z * s.y + s.x * s.z, 0.0f, - c.y * s.z, c.x * c.z + s.x * s.y * s.z, c.x * s.y * s.z - c.z * s.x, 0.0f, - -s.y, c.y * s.x, c.x * c.y, 0.0f, - 0.0f, 0.0f, 0.0f, 1.0f - ); - } - - /// - /// Returns a float4x4 rotation matrix constructed by first performing a rotation around the x-axis, then the z-axis and finally the y-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - public static float4x4 EulerXZY(float3 xyz) - { - // return mul(rotateY(xyz.y), mul(rotateZ(xyz.z), rotateX(xyz.x))); } - float3 s, c; - sincos(xyz, out s, out c); - return float4x4( - c.y * c.z, s.x * s.y - c.x * c.y * s.z, c.x * s.y + c.y * s.x * s.z, 0.0f, - s.z, c.x * c.z, -c.z * s.x, 0.0f, - -c.z * s.y, c.y * s.x + c.x * s.y * s.z, c.x * c.y - s.x * s.y * s.z, 0.0f, - 0.0f, 0.0f, 0.0f, 1.0f - ); - } - - /// - /// Returns a float4x4 rotation matrix constructed by first performing a rotation around the y-axis, then the x-axis and finally the z-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - public static float4x4 EulerYXZ(float3 xyz) - { - // return mul(rotateZ(xyz.z), mul(rotateX(xyz.x), rotateY(xyz.y))); - float3 s, c; - sincos(xyz, out s, out c); - return float4x4( - c.y * c.z - s.x * s.y * s.z, -c.x * s.z, c.z * s.y + c.y * s.x * s.z, 0.0f, - c.z * s.x * s.y + c.y * s.z, c.x * c.z, s.y * s.z - c.y * c.z * s.x, 0.0f, - -c.x * s.y, s.x, c.x * c.y, 0.0f, - 0.0f, 0.0f, 0.0f, 1.0f - ); - } - - /// - /// Returns a float4x4 rotation matrix constructed by first performing a rotation around the y-axis, then the z-axis and finally the x-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - public static float4x4 EulerYZX(float3 xyz) - { - // return mul(rotateX(xyz.x), mul(rotateZ(xyz.z), rotateY(xyz.y))); - float3 s, c; - sincos(xyz, out s, out c); - return float4x4( - c.y * c.z, -s.z, c.z * s.y, 0.0f, - s.x * s.y + c.x * c.y * s.z, c.x * c.z, c.x * s.y * s.z - c.y * s.x, 0.0f, - c.y * s.x * s.z - c.x * s.y, c.z * s.x, c.x * c.y + s.x * s.y * s.z, 0.0f, - 0.0f, 0.0f, 0.0f, 1.0f - ); - } - - /// - /// Returns a float4x4 rotation matrix constructed by first performing a rotation around the z-axis, then the x-axis and finally the y-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// This is the default order rotation order in Unity. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - public static float4x4 EulerZXY(float3 xyz) - { - // return mul(rotateY(xyz.y), mul(rotateX(xyz.x), rotateZ(xyz.z))); - float3 s, c; - sincos(xyz, out s, out c); - return float4x4( - c.y * c.z + s.x * s.y * s.z, c.z * s.x * s.y - c.y * s.z, c.x * s.y, 0.0f, - c.x * s.z, c.x * c.z, -s.x, 0.0f, - c.y * s.x * s.z - c.z * s.y, c.y * c.z * s.x + s.y * s.z, c.x * c.y, 0.0f, - 0.0f, 0.0f, 0.0f, 1.0f - ); - } - - /// - /// Returns a float4x4 rotation matrix constructed by first performing a rotation around the z-axis, then the y-axis and finally the x-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - public static float4x4 EulerZYX(float3 xyz) - { - // return mul(rotateX(xyz.x), mul(rotateY(xyz.y), rotateZ(xyz.z))); - float3 s, c; - sincos(xyz, out s, out c); - return float4x4( - c.y * c.z, -c.y * s.z, s.y, 0.0f, - c.z * s.x * s.y + c.x * s.z, c.x * c.z - s.x * s.y * s.z, -c.y * s.x, 0.0f, - s.x * s.z - c.x * c.z * s.y, c.z * s.x + c.x * s.y * s.z, c.x * c.y, 0.0f, - 0.0f, 0.0f, 0.0f, 1.0f - ); - } - - /// - /// Returns a float4x4 rotation matrix constructed by first performing a rotation around the x-axis, then the y-axis and finally the z-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 EulerXYZ(float x, float y, float z) { return EulerXYZ(float3(x, y, z)); } - - /// - /// Returns a float4x4 rotation matrix constructed by first performing a rotation around the x-axis, then the z-axis and finally the y-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 EulerXZY(float x, float y, float z) { return EulerXZY(float3(x, y, z)); } - - /// - /// Returns a float4x4 rotation matrix constructed by first performing a rotation around the y-axis, then the x-axis and finally the z-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 EulerYXZ(float x, float y, float z) { return EulerYXZ(float3(x, y, z)); } - - /// - /// Returns a float4x4 rotation matrix constructed by first performing a rotation around the y-axis, then the z-axis and finally the x-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 EulerYZX(float x, float y, float z) { return EulerYZX(float3(x, y, z)); } - - /// - /// Returns a float4x4 rotation matrix constructed by first performing a rotation around the z-axis, then the x-axis and finally the y-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// This is the default order rotation order in Unity. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 EulerZXY(float x, float y, float z) { return EulerZXY(float3(x, y, z)); } - - /// - /// Returns a float4x4 rotation matrix constructed by first performing a rotation around the z-axis, then the y-axis and finally the x-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 EulerZYX(float x, float y, float z) { return EulerZYX(float3(x, y, z)); } - - public static float4x4 Euler(float3 xyz, RotationOrder order = RotationOrder.Default) - { - switch (order) - { - case RotationOrder.XYZ: - return EulerXYZ(xyz); - case RotationOrder.XZY: - return EulerXZY(xyz); - case RotationOrder.YXZ: - return EulerYXZ(xyz); - case RotationOrder.YZX: - return EulerYZX(xyz); - case RotationOrder.ZXY: - return EulerZXY(xyz); - case RotationOrder.ZYX: - return EulerZYX(xyz); - default: - return float4x4.identity; - } - } - - /// - /// Returns a float4x4 rotation matrix constructed by first performing 3 rotations around the principal axes in a given order. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// When the rotation order is known at compile time, it is recommended for performance reasons to use specific - /// Euler rotation constructors such as EulerZXY(...). - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - /// The order in which the rotations are applied. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 Euler(float x, float y, float z, RotationOrder order = RotationOrder.Default) - { - return Euler(float3(x, y, z), order); - } - - /// Returns a float4x4 matrix that rotates around the x-axis by a given number of radians. - /// The clockwise rotation angle when looking along the x-axis towards the origin in radians. - public static float4x4 RotateX(float angle) - { - // {{1, 0, 0}, {0, c_0, -s_0}, {0, s_0, c_0}} - float s, c; - sincos(angle, out s, out c); - return float4x4(1.0f, 0.0f, 0.0f, 0.0f, - 0.0f, c, -s, 0.0f, - 0.0f, s, c, 0.0f, - 0.0f, 0.0f, 0.0f, 1.0f); - - } - - /// Returns a float4x4 matrix that rotates around the y-axis by a given number of radians. - /// The clockwise rotation angle when looking along the y-axis towards the origin in radians. - public static float4x4 RotateY(float angle) - { - // {{c_1, 0, s_1}, {0, 1, 0}, {-s_1, 0, c_1}} - float s, c; - sincos(angle, out s, out c); - return float4x4(c, 0.0f, s, 0.0f, - 0.0f, 1.0f, 0.0f, 0.0f, - -s, 0.0f, c, 0.0f, - 0.0f, 0.0f, 0.0f, 1.0f); - - } - - /// Returns a float4x4 matrix that rotates around the z-axis by a given number of radians. - /// The clockwise rotation angle when looking along the z-axis towards the origin in radians. - public static float4x4 RotateZ(float angle) - { - // {{c_2, -s_2, 0}, {s_2, c_2, 0}, {0, 0, 1}} - float s, c; - sincos(angle, out s, out c); - return float4x4(c, -s, 0.0f, 0.0f, - s, c, 0.0f, 0.0f, - 0.0f, 0.0f, 1.0f, 0.0f, - 0.0f, 0.0f, 0.0f, 1.0f); - - } - - /// Returns a float4x4 scale matrix given 3 axis scales. - public static float4x4 Scale(float s) - { - return float4x4(s, 0.0f, 0.0f, 0.0f, - 0.0f, s, 0.0f, 0.0f, - 0.0f, 0.0f, s, 0.0f, - 0.0f, 0.0f, 0.0f, 1.0f); - } - - /// Returns a float4x4 scale matrix given a float3 vector containing the 3 axis scales. - public static float4x4 Scale(float x, float y, float z) - { - return float4x4(x, 0.0f, 0.0f, 0.0f, - 0.0f, y, 0.0f, 0.0f, - 0.0f, 0.0f, z, 0.0f, - 0.0f, 0.0f, 0.0f, 1.0f); - } - - /// Returns a float4x4 scale matrix given a float3 vector containing the 3 axis scales. - public static float4x4 Scale(float3 scales) - { - return Scale(scales.x, scales.y, scales.z); - } - - /// Returns a float4x4 translation matrix given a float3 translation vector. - public static float4x4 Translate(float3 vector) - { - return float4x4(float4(1.0f, 0.0f, 0.0f, 0.0f), - float4(0.0f, 1.0f, 0.0f, 0.0f), - float4(0.0f, 0.0f, 1.0f, 0.0f), - float4(vector.x, vector.y, vector.z, 1.0f)); - } - - /// - /// Returns a float4x4 view matrix given an eye position, a target point and a unit length up vector. - /// The up vector is assumed to be unit length, the eye and target points are assumed to be distinct and - /// the vector between them is assumes to be collinear with the up vector. - /// If these assumptions are not met use float4x4.LookRotationSafe instead. - /// - public static float4x4 LookAt(float3 eye, float3 target, float3 up) - { - float3x3 rot = float3x3.LookRotation(normalize(target - eye), up); - - float4x4 matrix; - matrix.c0 = float4(rot.c0, 0.0F); - matrix.c1 = float4(rot.c1, 0.0F); - matrix.c2 = float4(rot.c2, 0.0F); - matrix.c3 = float4(eye, 1.0F); - return matrix; - } - - /// - /// Returns a float4x4 centered orthographic projection matrix. - /// - /// The width of the view volume. - /// The height of the view volume. - /// The distance to the near plane. - /// The distance to the far plane. - public static float4x4 Ortho(float width, float height, float near, float far) - { - float rcpdx = 1.0f / width; - float rcpdy = 1.0f / height; - float rcpdz = 1.0f / (far - near); - - return float4x4( - 2.0f * rcpdx, 0.0f, 0.0f, 0.0f, - 0.0f, 2.0f * rcpdy, 0.0f, 0.0f, - 0.0f, 0.0f, -2.0f * rcpdz, -(far + near) * rcpdz, - 0.0f, 0.0f, 0.0f, 1.0f - ); - } - - /// - /// Returns a float4x4 off-center orthographic projection matrix. - /// - /// The minimum x-coordinate of the view volume. - /// The maximum x-coordinate of the view volume. - /// The minimum y-coordinate of the view volume. - /// The minimum y-coordinate of the view volume. - /// The distance to the near plane. - /// The distance to the far plane. - public static float4x4 OrthoOffCenter(float left, float right, float bottom, float top, float near, float far) - { - float rcpdx = 1.0f / (right - left); - float rcpdy = 1.0f / (top - bottom); - float rcpdz = 1.0f / (far - near); - - return float4x4( - 2.0f * rcpdx, 0.0f, 0.0f, -(right + left) * rcpdx, - 0.0f, 2.0f * rcpdy, 0.0f, -(top + bottom) * rcpdy, - 0.0f, 0.0f, -2.0f * rcpdz, -(far + near) * rcpdz, - 0.0f, 0.0f, 0.0f, 1.0f - ); - } - - /// - /// Returns a float4x4 perspective projection matrix based on field of view. - /// - /// Vertical Field of view in radians. - /// X:Y aspect ratio. - /// Distance to near plane. Must be greater than zero. - /// Distance to far plane. Must be greater than zero. - public static float4x4 PerspectiveFov(float verticalFov, float aspect, float near, float far) - { - float cotangent = 1.0f / tan(verticalFov * 0.5f); - float rcpdz = 1.0f / (near - far); - - return float4x4( - cotangent / aspect, 0.0f, 0.0f, 0.0f, - 0.0f, cotangent, 0.0f, 0.0f, - 0.0f, 0.0f, (far + near) * rcpdz, 2.0f * near * far * rcpdz, - 0.0f, 0.0f, -1.0f, 0.0f - ); - } - - /// - /// Returns a float4x4 off-center perspective projection matrix. - /// - /// The x-coordinate of the left side of the clipping frustum at the near plane. - /// The x-coordinate of the right side of the clipping frustum at the near plane. - /// The y-coordinate of the bottom side of the clipping frustum at the near plane. - /// The y-coordinate of the top side of the clipping frustum at the near plane. - /// Distance to the near plane. Must be greater than zero. - /// Distance to the far plane. Must be greater than zero. - public static float4x4 PerspectiveOffCenter(float left, float right, float bottom, float top, float near, float far) - { - float rcpdz = 1.0f / (near - far); - float rcpWidth = 1.0f / (right - left); - float rcpHeight = 1.0f / (top - bottom); - - return float4x4( - 2.0f * near * rcpWidth, 0.0f, (left + right) * rcpWidth, 0.0f, - 0.0f, 2.0f * near * rcpHeight, (bottom + top) * rcpHeight, 0.0f, - 0.0f, 0.0f, (far + near) * rcpdz, 2.0f * near * far * rcpdz, - 0.0f, 0.0f, -1.0f, 0.0f - ); - } - - /// - /// Returns a float4x4 matrix representing a combined scale-, rotation- and translation transform. - /// Equivalent to mul(translationTransform, mul(rotationTransform, scaleTransform)). - /// - public static float4x4 TRS(float3 translation, quaternion rotation, float3 scale) - { - float3x3 r = float3x3(rotation); - return float4x4( float4(r.c0 * scale.x, 0.0f), - float4(r.c1 * scale.y, 0.0f), - float4(r.c2 * scale.z, 0.0f), - float4(translation, 1.0f)); - } - } - - partial class math - { - /// Returns a float3x3 matrix constructed from a quaternion. - public static float3x3 float3x3(quaternion rotation) - { - return new float3x3(rotation); - } - - /// Returns a float4x4 constructed from a float3x3 rotation matrix and a float3 translation vector. - public static float4x4 float4x4(float3x3 rotation, float3 translation) - { - return new float4x4(rotation, translation); - } - - /// Returns a float4x4 constructed from a quaternion and a float3 translation vector. - public static float4x4 float4x4(quaternion rotation, float3 translation) - { - return new float4x4(rotation, translation); - } - - /// Returns a float4x4 constructed from a RigidTransform. - public static float4x4 float4x4(RigidTransform transform) - { - return new float4x4(transform); - } - - /// Returns an orthonormalized version of a float3x3 matrix. - public static float3x3 orthonormalize(float3x3 i) - { - float3x3 o; - - float3 u = i.c0; - float3 v = i.c1 - i.c0 * math.dot(i.c1, i.c0); - - float lenU = math.length(u); - float lenV = math.length(v); - - bool c = lenU > 1e-30f && lenV > 1e-30f; - - o.c0 = math.select(float3(1, 0, 0), u / lenU, c); - o.c1 = math.select(float3(0, 1, 0), v / lenV, c); - o.c2 = math.cross(o.c0, o.c1); - - return o; - } - } -} diff --git a/Economy.Shared/Unity.Mathematics/matrix.gen.cs b/Economy.Shared/Unity.Mathematics/matrix.gen.cs deleted file mode 100644 index 4bd21af20..000000000 --- a/Economy.Shared/Unity.Mathematics/matrix.gen.cs +++ /dev/null @@ -1,1821 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -namespace Unity.Mathematics -{ - partial class math - { - /// Returns the float value result of a matrix multiplication between a float value and a float value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float mul(float a, float b) - { - return a * b; - } - - /// Returns the float value result of a matrix multiplication between a float2 row vector and a float2 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float mul(float2 a, float2 b) - { - return a.x * b.x + a.y * b.y; - } - - /// Returns the float2 row vector result of a matrix multiplication between a float2 row vector and a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 mul(float2 a, float2x2 b) - { - return float2( - a.x * b.c0.x + a.y * b.c0.y, - a.x * b.c1.x + a.y * b.c1.y); - } - - /// Returns the float3 row vector result of a matrix multiplication between a float2 row vector and a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 mul(float2 a, float2x3 b) - { - return float3( - a.x * b.c0.x + a.y * b.c0.y, - a.x * b.c1.x + a.y * b.c1.y, - a.x * b.c2.x + a.y * b.c2.y); - } - - /// Returns the float4 row vector result of a matrix multiplication between a float2 row vector and a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 mul(float2 a, float2x4 b) - { - return float4( - a.x * b.c0.x + a.y * b.c0.y, - a.x * b.c1.x + a.y * b.c1.y, - a.x * b.c2.x + a.y * b.c2.y, - a.x * b.c3.x + a.y * b.c3.y); - } - - /// Returns the float value result of a matrix multiplication between a float3 row vector and a float3 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float mul(float3 a, float3 b) - { - return a.x * b.x + a.y * b.y + a.z * b.z; - } - - /// Returns the float2 row vector result of a matrix multiplication between a float3 row vector and a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 mul(float3 a, float3x2 b) - { - return float2( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z); - } - - /// Returns the float3 row vector result of a matrix multiplication between a float3 row vector and a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 mul(float3 a, float3x3 b) - { - return float3( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z, - a.x * b.c2.x + a.y * b.c2.y + a.z * b.c2.z); - } - - /// Returns the float4 row vector result of a matrix multiplication between a float3 row vector and a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 mul(float3 a, float3x4 b) - { - return float4( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z, - a.x * b.c2.x + a.y * b.c2.y + a.z * b.c2.z, - a.x * b.c3.x + a.y * b.c3.y + a.z * b.c3.z); - } - - /// Returns the float value result of a matrix multiplication between a float4 row vector and a float4 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float mul(float4 a, float4 b) - { - return a.x * b.x + a.y * b.y + a.z * b.z + a.w * b.w; - } - - /// Returns the float2 row vector result of a matrix multiplication between a float4 row vector and a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 mul(float4 a, float4x2 b) - { - return float2( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z + a.w * b.c0.w, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z + a.w * b.c1.w); - } - - /// Returns the float3 row vector result of a matrix multiplication between a float4 row vector and a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 mul(float4 a, float4x3 b) - { - return float3( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z + a.w * b.c0.w, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z + a.w * b.c1.w, - a.x * b.c2.x + a.y * b.c2.y + a.z * b.c2.z + a.w * b.c2.w); - } - - /// Returns the float4 row vector result of a matrix multiplication between a float4 row vector and a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 mul(float4 a, float4x4 b) - { - return float4( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z + a.w * b.c0.w, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z + a.w * b.c1.w, - a.x * b.c2.x + a.y * b.c2.y + a.z * b.c2.z + a.w * b.c2.w, - a.x * b.c3.x + a.y * b.c3.y + a.z * b.c3.z + a.w * b.c3.w); - } - - /// Returns the float2 column vector result of a matrix multiplication between a float2x2 matrix and a float2 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 mul(float2x2 a, float2 b) - { - return a.c0 * b.x + a.c1 * b.y; - } - - /// Returns the float2x2 matrix result of a matrix multiplication between a float2x2 matrix and a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 mul(float2x2 a, float2x2 b) - { - return float2x2( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y); - } - - /// Returns the float2x3 matrix result of a matrix multiplication between a float2x2 matrix and a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 mul(float2x2 a, float2x3 b) - { - return float2x3( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y); - } - - /// Returns the float2x4 matrix result of a matrix multiplication between a float2x2 matrix and a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 mul(float2x2 a, float2x4 b) - { - return float2x4( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y, - a.c0 * b.c3.x + a.c1 * b.c3.y); - } - - /// Returns the float2 column vector result of a matrix multiplication between a float2x3 matrix and a float3 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 mul(float2x3 a, float3 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z; - } - - /// Returns the float2x2 matrix result of a matrix multiplication between a float2x3 matrix and a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 mul(float2x3 a, float3x2 b) - { - return float2x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z); - } - - /// Returns the float2x3 matrix result of a matrix multiplication between a float2x3 matrix and a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 mul(float2x3 a, float3x3 b) - { - return float2x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z); - } - - /// Returns the float2x4 matrix result of a matrix multiplication between a float2x3 matrix and a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 mul(float2x3 a, float3x4 b) - { - return float2x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z); - } - - /// Returns the float2 column vector result of a matrix multiplication between a float2x4 matrix and a float4 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 mul(float2x4 a, float4 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z + a.c3 * b.w; - } - - /// Returns the float2x2 matrix result of a matrix multiplication between a float2x4 matrix and a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x2 mul(float2x4 a, float4x2 b) - { - return float2x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w); - } - - /// Returns the float2x3 matrix result of a matrix multiplication between a float2x4 matrix and a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x3 mul(float2x4 a, float4x3 b) - { - return float2x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w); - } - - /// Returns the float2x4 matrix result of a matrix multiplication between a float2x4 matrix and a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2x4 mul(float2x4 a, float4x4 b) - { - return float2x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z + a.c3 * b.c3.w); - } - - /// Returns the float3 column vector result of a matrix multiplication between a float3x2 matrix and a float2 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 mul(float3x2 a, float2 b) - { - return a.c0 * b.x + a.c1 * b.y; - } - - /// Returns the float3x2 matrix result of a matrix multiplication between a float3x2 matrix and a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 mul(float3x2 a, float2x2 b) - { - return float3x2( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y); - } - - /// Returns the float3x3 matrix result of a matrix multiplication between a float3x2 matrix and a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 mul(float3x2 a, float2x3 b) - { - return float3x3( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y); - } - - /// Returns the float3x4 matrix result of a matrix multiplication between a float3x2 matrix and a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 mul(float3x2 a, float2x4 b) - { - return float3x4( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y, - a.c0 * b.c3.x + a.c1 * b.c3.y); - } - - /// Returns the float3 column vector result of a matrix multiplication between a float3x3 matrix and a float3 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 mul(float3x3 a, float3 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z; - } - - /// Returns the float3x2 matrix result of a matrix multiplication between a float3x3 matrix and a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 mul(float3x3 a, float3x2 b) - { - return float3x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z); - } - - /// Returns the float3x3 matrix result of a matrix multiplication between a float3x3 matrix and a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 mul(float3x3 a, float3x3 b) - { - return float3x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z); - } - - /// Returns the float3x4 matrix result of a matrix multiplication between a float3x3 matrix and a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 mul(float3x3 a, float3x4 b) - { - return float3x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z); - } - - /// Returns the float3 column vector result of a matrix multiplication between a float3x4 matrix and a float4 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 mul(float3x4 a, float4 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z + a.c3 * b.w; - } - - /// Returns the float3x2 matrix result of a matrix multiplication between a float3x4 matrix and a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x2 mul(float3x4 a, float4x2 b) - { - return float3x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w); - } - - /// Returns the float3x3 matrix result of a matrix multiplication between a float3x4 matrix and a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 mul(float3x4 a, float4x3 b) - { - return float3x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w); - } - - /// Returns the float3x4 matrix result of a matrix multiplication between a float3x4 matrix and a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 mul(float3x4 a, float4x4 b) - { - return float3x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z + a.c3 * b.c3.w); - } - - /// Returns the float4 column vector result of a matrix multiplication between a float4x2 matrix and a float2 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 mul(float4x2 a, float2 b) - { - return a.c0 * b.x + a.c1 * b.y; - } - - /// Returns the float4x2 matrix result of a matrix multiplication between a float4x2 matrix and a float2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 mul(float4x2 a, float2x2 b) - { - return float4x2( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y); - } - - /// Returns the float4x3 matrix result of a matrix multiplication between a float4x2 matrix and a float2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 mul(float4x2 a, float2x3 b) - { - return float4x3( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y); - } - - /// Returns the float4x4 matrix result of a matrix multiplication between a float4x2 matrix and a float2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 mul(float4x2 a, float2x4 b) - { - return float4x4( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y, - a.c0 * b.c3.x + a.c1 * b.c3.y); - } - - /// Returns the float4 column vector result of a matrix multiplication between a float4x3 matrix and a float3 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 mul(float4x3 a, float3 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z; - } - - /// Returns the float4x2 matrix result of a matrix multiplication between a float4x3 matrix and a float3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 mul(float4x3 a, float3x2 b) - { - return float4x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z); - } - - /// Returns the float4x3 matrix result of a matrix multiplication between a float4x3 matrix and a float3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 mul(float4x3 a, float3x3 b) - { - return float4x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z); - } - - /// Returns the float4x4 matrix result of a matrix multiplication between a float4x3 matrix and a float3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 mul(float4x3 a, float3x4 b) - { - return float4x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z); - } - - /// Returns the float4 column vector result of a matrix multiplication between a float4x4 matrix and a float4 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 mul(float4x4 a, float4 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z + a.c3 * b.w; - } - - /// Returns the float4x2 matrix result of a matrix multiplication between a float4x4 matrix and a float4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x2 mul(float4x4 a, float4x2 b) - { - return float4x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w); - } - - /// Returns the float4x3 matrix result of a matrix multiplication between a float4x4 matrix and a float4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x3 mul(float4x4 a, float4x3 b) - { - return float4x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w); - } - - /// Returns the float4x4 matrix result of a matrix multiplication between a float4x4 matrix and a float4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 mul(float4x4 a, float4x4 b) - { - return float4x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z + a.c3 * b.c3.w); - } - - /// Returns the double value result of a matrix multiplication between a double value and a double value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double mul(double a, double b) - { - return a * b; - } - - /// Returns the double value result of a matrix multiplication between a double2 row vector and a double2 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double mul(double2 a, double2 b) - { - return a.x * b.x + a.y * b.y; - } - - /// Returns the double2 row vector result of a matrix multiplication between a double2 row vector and a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 mul(double2 a, double2x2 b) - { - return double2( - a.x * b.c0.x + a.y * b.c0.y, - a.x * b.c1.x + a.y * b.c1.y); - } - - /// Returns the double3 row vector result of a matrix multiplication between a double2 row vector and a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 mul(double2 a, double2x3 b) - { - return double3( - a.x * b.c0.x + a.y * b.c0.y, - a.x * b.c1.x + a.y * b.c1.y, - a.x * b.c2.x + a.y * b.c2.y); - } - - /// Returns the double4 row vector result of a matrix multiplication between a double2 row vector and a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 mul(double2 a, double2x4 b) - { - return double4( - a.x * b.c0.x + a.y * b.c0.y, - a.x * b.c1.x + a.y * b.c1.y, - a.x * b.c2.x + a.y * b.c2.y, - a.x * b.c3.x + a.y * b.c3.y); - } - - /// Returns the double value result of a matrix multiplication between a double3 row vector and a double3 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double mul(double3 a, double3 b) - { - return a.x * b.x + a.y * b.y + a.z * b.z; - } - - /// Returns the double2 row vector result of a matrix multiplication between a double3 row vector and a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 mul(double3 a, double3x2 b) - { - return double2( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z); - } - - /// Returns the double3 row vector result of a matrix multiplication between a double3 row vector and a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 mul(double3 a, double3x3 b) - { - return double3( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z, - a.x * b.c2.x + a.y * b.c2.y + a.z * b.c2.z); - } - - /// Returns the double4 row vector result of a matrix multiplication between a double3 row vector and a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 mul(double3 a, double3x4 b) - { - return double4( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z, - a.x * b.c2.x + a.y * b.c2.y + a.z * b.c2.z, - a.x * b.c3.x + a.y * b.c3.y + a.z * b.c3.z); - } - - /// Returns the double value result of a matrix multiplication between a double4 row vector and a double4 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double mul(double4 a, double4 b) - { - return a.x * b.x + a.y * b.y + a.z * b.z + a.w * b.w; - } - - /// Returns the double2 row vector result of a matrix multiplication between a double4 row vector and a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 mul(double4 a, double4x2 b) - { - return double2( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z + a.w * b.c0.w, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z + a.w * b.c1.w); - } - - /// Returns the double3 row vector result of a matrix multiplication between a double4 row vector and a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 mul(double4 a, double4x3 b) - { - return double3( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z + a.w * b.c0.w, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z + a.w * b.c1.w, - a.x * b.c2.x + a.y * b.c2.y + a.z * b.c2.z + a.w * b.c2.w); - } - - /// Returns the double4 row vector result of a matrix multiplication between a double4 row vector and a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 mul(double4 a, double4x4 b) - { - return double4( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z + a.w * b.c0.w, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z + a.w * b.c1.w, - a.x * b.c2.x + a.y * b.c2.y + a.z * b.c2.z + a.w * b.c2.w, - a.x * b.c3.x + a.y * b.c3.y + a.z * b.c3.z + a.w * b.c3.w); - } - - /// Returns the double2 column vector result of a matrix multiplication between a double2x2 matrix and a double2 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 mul(double2x2 a, double2 b) - { - return a.c0 * b.x + a.c1 * b.y; - } - - /// Returns the double2x2 matrix result of a matrix multiplication between a double2x2 matrix and a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 mul(double2x2 a, double2x2 b) - { - return double2x2( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y); - } - - /// Returns the double2x3 matrix result of a matrix multiplication between a double2x2 matrix and a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 mul(double2x2 a, double2x3 b) - { - return double2x3( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y); - } - - /// Returns the double2x4 matrix result of a matrix multiplication between a double2x2 matrix and a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 mul(double2x2 a, double2x4 b) - { - return double2x4( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y, - a.c0 * b.c3.x + a.c1 * b.c3.y); - } - - /// Returns the double2 column vector result of a matrix multiplication between a double2x3 matrix and a double3 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 mul(double2x3 a, double3 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z; - } - - /// Returns the double2x2 matrix result of a matrix multiplication between a double2x3 matrix and a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 mul(double2x3 a, double3x2 b) - { - return double2x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z); - } - - /// Returns the double2x3 matrix result of a matrix multiplication between a double2x3 matrix and a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 mul(double2x3 a, double3x3 b) - { - return double2x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z); - } - - /// Returns the double2x4 matrix result of a matrix multiplication between a double2x3 matrix and a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 mul(double2x3 a, double3x4 b) - { - return double2x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z); - } - - /// Returns the double2 column vector result of a matrix multiplication between a double2x4 matrix and a double4 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 mul(double2x4 a, double4 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z + a.c3 * b.w; - } - - /// Returns the double2x2 matrix result of a matrix multiplication between a double2x4 matrix and a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x2 mul(double2x4 a, double4x2 b) - { - return double2x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w); - } - - /// Returns the double2x3 matrix result of a matrix multiplication between a double2x4 matrix and a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x3 mul(double2x4 a, double4x3 b) - { - return double2x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w); - } - - /// Returns the double2x4 matrix result of a matrix multiplication between a double2x4 matrix and a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2x4 mul(double2x4 a, double4x4 b) - { - return double2x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z + a.c3 * b.c3.w); - } - - /// Returns the double3 column vector result of a matrix multiplication between a double3x2 matrix and a double2 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 mul(double3x2 a, double2 b) - { - return a.c0 * b.x + a.c1 * b.y; - } - - /// Returns the double3x2 matrix result of a matrix multiplication between a double3x2 matrix and a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 mul(double3x2 a, double2x2 b) - { - return double3x2( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y); - } - - /// Returns the double3x3 matrix result of a matrix multiplication between a double3x2 matrix and a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 mul(double3x2 a, double2x3 b) - { - return double3x3( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y); - } - - /// Returns the double3x4 matrix result of a matrix multiplication between a double3x2 matrix and a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 mul(double3x2 a, double2x4 b) - { - return double3x4( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y, - a.c0 * b.c3.x + a.c1 * b.c3.y); - } - - /// Returns the double3 column vector result of a matrix multiplication between a double3x3 matrix and a double3 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 mul(double3x3 a, double3 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z; - } - - /// Returns the double3x2 matrix result of a matrix multiplication between a double3x3 matrix and a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 mul(double3x3 a, double3x2 b) - { - return double3x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z); - } - - /// Returns the double3x3 matrix result of a matrix multiplication between a double3x3 matrix and a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 mul(double3x3 a, double3x3 b) - { - return double3x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z); - } - - /// Returns the double3x4 matrix result of a matrix multiplication between a double3x3 matrix and a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 mul(double3x3 a, double3x4 b) - { - return double3x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z); - } - - /// Returns the double3 column vector result of a matrix multiplication between a double3x4 matrix and a double4 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 mul(double3x4 a, double4 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z + a.c3 * b.w; - } - - /// Returns the double3x2 matrix result of a matrix multiplication between a double3x4 matrix and a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x2 mul(double3x4 a, double4x2 b) - { - return double3x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w); - } - - /// Returns the double3x3 matrix result of a matrix multiplication between a double3x4 matrix and a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x3 mul(double3x4 a, double4x3 b) - { - return double3x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w); - } - - /// Returns the double3x4 matrix result of a matrix multiplication between a double3x4 matrix and a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3x4 mul(double3x4 a, double4x4 b) - { - return double3x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z + a.c3 * b.c3.w); - } - - /// Returns the double4 column vector result of a matrix multiplication between a double4x2 matrix and a double2 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 mul(double4x2 a, double2 b) - { - return a.c0 * b.x + a.c1 * b.y; - } - - /// Returns the double4x2 matrix result of a matrix multiplication between a double4x2 matrix and a double2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 mul(double4x2 a, double2x2 b) - { - return double4x2( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y); - } - - /// Returns the double4x3 matrix result of a matrix multiplication between a double4x2 matrix and a double2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 mul(double4x2 a, double2x3 b) - { - return double4x3( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y); - } - - /// Returns the double4x4 matrix result of a matrix multiplication between a double4x2 matrix and a double2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 mul(double4x2 a, double2x4 b) - { - return double4x4( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y, - a.c0 * b.c3.x + a.c1 * b.c3.y); - } - - /// Returns the double4 column vector result of a matrix multiplication between a double4x3 matrix and a double3 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 mul(double4x3 a, double3 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z; - } - - /// Returns the double4x2 matrix result of a matrix multiplication between a double4x3 matrix and a double3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 mul(double4x3 a, double3x2 b) - { - return double4x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z); - } - - /// Returns the double4x3 matrix result of a matrix multiplication between a double4x3 matrix and a double3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 mul(double4x3 a, double3x3 b) - { - return double4x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z); - } - - /// Returns the double4x4 matrix result of a matrix multiplication between a double4x3 matrix and a double3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 mul(double4x3 a, double3x4 b) - { - return double4x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z); - } - - /// Returns the double4 column vector result of a matrix multiplication between a double4x4 matrix and a double4 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 mul(double4x4 a, double4 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z + a.c3 * b.w; - } - - /// Returns the double4x2 matrix result of a matrix multiplication between a double4x4 matrix and a double4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x2 mul(double4x4 a, double4x2 b) - { - return double4x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w); - } - - /// Returns the double4x3 matrix result of a matrix multiplication between a double4x4 matrix and a double4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x3 mul(double4x4 a, double4x3 b) - { - return double4x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w); - } - - /// Returns the double4x4 matrix result of a matrix multiplication between a double4x4 matrix and a double4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4x4 mul(double4x4 a, double4x4 b) - { - return double4x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z + a.c3 * b.c3.w); - } - - /// Returns the int value result of a matrix multiplication between an int value and an int value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int mul(int a, int b) - { - return a * b; - } - - /// Returns the int value result of a matrix multiplication between an int2 row vector and an int2 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int mul(int2 a, int2 b) - { - return a.x * b.x + a.y * b.y; - } - - /// Returns the int2 row vector result of a matrix multiplication between an int2 row vector and an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 mul(int2 a, int2x2 b) - { - return int2( - a.x * b.c0.x + a.y * b.c0.y, - a.x * b.c1.x + a.y * b.c1.y); - } - - /// Returns the int3 row vector result of a matrix multiplication between an int2 row vector and an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 mul(int2 a, int2x3 b) - { - return int3( - a.x * b.c0.x + a.y * b.c0.y, - a.x * b.c1.x + a.y * b.c1.y, - a.x * b.c2.x + a.y * b.c2.y); - } - - /// Returns the int4 row vector result of a matrix multiplication between an int2 row vector and an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 mul(int2 a, int2x4 b) - { - return int4( - a.x * b.c0.x + a.y * b.c0.y, - a.x * b.c1.x + a.y * b.c1.y, - a.x * b.c2.x + a.y * b.c2.y, - a.x * b.c3.x + a.y * b.c3.y); - } - - /// Returns the int value result of a matrix multiplication between an int3 row vector and an int3 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int mul(int3 a, int3 b) - { - return a.x * b.x + a.y * b.y + a.z * b.z; - } - - /// Returns the int2 row vector result of a matrix multiplication between an int3 row vector and an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 mul(int3 a, int3x2 b) - { - return int2( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z); - } - - /// Returns the int3 row vector result of a matrix multiplication between an int3 row vector and an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 mul(int3 a, int3x3 b) - { - return int3( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z, - a.x * b.c2.x + a.y * b.c2.y + a.z * b.c2.z); - } - - /// Returns the int4 row vector result of a matrix multiplication between an int3 row vector and an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 mul(int3 a, int3x4 b) - { - return int4( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z, - a.x * b.c2.x + a.y * b.c2.y + a.z * b.c2.z, - a.x * b.c3.x + a.y * b.c3.y + a.z * b.c3.z); - } - - /// Returns the int value result of a matrix multiplication between an int4 row vector and an int4 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int mul(int4 a, int4 b) - { - return a.x * b.x + a.y * b.y + a.z * b.z + a.w * b.w; - } - - /// Returns the int2 row vector result of a matrix multiplication between an int4 row vector and an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 mul(int4 a, int4x2 b) - { - return int2( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z + a.w * b.c0.w, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z + a.w * b.c1.w); - } - - /// Returns the int3 row vector result of a matrix multiplication between an int4 row vector and an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 mul(int4 a, int4x3 b) - { - return int3( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z + a.w * b.c0.w, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z + a.w * b.c1.w, - a.x * b.c2.x + a.y * b.c2.y + a.z * b.c2.z + a.w * b.c2.w); - } - - /// Returns the int4 row vector result of a matrix multiplication between an int4 row vector and an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 mul(int4 a, int4x4 b) - { - return int4( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z + a.w * b.c0.w, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z + a.w * b.c1.w, - a.x * b.c2.x + a.y * b.c2.y + a.z * b.c2.z + a.w * b.c2.w, - a.x * b.c3.x + a.y * b.c3.y + a.z * b.c3.z + a.w * b.c3.w); - } - - /// Returns the int2 column vector result of a matrix multiplication between an int2x2 matrix and an int2 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 mul(int2x2 a, int2 b) - { - return a.c0 * b.x + a.c1 * b.y; - } - - /// Returns the int2x2 matrix result of a matrix multiplication between an int2x2 matrix and an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 mul(int2x2 a, int2x2 b) - { - return int2x2( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y); - } - - /// Returns the int2x3 matrix result of a matrix multiplication between an int2x2 matrix and an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 mul(int2x2 a, int2x3 b) - { - return int2x3( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y); - } - - /// Returns the int2x4 matrix result of a matrix multiplication between an int2x2 matrix and an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 mul(int2x2 a, int2x4 b) - { - return int2x4( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y, - a.c0 * b.c3.x + a.c1 * b.c3.y); - } - - /// Returns the int2 column vector result of a matrix multiplication between an int2x3 matrix and an int3 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 mul(int2x3 a, int3 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z; - } - - /// Returns the int2x2 matrix result of a matrix multiplication between an int2x3 matrix and an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 mul(int2x3 a, int3x2 b) - { - return int2x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z); - } - - /// Returns the int2x3 matrix result of a matrix multiplication between an int2x3 matrix and an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 mul(int2x3 a, int3x3 b) - { - return int2x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z); - } - - /// Returns the int2x4 matrix result of a matrix multiplication between an int2x3 matrix and an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 mul(int2x3 a, int3x4 b) - { - return int2x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z); - } - - /// Returns the int2 column vector result of a matrix multiplication between an int2x4 matrix and an int4 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 mul(int2x4 a, int4 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z + a.c3 * b.w; - } - - /// Returns the int2x2 matrix result of a matrix multiplication between an int2x4 matrix and an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x2 mul(int2x4 a, int4x2 b) - { - return int2x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w); - } - - /// Returns the int2x3 matrix result of a matrix multiplication between an int2x4 matrix and an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x3 mul(int2x4 a, int4x3 b) - { - return int2x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w); - } - - /// Returns the int2x4 matrix result of a matrix multiplication between an int2x4 matrix and an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2x4 mul(int2x4 a, int4x4 b) - { - return int2x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z + a.c3 * b.c3.w); - } - - /// Returns the int3 column vector result of a matrix multiplication between an int3x2 matrix and an int2 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 mul(int3x2 a, int2 b) - { - return a.c0 * b.x + a.c1 * b.y; - } - - /// Returns the int3x2 matrix result of a matrix multiplication between an int3x2 matrix and an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 mul(int3x2 a, int2x2 b) - { - return int3x2( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y); - } - - /// Returns the int3x3 matrix result of a matrix multiplication between an int3x2 matrix and an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 mul(int3x2 a, int2x3 b) - { - return int3x3( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y); - } - - /// Returns the int3x4 matrix result of a matrix multiplication between an int3x2 matrix and an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 mul(int3x2 a, int2x4 b) - { - return int3x4( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y, - a.c0 * b.c3.x + a.c1 * b.c3.y); - } - - /// Returns the int3 column vector result of a matrix multiplication between an int3x3 matrix and an int3 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 mul(int3x3 a, int3 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z; - } - - /// Returns the int3x2 matrix result of a matrix multiplication between an int3x3 matrix and an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 mul(int3x3 a, int3x2 b) - { - return int3x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z); - } - - /// Returns the int3x3 matrix result of a matrix multiplication between an int3x3 matrix and an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 mul(int3x3 a, int3x3 b) - { - return int3x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z); - } - - /// Returns the int3x4 matrix result of a matrix multiplication between an int3x3 matrix and an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 mul(int3x3 a, int3x4 b) - { - return int3x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z); - } - - /// Returns the int3 column vector result of a matrix multiplication between an int3x4 matrix and an int4 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 mul(int3x4 a, int4 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z + a.c3 * b.w; - } - - /// Returns the int3x2 matrix result of a matrix multiplication between an int3x4 matrix and an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x2 mul(int3x4 a, int4x2 b) - { - return int3x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w); - } - - /// Returns the int3x3 matrix result of a matrix multiplication between an int3x4 matrix and an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x3 mul(int3x4 a, int4x3 b) - { - return int3x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w); - } - - /// Returns the int3x4 matrix result of a matrix multiplication between an int3x4 matrix and an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3x4 mul(int3x4 a, int4x4 b) - { - return int3x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z + a.c3 * b.c3.w); - } - - /// Returns the int4 column vector result of a matrix multiplication between an int4x2 matrix and an int2 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 mul(int4x2 a, int2 b) - { - return a.c0 * b.x + a.c1 * b.y; - } - - /// Returns the int4x2 matrix result of a matrix multiplication between an int4x2 matrix and an int2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 mul(int4x2 a, int2x2 b) - { - return int4x2( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y); - } - - /// Returns the int4x3 matrix result of a matrix multiplication between an int4x2 matrix and an int2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 mul(int4x2 a, int2x3 b) - { - return int4x3( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y); - } - - /// Returns the int4x4 matrix result of a matrix multiplication between an int4x2 matrix and an int2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 mul(int4x2 a, int2x4 b) - { - return int4x4( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y, - a.c0 * b.c3.x + a.c1 * b.c3.y); - } - - /// Returns the int4 column vector result of a matrix multiplication between an int4x3 matrix and an int3 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 mul(int4x3 a, int3 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z; - } - - /// Returns the int4x2 matrix result of a matrix multiplication between an int4x3 matrix and an int3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 mul(int4x3 a, int3x2 b) - { - return int4x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z); - } - - /// Returns the int4x3 matrix result of a matrix multiplication between an int4x3 matrix and an int3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 mul(int4x3 a, int3x3 b) - { - return int4x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z); - } - - /// Returns the int4x4 matrix result of a matrix multiplication between an int4x3 matrix and an int3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 mul(int4x3 a, int3x4 b) - { - return int4x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z); - } - - /// Returns the int4 column vector result of a matrix multiplication between an int4x4 matrix and an int4 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 mul(int4x4 a, int4 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z + a.c3 * b.w; - } - - /// Returns the int4x2 matrix result of a matrix multiplication between an int4x4 matrix and an int4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x2 mul(int4x4 a, int4x2 b) - { - return int4x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w); - } - - /// Returns the int4x3 matrix result of a matrix multiplication between an int4x4 matrix and an int4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x3 mul(int4x4 a, int4x3 b) - { - return int4x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w); - } - - /// Returns the int4x4 matrix result of a matrix multiplication between an int4x4 matrix and an int4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4x4 mul(int4x4 a, int4x4 b) - { - return int4x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z + a.c3 * b.c3.w); - } - - /// Returns the uint value result of a matrix multiplication between a uint value and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint mul(uint a, uint b) - { - return a * b; - } - - /// Returns the uint value result of a matrix multiplication between a uint2 row vector and a uint2 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint mul(uint2 a, uint2 b) - { - return a.x * b.x + a.y * b.y; - } - - /// Returns the uint2 row vector result of a matrix multiplication between a uint2 row vector and a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 mul(uint2 a, uint2x2 b) - { - return uint2( - a.x * b.c0.x + a.y * b.c0.y, - a.x * b.c1.x + a.y * b.c1.y); - } - - /// Returns the uint3 row vector result of a matrix multiplication between a uint2 row vector and a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 mul(uint2 a, uint2x3 b) - { - return uint3( - a.x * b.c0.x + a.y * b.c0.y, - a.x * b.c1.x + a.y * b.c1.y, - a.x * b.c2.x + a.y * b.c2.y); - } - - /// Returns the uint4 row vector result of a matrix multiplication between a uint2 row vector and a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 mul(uint2 a, uint2x4 b) - { - return uint4( - a.x * b.c0.x + a.y * b.c0.y, - a.x * b.c1.x + a.y * b.c1.y, - a.x * b.c2.x + a.y * b.c2.y, - a.x * b.c3.x + a.y * b.c3.y); - } - - /// Returns the uint value result of a matrix multiplication between a uint3 row vector and a uint3 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint mul(uint3 a, uint3 b) - { - return a.x * b.x + a.y * b.y + a.z * b.z; - } - - /// Returns the uint2 row vector result of a matrix multiplication between a uint3 row vector and a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 mul(uint3 a, uint3x2 b) - { - return uint2( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z); - } - - /// Returns the uint3 row vector result of a matrix multiplication between a uint3 row vector and a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 mul(uint3 a, uint3x3 b) - { - return uint3( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z, - a.x * b.c2.x + a.y * b.c2.y + a.z * b.c2.z); - } - - /// Returns the uint4 row vector result of a matrix multiplication between a uint3 row vector and a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 mul(uint3 a, uint3x4 b) - { - return uint4( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z, - a.x * b.c2.x + a.y * b.c2.y + a.z * b.c2.z, - a.x * b.c3.x + a.y * b.c3.y + a.z * b.c3.z); - } - - /// Returns the uint value result of a matrix multiplication between a uint4 row vector and a uint4 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint mul(uint4 a, uint4 b) - { - return a.x * b.x + a.y * b.y + a.z * b.z + a.w * b.w; - } - - /// Returns the uint2 row vector result of a matrix multiplication between a uint4 row vector and a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 mul(uint4 a, uint4x2 b) - { - return uint2( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z + a.w * b.c0.w, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z + a.w * b.c1.w); - } - - /// Returns the uint3 row vector result of a matrix multiplication between a uint4 row vector and a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 mul(uint4 a, uint4x3 b) - { - return uint3( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z + a.w * b.c0.w, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z + a.w * b.c1.w, - a.x * b.c2.x + a.y * b.c2.y + a.z * b.c2.z + a.w * b.c2.w); - } - - /// Returns the uint4 row vector result of a matrix multiplication between a uint4 row vector and a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 mul(uint4 a, uint4x4 b) - { - return uint4( - a.x * b.c0.x + a.y * b.c0.y + a.z * b.c0.z + a.w * b.c0.w, - a.x * b.c1.x + a.y * b.c1.y + a.z * b.c1.z + a.w * b.c1.w, - a.x * b.c2.x + a.y * b.c2.y + a.z * b.c2.z + a.w * b.c2.w, - a.x * b.c3.x + a.y * b.c3.y + a.z * b.c3.z + a.w * b.c3.w); - } - - /// Returns the uint2 column vector result of a matrix multiplication between a uint2x2 matrix and a uint2 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 mul(uint2x2 a, uint2 b) - { - return a.c0 * b.x + a.c1 * b.y; - } - - /// Returns the uint2x2 matrix result of a matrix multiplication between a uint2x2 matrix and a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 mul(uint2x2 a, uint2x2 b) - { - return uint2x2( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y); - } - - /// Returns the uint2x3 matrix result of a matrix multiplication between a uint2x2 matrix and a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 mul(uint2x2 a, uint2x3 b) - { - return uint2x3( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y); - } - - /// Returns the uint2x4 matrix result of a matrix multiplication between a uint2x2 matrix and a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 mul(uint2x2 a, uint2x4 b) - { - return uint2x4( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y, - a.c0 * b.c3.x + a.c1 * b.c3.y); - } - - /// Returns the uint2 column vector result of a matrix multiplication between a uint2x3 matrix and a uint3 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 mul(uint2x3 a, uint3 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z; - } - - /// Returns the uint2x2 matrix result of a matrix multiplication between a uint2x3 matrix and a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 mul(uint2x3 a, uint3x2 b) - { - return uint2x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z); - } - - /// Returns the uint2x3 matrix result of a matrix multiplication between a uint2x3 matrix and a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 mul(uint2x3 a, uint3x3 b) - { - return uint2x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z); - } - - /// Returns the uint2x4 matrix result of a matrix multiplication between a uint2x3 matrix and a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 mul(uint2x3 a, uint3x4 b) - { - return uint2x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z); - } - - /// Returns the uint2 column vector result of a matrix multiplication between a uint2x4 matrix and a uint4 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 mul(uint2x4 a, uint4 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z + a.c3 * b.w; - } - - /// Returns the uint2x2 matrix result of a matrix multiplication between a uint2x4 matrix and a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 mul(uint2x4 a, uint4x2 b) - { - return uint2x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w); - } - - /// Returns the uint2x3 matrix result of a matrix multiplication between a uint2x4 matrix and a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 mul(uint2x4 a, uint4x3 b) - { - return uint2x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w); - } - - /// Returns the uint2x4 matrix result of a matrix multiplication between a uint2x4 matrix and a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 mul(uint2x4 a, uint4x4 b) - { - return uint2x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z + a.c3 * b.c3.w); - } - - /// Returns the uint3 column vector result of a matrix multiplication between a uint3x2 matrix and a uint2 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 mul(uint3x2 a, uint2 b) - { - return a.c0 * b.x + a.c1 * b.y; - } - - /// Returns the uint3x2 matrix result of a matrix multiplication between a uint3x2 matrix and a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 mul(uint3x2 a, uint2x2 b) - { - return uint3x2( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y); - } - - /// Returns the uint3x3 matrix result of a matrix multiplication between a uint3x2 matrix and a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 mul(uint3x2 a, uint2x3 b) - { - return uint3x3( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y); - } - - /// Returns the uint3x4 matrix result of a matrix multiplication between a uint3x2 matrix and a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 mul(uint3x2 a, uint2x4 b) - { - return uint3x4( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y, - a.c0 * b.c3.x + a.c1 * b.c3.y); - } - - /// Returns the uint3 column vector result of a matrix multiplication between a uint3x3 matrix and a uint3 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 mul(uint3x3 a, uint3 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z; - } - - /// Returns the uint3x2 matrix result of a matrix multiplication between a uint3x3 matrix and a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 mul(uint3x3 a, uint3x2 b) - { - return uint3x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z); - } - - /// Returns the uint3x3 matrix result of a matrix multiplication between a uint3x3 matrix and a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 mul(uint3x3 a, uint3x3 b) - { - return uint3x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z); - } - - /// Returns the uint3x4 matrix result of a matrix multiplication between a uint3x3 matrix and a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 mul(uint3x3 a, uint3x4 b) - { - return uint3x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z); - } - - /// Returns the uint3 column vector result of a matrix multiplication between a uint3x4 matrix and a uint4 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 mul(uint3x4 a, uint4 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z + a.c3 * b.w; - } - - /// Returns the uint3x2 matrix result of a matrix multiplication between a uint3x4 matrix and a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 mul(uint3x4 a, uint4x2 b) - { - return uint3x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w); - } - - /// Returns the uint3x3 matrix result of a matrix multiplication between a uint3x4 matrix and a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 mul(uint3x4 a, uint4x3 b) - { - return uint3x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w); - } - - /// Returns the uint3x4 matrix result of a matrix multiplication between a uint3x4 matrix and a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 mul(uint3x4 a, uint4x4 b) - { - return uint3x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z + a.c3 * b.c3.w); - } - - /// Returns the uint4 column vector result of a matrix multiplication between a uint4x2 matrix and a uint2 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 mul(uint4x2 a, uint2 b) - { - return a.c0 * b.x + a.c1 * b.y; - } - - /// Returns the uint4x2 matrix result of a matrix multiplication between a uint4x2 matrix and a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 mul(uint4x2 a, uint2x2 b) - { - return uint4x2( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y); - } - - /// Returns the uint4x3 matrix result of a matrix multiplication between a uint4x2 matrix and a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 mul(uint4x2 a, uint2x3 b) - { - return uint4x3( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y); - } - - /// Returns the uint4x4 matrix result of a matrix multiplication between a uint4x2 matrix and a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 mul(uint4x2 a, uint2x4 b) - { - return uint4x4( - a.c0 * b.c0.x + a.c1 * b.c0.y, - a.c0 * b.c1.x + a.c1 * b.c1.y, - a.c0 * b.c2.x + a.c1 * b.c2.y, - a.c0 * b.c3.x + a.c1 * b.c3.y); - } - - /// Returns the uint4 column vector result of a matrix multiplication between a uint4x3 matrix and a uint3 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 mul(uint4x3 a, uint3 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z; - } - - /// Returns the uint4x2 matrix result of a matrix multiplication between a uint4x3 matrix and a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 mul(uint4x3 a, uint3x2 b) - { - return uint4x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z); - } - - /// Returns the uint4x3 matrix result of a matrix multiplication between a uint4x3 matrix and a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 mul(uint4x3 a, uint3x3 b) - { - return uint4x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z); - } - - /// Returns the uint4x4 matrix result of a matrix multiplication between a uint4x3 matrix and a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 mul(uint4x3 a, uint3x4 b) - { - return uint4x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z); - } - - /// Returns the uint4 column vector result of a matrix multiplication between a uint4x4 matrix and a uint4 column vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 mul(uint4x4 a, uint4 b) - { - return a.c0 * b.x + a.c1 * b.y + a.c2 * b.z + a.c3 * b.w; - } - - /// Returns the uint4x2 matrix result of a matrix multiplication between a uint4x4 matrix and a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 mul(uint4x4 a, uint4x2 b) - { - return uint4x2( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w); - } - - /// Returns the uint4x3 matrix result of a matrix multiplication between a uint4x4 matrix and a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 mul(uint4x4 a, uint4x3 b) - { - return uint4x3( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w); - } - - /// Returns the uint4x4 matrix result of a matrix multiplication between a uint4x4 matrix and a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 mul(uint4x4 a, uint4x4 b) - { - return uint4x4( - a.c0 * b.c0.x + a.c1 * b.c0.y + a.c2 * b.c0.z + a.c3 * b.c0.w, - a.c0 * b.c1.x + a.c1 * b.c1.y + a.c2 * b.c1.z + a.c3 * b.c1.w, - a.c0 * b.c2.x + a.c1 * b.c2.y + a.c2 * b.c2.z + a.c3 * b.c2.w, - a.c0 * b.c3.x + a.c1 * b.c3.y + a.c2 * b.c3.z + a.c3 * b.c3.w); - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/quaternion.cs b/Economy.Shared/Unity.Mathematics/quaternion.cs deleted file mode 100644 index 3f9a44767..000000000 --- a/Economy.Shared/Unity.Mathematics/quaternion.cs +++ /dev/null @@ -1,610 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using static Unity.Mathematics.math; - -namespace Unity.Mathematics -{ - [Serializable] - public partial struct quaternion : System.IEquatable, IFormattable - { - public float4 value; - - /// A quaternion representing the identity transform. - public static readonly quaternion identity = new quaternion(0.0f, 0.0f, 0.0f, 1.0f); - - /// Constructs a quaternion from four float values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public quaternion(float x, float y, float z, float w) { value.x = x; value.y = y; value.z = z; value.w = w; } - - /// Constructs a quaternion from float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public quaternion(float4 value) { this.value = value; } - - /// Implicitly converts a float4 vector to a quaternion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator quaternion(float4 v) { return new quaternion(v); } - - /// Constructs a unit quaternion from a float3x3 rotation matrix. The matrix must be orthonormal. - public quaternion(float3x3 m) - { - float3 u = m.c0; - float3 v = m.c1; - float3 w = m.c2; - - uint u_sign = (asuint(u.x) & 0x80000000); - float t = v.y + asfloat(asuint(w.z) ^ u_sign); - uint4 u_mask = uint4((int)u_sign >> 31); - uint4 t_mask = uint4(asint(t) >> 31); - - float tr = 1.0f + abs(u.x); - - uint4 sign_flips = uint4(0x00000000, 0x80000000, 0x80000000, 0x80000000) ^ (u_mask & uint4(0x00000000, 0x80000000, 0x00000000, 0x80000000)) ^ (t_mask & uint4(0x80000000, 0x80000000, 0x80000000, 0x00000000)); - - value = float4(tr, u.y, w.x, v.z) + asfloat(asuint(float4(t, v.x, u.z, w.y)) ^ sign_flips); // +---, +++-, ++-+, +-++ - - value = asfloat((asuint(value) & ~u_mask) | (asuint(value.zwxy) & u_mask)); - value = asfloat((asuint(value.wzyx) & ~t_mask) | (asuint(value) & t_mask)); - value = normalize(value); - } - - /// Constructs a unit quaternion from an orthonormal float4x4 matrix. - public quaternion(float4x4 m) - { - float4 u = m.c0; - float4 v = m.c1; - float4 w = m.c2; - - uint u_sign = (asuint(u.x) & 0x80000000); - float t = v.y + asfloat(asuint(w.z) ^ u_sign); - uint4 u_mask = uint4((int)u_sign >> 31); - uint4 t_mask = uint4(asint(t) >> 31); - - float tr = 1.0f + abs(u.x); - - uint4 sign_flips = uint4(0x00000000, 0x80000000, 0x80000000, 0x80000000) ^ (u_mask & uint4(0x00000000, 0x80000000, 0x00000000, 0x80000000)) ^ (t_mask & uint4(0x80000000, 0x80000000, 0x80000000, 0x00000000)); - - value = float4(tr, u.y, w.x, v.z) + asfloat(asuint(float4(t, v.x, u.z, w.y)) ^ sign_flips); // +---, +++-, ++-+, +-++ - - value = asfloat((asuint(value) & ~u_mask) | (asuint(value.zwxy) & u_mask)); - value = asfloat((asuint(value.wzyx) & ~t_mask) | (asuint(value) & t_mask)); - - value = normalize(value); - } - - /// - /// Returns a quaternion representing a rotation around a unit axis by an angle in radians. - /// The rotation direction is clockwise when looking along the rotation axis towards the origin. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion AxisAngle(float3 axis, float angle) - { - float sina, cosa; - math.sincos(0.5f * angle, out sina, out cosa); - return quaternion(float4(axis * sina, cosa)); - } - - /// - /// Returns a quaternion constructed by first performing a rotation around the x-axis, then the y-axis and finally the z-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - public static quaternion EulerXYZ(float3 xyz) - { - // return mul(rotateZ(xyz.z), mul(rotateY(xyz.y), rotateX(xyz.x))); - float3 s, c; - sincos(0.5f * xyz, out s, out c); - return quaternion( - // s.x * c.y * c.z - s.y * s.z * c.x, - // s.y * c.x * c.z + s.x * s.z * c.y, - // s.z * c.x * c.y - s.x * s.y * c.z, - // c.x * c.y * c.z + s.y * s.z * s.x - float4(s.xyz, c.x) * c.yxxy * c.zzyz + s.yxxy * s.zzyz * float4(c.xyz, s.x) * float4(-1.0f, 1.0f, -1.0f, 1.0f) - ); - } - - /// - /// Returns a quaternion constructed by first performing a rotation around the x-axis, then the z-axis and finally the y-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - public static quaternion EulerXZY(float3 xyz) - { - // return mul(rotateY(xyz.y), mul(rotateZ(xyz.z), rotateX(xyz.x))); - float3 s, c; - sincos(0.5f * xyz, out s, out c); - return quaternion( - // s.x * c.y * c.z + s.y * s.z * c.x, - // s.y * c.x * c.z + s.x * s.z * c.y, - // s.z * c.x * c.y - s.x * s.y * c.z, - // c.x * c.y * c.z - s.y * s.z * s.x - float4(s.xyz, c.x) * c.yxxy * c.zzyz + s.yxxy * s.zzyz * float4(c.xyz, s.x) * float4(1.0f, 1.0f, -1.0f, -1.0f) - ); - } - - /// - /// Returns a quaternion constructed by first performing a rotation around the y-axis, then the x-axis and finally the z-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - public static quaternion EulerYXZ(float3 xyz) - { - // return mul(rotateZ(xyz.z), mul(rotateX(xyz.x), rotateY(xyz.y))); - float3 s, c; - sincos(0.5f * xyz, out s, out c); - return quaternion( - // s.x * c.y * c.z - s.y * s.z * c.x, - // s.y * c.x * c.z + s.x * s.z * c.y, - // s.z * c.x * c.y + s.x * s.y * c.z, - // c.x * c.y * c.z - s.y * s.z * s.x - float4(s.xyz, c.x) * c.yxxy * c.zzyz + s.yxxy * s.zzyz * float4(c.xyz, s.x) * float4(-1.0f, 1.0f, 1.0f, -1.0f) - ); - } - - /// - /// Returns a quaternion constructed by first performing a rotation around the y-axis, then the z-axis and finally the x-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - public static quaternion EulerYZX(float3 xyz) - { - // return mul(rotateX(xyz.x), mul(rotateZ(xyz.z), rotateY(xyz.y))); - float3 s, c; - sincos(0.5f * xyz, out s, out c); - return quaternion( - // s.x * c.y * c.z - s.y * s.z * c.x, - // s.y * c.x * c.z - s.x * s.z * c.y, - // s.z * c.x * c.y + s.x * s.y * c.z, - // c.x * c.y * c.z + s.y * s.z * s.x - float4(s.xyz, c.x) * c.yxxy * c.zzyz + s.yxxy * s.zzyz * float4(c.xyz, s.x) * float4(-1.0f, -1.0f, 1.0f, 1.0f) - ); - } - - /// - /// Returns a quaternion constructed by first performing a rotation around the z-axis, then the x-axis and finally the y-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// This is the default order rotation order in Unity. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - public static quaternion EulerZXY(float3 xyz) - { - // return mul(rotateY(xyz.y), mul(rotateX(xyz.x), rotateZ(xyz.z))); - float3 s, c; - sincos(0.5f * xyz, out s, out c); - return quaternion( - // s.x * c.y * c.z + s.y * s.z * c.x, - // s.y * c.x * c.z - s.x * s.z * c.y, - // s.z * c.x * c.y - s.x * s.y * c.z, - // c.x * c.y * c.z + s.y * s.z * s.x - float4(s.xyz, c.x) * c.yxxy * c.zzyz + s.yxxy * s.zzyz * float4(c.xyz, s.x) * float4(1.0f, -1.0f, -1.0f, 1.0f) - ); - } - - /// - /// Returns a quaternion constructed by first performing a rotation around the z-axis, then the y-axis and finally the x-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - public static quaternion EulerZYX(float3 xyz) - { - // return mul(rotateX(xyz.x), mul(rotateY(xyz.y), rotateZ(xyz.z))); - float3 s, c; - sincos(0.5f * xyz, out s, out c); - return quaternion( - // s.x * c.y * c.z + s.y * s.z * c.x, - // s.y * c.x * c.z - s.x * s.z * c.y, - // s.z * c.x * c.y + s.x * s.y * c.z, - // c.x * c.y * c.z - s.y * s.x * s.z - float4(s.xyz, c.x) * c.yxxy * c.zzyz + s.yxxy * s.zzyz * float4(c.xyz, s.x) * float4(1.0f, -1.0f, 1.0f, -1.0f) - ); - } - - /// - /// Returns a quaternion constructed by first performing a rotation around the x-axis, then the y-axis and finally the z-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion EulerXYZ(float x, float y, float z) { return EulerXYZ(float3(x, y, z)); } - - /// - /// Returns a quaternion constructed by first performing a rotation around the x-axis, then the z-axis and finally the y-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion EulerXZY(float x, float y, float z) { return EulerXZY(float3(x, y, z)); } - - /// - /// Returns a quaternion constructed by first performing a rotation around the y-axis, then the x-axis and finally the z-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion EulerYXZ(float x, float y, float z) { return EulerYXZ(float3(x, y, z)); } - - /// - /// Returns a quaternion constructed by first performing a rotation around the y-axis, then the z-axis and finally the x-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion EulerYZX(float x, float y, float z) { return EulerYZX(float3(x, y, z)); } - - /// - /// Returns a quaternion constructed by first performing a rotation around the z-axis, then the x-axis and finally the y-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// This is the default order rotation order in Unity. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion EulerZXY(float x, float y, float z) { return EulerZXY(float3(x, y, z)); } - - /// - /// Returns a quaternion constructed by first performing a rotation around the z-axis, then the y-axis and finally the x-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion EulerZYX(float x, float y, float z) { return EulerZYX(float3(x, y, z)); } - - /// - /// Returns a quaternion constructed by first performing 3 rotations around the principal axes in a given order. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// When the rotation order is known at compile time, it is recommended for performance reasons to use specific - /// Euler rotation constructors such as EulerZXY(...). - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - /// The order in which the rotations are applied. - public static quaternion Euler(float3 xyz, RotationOrder order = RotationOrder.ZXY) - { - switch (order) - { - case RotationOrder.XYZ: - return EulerXYZ(xyz); - case RotationOrder.XZY: - return EulerXZY(xyz); - case RotationOrder.YXZ: - return EulerYXZ(xyz); - case RotationOrder.YZX: - return EulerYZX(xyz); - case RotationOrder.ZXY: - return EulerZXY(xyz); - case RotationOrder.ZYX: - return EulerZYX(xyz); - default: - return quaternion.identity; - } - } - - /// - /// Returns a quaternion constructed by first performing 3 rotations around the principal axes in a given order. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// When the rotation order is known at compile time, it is recommended for performance reasons to use specific - /// Euler rotation constructors such as EulerZXY(...). - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - /// The order in which the rotations are applied. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion Euler(float x, float y, float z, RotationOrder order = RotationOrder.Default) - { - return Euler(float3(x, y, z), order); - } - - /// Returns a float4x4 matrix that rotates around the x-axis by a given number of radians. - /// The clockwise rotation angle when looking along the x-axis towards the origin in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion RotateX(float angle) - { - float sina, cosa; - math.sincos(0.5f * angle, out sina, out cosa); - return quaternion(sina, 0.0f, 0.0f, cosa); - } - - /// Returns a float4x4 matrix that rotates around the y-axis by a given number of radians. - /// The clockwise rotation angle when looking along the y-axis towards the origin in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion RotateY(float angle) - { - float sina, cosa; - math.sincos(0.5f * angle, out sina, out cosa); - return quaternion(0.0f, sina, 0.0f, cosa); - } - - /// Returns a float4x4 matrix that rotates around the z-axis by a given number of radians. - /// The clockwise rotation angle when looking along the z-axis towards the origin in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion RotateZ(float angle) - { - float sina, cosa; - math.sincos(0.5f * angle, out sina, out cosa); - return quaternion(0.0f, 0.0f, sina, cosa); - } - - /// - /// Returns a quaternion view rotation given a unit length forward vector and a unit length up vector. - /// The two input vectors are assumed to be unit length and not collinear. - /// If these assumptions are not met use float3x3.LookRotationSafe instead. - /// - public static quaternion LookRotation(float3 forward, float3 up) - { - float3 t = normalize(cross(up, forward)); - return quaternion(float3x3(t, cross(forward, t), forward)); - } - - /// - /// Returns a quaternion view rotation given a forward vector and an up vector. - /// The two input vectors are not assumed to be unit length. - /// If the magnitude of either of the vectors is so extreme that the calculation cannot be carried out reliably or the vectors are collinear, - /// the identity will be returned instead. - /// - public static quaternion LookRotationSafe(float3 forward, float3 up) - { - float forwardLengthSq = dot(forward, forward); - float upLengthSq = dot(up, up); - - forward *= rsqrt(forwardLengthSq); - up *= rsqrt(upLengthSq); - - float3 t = cross(up, forward); - float tLengthSq = dot(t, t); - t *= rsqrt(tLengthSq); - - float mn = min(min(forwardLengthSq, upLengthSq), tLengthSq); - float mx = max(max(forwardLengthSq, upLengthSq), tLengthSq); - - bool accept = mn > 1e-35f && mx < 1e35f && isfinite(forwardLengthSq) && isfinite(upLengthSq) && isfinite(tLengthSq); - return quaternion(select(float4(0.0f, 0.0f, 0.0f, 1.0f), quaternion(float3x3(t, cross(forward, t),forward)).value, accept)); - } - - /// Returns true if the quaternion is equal to a given quaternion, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(quaternion x) { return value.x == x.value.x && value.y == x.value.y && value.z == x.value.z && value.w == x.value.w; } - - /// Returns whether true if the quaternion is equal to a given quaternion, false otherwise. - public override bool Equals(object x) { return Equals((quaternion)x); } - - /// Returns a hash code for the quaternion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - /// Returns a string representation of the quaternion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("quaternion({0}f, {1}f, {2}f, {3}f)", value.x, value.y, value.z, value.w); - } - - /// Returns a string representation of the quaternion using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("quaternion({0}f, {1}f, {2}f, {3}f)", value.x.ToString(format, formatProvider), value.y.ToString(format, formatProvider), value.z.ToString(format, formatProvider), value.w.ToString(format, formatProvider)); - } - } - - public static partial class math - { - /// Returns a quaternion constructed from four float values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion quaternion(float x, float y, float z, float w) { return new quaternion(x, y, z, w); } - - /// Returns a quaternion constructed from a float4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion quaternion(float4 value) { return new quaternion(value); } - - /// Returns a unit quaternion constructed from a float3x3 rotation matrix. The matrix must be orthonormal. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion quaternion(float3x3 m) { return new quaternion(m); } - - /// Returns a unit quaternion constructed from a float4x4 matrix. The matrix must be orthonormal. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion quaternion(float4x4 m) { return new quaternion(m); } - - /// Returns the conjugate of a quaternion value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion conjugate(quaternion q) - { - return quaternion(q.value * float4(-1.0f, -1.0f, -1.0f, 1.0f)); - } - - /// Returns the inverse of a quaternion value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion inverse(quaternion q) - { - float4 x = q.value; - return quaternion(rcp(dot(x, x)) * x * float4(-1.0f, -1.0f, -1.0f, 1.0f)); - } - - /// Returns the dot product of two quaternions. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float dot(quaternion a, quaternion b) - { - return dot(a.value, b.value); - } - - /// Returns the length of a quaternion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float length(quaternion q) - { - return sqrt(dot(q.value, q.value)); - } - - /// Returns the squared length of a quaternion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float lengthsq(quaternion q) - { - return dot(q.value, q.value); - } - - /// Returns a normalized version of a quaternion q by scaling it by 1 / length(q). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion normalize(quaternion q) - { - float4 x = q.value; - return quaternion(rsqrt(dot(x, x)) * x); - } - - /// - /// Returns a safe normalized version of the q by scaling it by 1 / length(q). - /// Returns the identity when 1 / length(q) does not produce a finite number. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion normalizesafe(quaternion q) - { - float4 x = q.value; - float len = math.dot(x, x); - return quaternion(math.select(Mathematics.quaternion.identity.value, x * math.rsqrt(len), len > FLT_MIN_NORMAL)); - } - - /// - /// Returns a safe normalized version of the q by scaling it by 1 / length(q). - /// Returns the given default value when 1 / length(q) does not produce a finite number. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion normalizesafe(quaternion q, quaternion defaultvalue) - { - float4 x = q.value; - float len = math.dot(x, x); - return quaternion(math.select(defaultvalue.value, x * math.rsqrt(len), len > FLT_MIN_NORMAL)); - } - - /// Returns the natural exponent of a quaternion. Assumes w is zero. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion unitexp(quaternion q) - { - float v_rcp_len = rsqrt(dot(q.value.xyz, q.value.xyz)); - float v_len = rcp(v_rcp_len); - float sin_v_len, cos_v_len; - sincos(v_len, out sin_v_len, out cos_v_len); - return quaternion(float4(q.value.xyz * v_rcp_len * sin_v_len, cos_v_len)); - } - - /// Returns the natural exponent of a quaternion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion exp(quaternion q) - { - float v_rcp_len = rsqrt(dot(q.value.xyz, q.value.xyz)); - float v_len = rcp(v_rcp_len); - float sin_v_len, cos_v_len; - sincos(v_len, out sin_v_len, out cos_v_len); - return quaternion(float4(q.value.xyz * v_rcp_len * sin_v_len, cos_v_len) * exp(q.value.w)); - } - - /// Returns the natural logarithm of a unit length quaternion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion unitlog(quaternion q) - { - float w = clamp(q.value.w, -1.0f, 1.0f); - float s = acos(w) * rsqrt(1.0f - w*w); - return quaternion(float4(q.value.xyz * s, 0.0f)); - } - - /// Returns the natural logarithm of a quaternion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion log(quaternion q) - { - float v_len_sq = dot(q.value.xyz, q.value.xyz); - float q_len_sq = v_len_sq + q.value.w*q.value.w; - - float s = acos(clamp(q.value.w * rsqrt(q_len_sq), -1.0f, 1.0f)) * rsqrt(v_len_sq); - return quaternion(float4(q.value.xyz * s, 0.5f * log(q_len_sq))); - } - - /// Returns the result of transforming the quaternion b by the quaternion a. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion mul(quaternion a, quaternion b) - { - return quaternion(a.value.wwww * b.value + (a.value.xyzx * b.value.wwwx + a.value.yzxy * b.value.zxyy) * float4(1.0f, 1.0f, 1.0f, -1.0f) - a.value.zxyz * b.value.yzxz); - } - - /// Returns the result of transforming a vector by a quaternion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 mul(quaternion q, float3 v) - { - float3 t = 2 * cross(q.value.xyz, v); - return v + q.value.w * t + cross(q.value.xyz, t); - } - - /// Returns the result of rotating a vector by a unit quaternion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 rotate(quaternion q, float3 v) - { - float3 t = 2 * cross(q.value.xyz, v); - return v + q.value.w * t + cross(q.value.xyz, t); - } - - /// Returns the result of a normalized linear interpolation between two quaternions q1 and a2 using an interpolation parameter t. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion nlerp(quaternion q1, quaternion q2, float t) - { - float dt = dot(q1, q2); - if(dt < 0.0f) - { - q2.value = -q2.value; - } - - return normalize(quaternion(lerp(q1.value, q2.value, t))); - } - - /// Returns the result of a spherical interpolation between two quaternions q1 and a2 using an interpolation parameter t. - public static quaternion slerp(quaternion q1, quaternion q2, float t) - { - float dt = dot(q1, q2); - if (dt < 0.0f) - { - dt = -dt; - q2.value = -q2.value; - } - - if (dt < 0.9995f) - { - float angle = acos(dt); - float s = rsqrt(1.0f - dt * dt); // 1.0f / sin(angle) - float w1 = sin(angle * (1.0f - t)) * s; - float w2 = sin(angle * t) * s; - return quaternion(q1.value * w1 + q2.value * w2); - } - else - { - // if the angle is small, use linear interpolation - return nlerp(q1, q2, t); - } - } - - /// Returns a uint hash code of a quaternion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(quaternion q) - { - return hash(q.value); - } - - /// - /// Returns a uint4 vector hash code of a quaternion. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(quaternion q) - { - return hashwide(q.value); - } - - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 forward(quaternion q) { return mul(q, float3(0, 0, 1)); } // for compatibility - } -} diff --git a/Economy.Shared/Unity.Mathematics/random.cs b/Economy.Shared/Unity.Mathematics/random.cs deleted file mode 100644 index d565fc16b..000000000 --- a/Economy.Shared/Unity.Mathematics/random.cs +++ /dev/null @@ -1,567 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using static Unity.Mathematics.math; -using System.Diagnostics; - -namespace Unity.Mathematics -{ - /// - /// Random Number Generator based on xorshift. - /// Designed for minimal state (32bits) to be easily embeddable into components. - /// Core functionality is integer multiplication free to improve vectorization - /// on less capable SIMD instruction sets. - /// - [Serializable] - public partial struct Random - { - public uint state; - - /// - /// Constructs a Random instance with a given seed value. The seed must be non-zero. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public Random(uint seed) - { - state = seed; - CheckInitState(); - NextState(); - } - - /// - /// Initialized the state of the Random instance with a given seed value. The seed must be non-zero. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public void InitState(uint seed = 0x6E624EB7u) - { - state = seed; - NextState(); - } - - /// Returns a uniformly random bool value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool NextBool() - { - return (NextState() & 1) == 1; - } - - /// Returns a uniformly random bool2 value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool2 NextBool2() - { - uint v = NextState(); - return (uint2(v) & uint2(1, 2)) == 0; - } - - /// Returns a uniformly random bool3 value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3 NextBool3() - { - uint v = NextState(); - return (uint3(v) & uint3(1, 2, 4)) == 0; - } - - /// Returns a uniformly random bool4 value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4 NextBool4() - { - uint v = NextState(); - return (uint4(v) & uint4(1, 2, 4, 8)) == 0; - } - - - /// Returns a uniformly random int value in the interval [-2147483647, 2147483647]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int NextInt() - { - return (int)NextState() ^ -2147483648; - } - - /// Returns a uniformly random int2 value with all components in the interval [-2147483647, 2147483647]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2 NextInt2() - { - return int2((int)NextState(), (int)NextState()) ^ -2147483648; - } - - /// Returns a uniformly random int3 value with all components in the interval [-2147483647, 2147483647]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3 NextInt3() - { - return int3((int)NextState(), (int)NextState(), (int)NextState()) ^ -2147483648; - } - - /// Returns a uniformly random int4 value with all components in the interval [-2147483647, 2147483647]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4 NextInt4() - { - return int4((int)NextState(), (int)NextState(), (int)NextState(), (int)NextState()) ^ -2147483648; - } - - /// Returns a uniformly random int value in the interval [0, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int NextInt(int max) - { - CheckNextIntMax(max); - return (int)((NextState() * (ulong)max) >> 32); - } - - /// Returns a uniformly random int2 value with all components in the interval [0, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2 NextInt2(int2 max) - { - CheckNextIntMax(max.x); - CheckNextIntMax(max.y); - return int2((int)(NextState() * (ulong)max.x >> 32), - (int)(NextState() * (ulong)max.y >> 32)); - } - - /// Returns a uniformly random int3 value with all components in the interval [0, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3 NextInt3(int3 max) - { - CheckNextIntMax(max.x); - CheckNextIntMax(max.y); - CheckNextIntMax(max.z); - return int3((int)(NextState() * (ulong)max.x >> 32), - (int)(NextState() * (ulong)max.y >> 32), - (int)(NextState() * (ulong)max.z >> 32)); - } - - /// Returns a uniformly random int4 value with all components in the interval [0, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4 NextInt4(int4 max) - { - CheckNextIntMax(max.x); - CheckNextIntMax(max.y); - CheckNextIntMax(max.z); - CheckNextIntMax(max.w); - return int4((int)(NextState() * (ulong)max.x >> 32), - (int)(NextState() * (ulong)max.y >> 32), - (int)(NextState() * (ulong)max.z >> 32), - (int)(NextState() * (ulong)max.w >> 32)); - } - - /// Returns a uniformly random int value in the interval [min, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int NextInt(int min, int max) - { - CheckNextIntMinMax(min, max); - uint range = (uint)(max - min); - return (int)(NextState() * (ulong)range >> 32) + min; - } - - /// Returns a uniformly random int2 value with all components in the interval [min, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2 NextInt2(int2 min, int2 max) - { - CheckNextIntMinMax(min.x, max.x); - CheckNextIntMinMax(min.y, max.y); - uint2 range = (uint2)(max - min); - return int2((int)(NextState() * (ulong)range.x >> 32), - (int)(NextState() * (ulong)range.y >> 32)) + min; - } - - /// Returns a uniformly random int3 value with all components in the interval [min, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3 NextInt3(int3 min, int3 max) - { - CheckNextIntMinMax(min.x, max.x); - CheckNextIntMinMax(min.y, max.y); - CheckNextIntMinMax(min.z, max.z); - uint3 range = (uint3)(max - min); - return int3((int)(NextState() * (ulong)range.x >> 32), - (int)(NextState() * (ulong)range.y >> 32), - (int)(NextState() * (ulong)range.z >> 32)) + min; - } - - /// Returns a uniformly random int4 value with all components in the interval [min, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4 NextInt4(int4 min, int4 max) - { - CheckNextIntMinMax(min.x, max.x); - CheckNextIntMinMax(min.y, max.y); - CheckNextIntMinMax(min.z, max.z); - CheckNextIntMinMax(min.w, max.w); - uint4 range = (uint4)(max - min); - return int4((int)(NextState() * (ulong)range.x >> 32), - (int)(NextState() * (ulong)range.y >> 32), - (int)(NextState() * (ulong)range.z >> 32), - (int)(NextState() * (ulong)range.w >> 32)) + min; - } - - /// Returns a uniformly random uint value in the interval [0, 4294967294]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint NextUInt() - { - return NextState() - 1u; - } - - /// Returns a uniformly random uint2 value with all components in the interval [0, 4294967294]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2 NextUInt2() - { - return uint2(NextState(), NextState()) - 1u; - } - - /// Returns a uniformly random uint3 value with all components in the interval [0, 4294967294]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3 NextUInt3() - { - return uint3(NextState(), NextState(), NextState()) - 1u; - } - - /// Returns a uniformly random uint4 value with all components in the interval [0, 4294967294]. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4 NextUInt4() - { - return uint4(NextState(), NextState(), NextState(), NextState()) - 1u; - } - - - /// Returns a uniformly random uint value in the interval [0, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint NextUInt(uint max) - { - return (uint)((NextState() * (ulong)max) >> 32); - } - - /// Returns a uniformly random uint2 value with all components in the interval [0, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2 NextUInt2(uint2 max) - { - return uint2( (uint)(NextState() * (ulong)max.x >> 32), - (uint)(NextState() * (ulong)max.y >> 32)); - } - - /// Returns a uniformly random uint3 value with all components in the interval [0, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3 NextUInt3(uint3 max) - { - return uint3( (uint)(NextState() * (ulong)max.x >> 32), - (uint)(NextState() * (ulong)max.y >> 32), - (uint)(NextState() * (ulong)max.z >> 32)); - } - - /// Returns a uniformly random uint4 value with all components in the interval [0, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4 NextUInt4(uint4 max) - { - return uint4( (uint)(NextState() * (ulong)max.x >> 32), - (uint)(NextState() * (ulong)max.y >> 32), - (uint)(NextState() * (ulong)max.z >> 32), - (uint)(NextState() * (ulong)max.w >> 32)); - } - - /// Returns a uniformly random uint value in the interval [min, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint NextUInt(uint min, uint max) - { - CheckNextUIntMinMax(min, max); - uint range = max - min; - return (uint)(NextState() * (ulong)range >> 32) + min; - } - - /// Returns a uniformly random uint2 value with all components in the interval [min, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2 NextUInt2(uint2 min, uint2 max) - { - CheckNextUIntMinMax(min.x, max.x); - CheckNextUIntMinMax(min.y, max.y); - uint2 range = max - min; - return uint2((uint)(NextState() * (ulong)range.x >> 32), - (uint)(NextState() * (ulong)range.y >> 32)) + min; - } - - /// Returns a uniformly random uint3 value with all components in the interval [min, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3 NextUInt3(uint3 min, uint3 max) - { - CheckNextUIntMinMax(min.x, max.x); - CheckNextUIntMinMax(min.y, max.y); - CheckNextUIntMinMax(min.z, max.z); - uint3 range = max - min; - return uint3((uint)(NextState() * (ulong)range.x >> 32), - (uint)(NextState() * (ulong)range.y >> 32), - (uint)(NextState() * (ulong)range.z >> 32)) + min; - } - - /// Returns a uniformly random uint4 value with all components in the interval [min, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4 NextUInt4(uint4 min, uint4 max) - { - CheckNextUIntMinMax(min.x, max.x); - CheckNextUIntMinMax(min.y, max.y); - CheckNextUIntMinMax(min.z, max.z); - CheckNextUIntMinMax(min.w, max.w); - uint4 range = (uint4)(max - min); - return uint4((uint)(NextState() * (ulong)range.x >> 32), - (uint)(NextState() * (ulong)range.y >> 32), - (uint)(NextState() * (ulong)range.z >> 32), - (uint)(NextState() * (ulong)range.w >> 32)) + min; - } - - /// Returns a uniformly random float value in the interval [0, 1). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float NextFloat() - { - return asfloat(0x3f800000 | (NextState() >> 9)) - 1.0f; - } - - /// Returns a uniformly random float2 value with all components in the interval [0, 1). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2 NextFloat2() - { - return asfloat(0x3f800000 | (uint2(NextState(), NextState()) >> 9)) - 1.0f; - } - - /// Returns a uniformly random float3 value with all components in the interval [0, 1). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3 NextFloat3() - { - return asfloat(0x3f800000 | (uint3(NextState(), NextState(), NextState()) >> 9)) - 1.0f; - } - - /// Returns a uniformly random float4 value with all components in the interval [0, 1). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4 NextFloat4() - { - return asfloat(0x3f800000 | (uint4(NextState(), NextState(), NextState(), NextState()) >> 9)) - 1.0f; - } - - - /// Returns a uniformly random float value in the interval [0, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float NextFloat(float max) { return NextFloat() * max; } - - /// Returns a uniformly random float2 value with all components in the interval [0, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2 NextFloat2(float2 max) { return NextFloat2() * max; } - - /// Returns a uniformly random float3 value with all components in the interval [0, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3 NextFloat3(float3 max) { return NextFloat3() * max; } - - /// Returns a uniformly random float4 value with all components in the interval [0, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4 NextFloat4(float4 max) { return NextFloat4() * max; } - - - /// Returns a uniformly random float value in the interval [min, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float NextFloat(float min, float max) { return NextFloat() * (max - min) + min; } - - /// Returns a uniformly random float2 value with all components in the interval [min, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2 NextFloat2(float2 min, float2 max) { return NextFloat2() * (max - min) + min; } - - /// Returns a uniformly random float3 value with all components in the interval [min, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3 NextFloat3(float3 min, float3 max) { return NextFloat3() * (max - min) + min; } - - /// Returns a uniformly random float4 value with all components in the interval [min, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4 NextFloat4(float4 min, float4 max) { return NextFloat4() * (max - min) + min; } - - - - /// Returns a uniformly random double value in the interval [0, 1). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double NextDouble() - { - ulong sx = ((ulong)NextState() << 20) ^ NextState(); - return asdouble(0x3ff0000000000000 | sx) - 1.0; - } - - /// Returns a uniformly random double2 value with all components in the interval [0, 1). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2 NextDouble2() - { - ulong sx = ((ulong)NextState() << 20) ^ NextState(); - ulong sy = ((ulong)NextState() << 20) ^ NextState(); - return double2(asdouble(0x3ff0000000000000 | sx), - asdouble(0x3ff0000000000000 | sy)) - 1.0; - } - - /// Returns a uniformly random double3 value with all components in the interval [0, 1). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3 NextDouble3() - { - ulong sx = ((ulong)NextState() << 20) ^ NextState(); - ulong sy = ((ulong)NextState() << 20) ^ NextState(); - ulong sz = ((ulong)NextState() << 20) ^ NextState(); - return double3(asdouble(0x3ff0000000000000 | sx), - asdouble(0x3ff0000000000000 | sy), - asdouble(0x3ff0000000000000 | sz)) - 1.0; - } - - /// Returns a uniformly random double4 value with all components in the interval [0, 1). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4 NextDouble4() - { - ulong sx = ((ulong)NextState() << 20) ^ NextState(); - ulong sy = ((ulong)NextState() << 20) ^ NextState(); - ulong sz = ((ulong)NextState() << 20) ^ NextState(); - ulong sw = ((ulong)NextState() << 20) ^ NextState(); - return double4(asdouble(0x3ff0000000000000 | sx), - asdouble(0x3ff0000000000000 | sy), - asdouble(0x3ff0000000000000 | sz), - asdouble(0x3ff0000000000000 | sw)) - 1.0; - } - - - /// Returns a uniformly random double value in the interval [0, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double NextDouble(double max) { return NextDouble() * max; } - - /// Returns a uniformly random double2 value with all components in the interval [0, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2 NextDouble2(double2 max) { return NextDouble2() * max; } - - /// Returns a uniformly random double3 value with all components in the interval [0, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3 NextDouble3(double3 max) { return NextDouble3() * max; } - - /// Returns a uniformly random double4 value with all components in the interval [0, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4 NextDouble4(double4 max) { return NextDouble4() * max; } - - - /// Returns a uniformly random double value in the interval [min, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double NextDouble(double min, double max) { return NextDouble() * (max - min) + min; } - - /// Returns a uniformly random double2 value with all components in the interval [min, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2 NextDouble2(double2 min, double2 max) { return NextDouble2() * (max - min) + min; } - - /// Returns a uniformly random double3 value with all components in the interval [min, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3 NextDouble3(double3 min, double3 max) { return NextDouble3() * (max - min) + min; } - - /// Returns a uniformly random double4 value with all components in the interval [min, max). - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double4 NextDouble4(double4 min, double4 max) { return NextDouble4() * (max - min) + min; } - - /// Returns a unit length float2 vector representing a uniformly random 2D direction. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2 NextFloat2Direction() - { - float angle = NextFloat() * PI * 2.0f; - float s, c; - sincos(angle, out s, out c); - return float2(c, s); - } - - /// Returns a unit length double2 vector representing a uniformly random 2D direction. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double2 NextDouble2Direction() - { - double angle = NextDouble() * PI_DBL * 2.0; - double s, c; - sincos(angle, out s, out c); - return double2(c, s); - } - - /// Returns a unit length float3 vector representing a uniformly random 3D direction. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3 NextFloat3Direction() - { - float2 rnd = NextFloat2(); - float z = rnd.x * 2.0f - 1.0f; - float r = sqrt(max(1.0f - z * z, 0.0f)); - float angle = rnd.y * PI * 2.0f; - float s, c; - sincos(angle, out s, out c); - return float3(c*r, s*r, z); - } - - /// Returns a unit length double3 vector representing a uniformly random 3D direction. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public double3 NextDouble3Direction() - { - double2 rnd = NextDouble2(); - double z = rnd.x * 2.0 - 1.0; - double r = sqrt(max(1.0 - z * z, 0.0)); - double angle = rnd.y * PI_DBL * 2.0; - double s, c; - sincos(angle, out s, out c); - return double3(c * r, s * r, z); - } - - /// Returns a unit length quaternion representing a uniformly 3D rotation. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public quaternion NextQuaternionRotation() - { - float3 rnd = NextFloat3(float3(2.0f * PI, 2.0f * PI, 1.0f)); - float u1 = rnd.z; - float2 theta_rho = rnd.xy; - - float i = sqrt(1.0f - u1); - float j = sqrt(u1); - - float2 sin_theta_rho; - float2 cos_theta_rho; - sincos(theta_rho, out sin_theta_rho, out cos_theta_rho); - - quaternion q = quaternion(i * sin_theta_rho.x, i * cos_theta_rho.x, j * sin_theta_rho.y, j * cos_theta_rho.y); - return quaternion(select(q.value, -q.value, q.value.w < 0.0f)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - private uint NextState() - { - CheckState(); - uint t = state; - state ^= state << 13; - state ^= state >> 17; - state ^= state << 5; - return t; - } - - [Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")] - private void CheckInitState() - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if (state == 0) - throw new System.ArgumentException("Seed must be non-zero"); -#endif - } - - [Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")] - private void CheckState() - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if(state == 0) - throw new System.ArgumentException("Invalid state 0. Random object has not been properly initialized"); -#endif - } - - [Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")] - private void CheckNextIntMax(int max) - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if (max < 0) - throw new System.ArgumentException("max must be positive"); -#endif - } - - [Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")] - private void CheckNextIntMinMax(int min, int max) - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if (min > max) - throw new System.ArgumentException("min must be less than or equal to max"); -#endif - } - - [Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")] - private void CheckNextUIntMinMax(uint min, uint max) - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if (min > max) - throw new System.ArgumentException("min must be less than or equal to max"); -#endif - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/rigid_transform.cs b/Economy.Shared/Unity.Mathematics/rigid_transform.cs deleted file mode 100644 index 4ff9c2d8a..000000000 --- a/Economy.Shared/Unity.Mathematics/rigid_transform.cs +++ /dev/null @@ -1,339 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using static Unity.Mathematics.math; - -namespace Unity.Mathematics -{ - public struct RigidTransform - { - public quaternion rot; - public float3 pos; - - /// A RigidTransform representing the identity transform. - public static readonly RigidTransform identity = new RigidTransform(new quaternion(0.0f, 0.0f, 0.0f, 1.0f), new float3(0.0f, 0.0f, 0.0f)); - - /// Constructs a RigidTransform from a rotation represented by a unit quaternion and a translation represented by a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public RigidTransform(quaternion rotation, float3 translation) - { - this.rot = rotation; - this.pos = translation; - } - - /// Constructs a RigidTransform from a rotation represented by a float3x3 matrix and a translation represented by a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public RigidTransform(float3x3 rotation, float3 translation) - { - this.rot = new quaternion(rotation); - this.pos = translation; - } - - /// Constructs a RigidTransform from a float4x4. Assumes the matrix is orthonormal. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public RigidTransform(float4x4 transform) - { - this.rot = new quaternion(transform); - this.pos = transform.c3.xyz; - } - - - /// - /// Returns a RigidTransform representing a rotation around a unit axis by an angle in radians. - /// The rotation direction is clockwise when looking along the rotation axis towards the origin. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform AxisAngle(float3 axis, float angle) { return new RigidTransform(quaternion.AxisAngle(axis, angle), float3.zero); } - - /// - /// Returns a RigidTransform constructed by first performing a rotation around the x-axis, then the y-axis and finally the z-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform EulerXYZ(float3 xyz) { return new RigidTransform(quaternion.EulerXYZ(xyz), float3.zero); } - - /// - /// Returns a RigidTransform constructed by first performing a rotation around the x-axis, then the z-axis and finally the y-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform EulerXZY(float3 xyz) { return new RigidTransform(quaternion.EulerXZY(xyz), float3.zero); } - - /// - /// Returns a RigidTransform constructed by first performing a rotation around the y-axis, then the x-axis and finally the z-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform EulerYXZ(float3 xyz) { return new RigidTransform(quaternion.EulerYXZ(xyz), float3.zero); } - - /// - /// Returns a RigidTransform constructed by first performing a rotation around the y-axis, then the z-axis and finally the x-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform EulerYZX(float3 xyz) { return new RigidTransform(quaternion.EulerYZX(xyz), float3.zero); } - - - /// - /// Returns a RigidTransform constructed by first performing a rotation around the z-axis, then the x-axis and finally the y-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// This is the default order rotation order in Unity. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform EulerZXY(float3 xyz) { return new RigidTransform(quaternion.EulerZXY(xyz), float3.zero); } - - /// - /// Returns a RigidTransform constructed by first performing a rotation around the z-axis, then the y-axis and finally the x-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform EulerZYX(float3 xyz) { return new RigidTransform(quaternion.EulerZYX(xyz), float3.zero); } - - /// - /// Returns a RigidTransform constructed by first performing a rotation around the x-axis, then the y-axis and finally the z-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform EulerXYZ(float x, float y, float z) { return EulerXYZ(float3(x, y, z)); } - - /// - /// Returns a RigidTransform constructed by first performing a rotation around the x-axis, then the z-axis and finally the y-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform EulerXZY(float x, float y, float z) { return EulerXZY(float3(x, y, z)); } - - /// - /// Returns a RigidTransform constructed by first performing a rotation around the y-axis, then the x-axis and finally the z-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform EulerYXZ(float x, float y, float z) { return EulerYXZ(float3(x, y, z)); } - - /// - /// Returns a RigidTransform constructed by first performing a rotation around the y-axis, then the z-axis and finally the x-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform EulerYZX(float x, float y, float z) { return EulerYZX(float3(x, y, z)); } - - /// - /// Returns a RigidTransform constructed by first performing a rotation around the z-axis, then the x-axis and finally the y-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// This is the default order rotation order in Unity. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform EulerZXY(float x, float y, float z) { return EulerZXY(float3(x, y, z)); } - - /// - /// Returns a RigidTransform constructed by first performing a rotation around the z-axis, then the y-axis and finally the x-axis. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform EulerZYX(float x, float y, float z) { return EulerZYX(float3(x, y, z)); } - - /// - /// Returns a RigidTransform constructed by first performing 3 rotations around the principal axes in a given order. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// When the rotation order is known at compile time, it is recommended for performance reasons to use specific - /// Euler rotation constructors such as EulerZXY(...). - /// - /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. - /// The order in which the rotations are applied. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform Euler(float3 xyz, RotationOrder order = RotationOrder.ZXY) - { - switch (order) - { - case RotationOrder.XYZ: - return EulerXYZ(xyz); - case RotationOrder.XZY: - return EulerXZY(xyz); - case RotationOrder.YXZ: - return EulerYXZ(xyz); - case RotationOrder.YZX: - return EulerYZX(xyz); - case RotationOrder.ZXY: - return EulerZXY(xyz); - case RotationOrder.ZYX: - return EulerZYX(xyz); - default: - return RigidTransform.identity; - } - } - - /// - /// Returns a RigidTransform constructed by first performing 3 rotations around the principal axes in a given order. - /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. - /// When the rotation order is known at compile time, it is recommended for performance reasons to use specific - /// Euler rotation constructors such as EulerZXY(...). - /// - /// The rotation angle around the x-axis in radians. - /// The rotation angle around the y-axis in radians. - /// The rotation angle around the z-axis in radians. - /// The order in which the rotations are applied. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform Euler(float x, float y, float z, RotationOrder order = RotationOrder.Default) - { - return Euler(float3(x, y, z), order); - } - - /// Returns a float4x4 matrix that rotates around the x-axis by a given number of radians. - /// The clockwise rotation angle when looking along the x-axis towards the origin in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform RotateX(float angle) - { - return new RigidTransform(quaternion.RotateX(angle), float3.zero); - } - - /// Returns a float4x4 matrix that rotates around the y-axis by a given number of radians. - /// The clockwise rotation angle when looking along the y-axis towards the origin in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform RotateY(float angle) - { - return new RigidTransform(quaternion.RotateY(angle), float3.zero); - } - - /// Returns a float4x4 matrix that rotates around the z-axis by a given number of radians. - /// The clockwise rotation angle when looking along the z-axis towards the origin in radians. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform RotateZ(float angle) - { - return new RigidTransform(quaternion.RotateZ(angle), float3.zero); - } - - /// Returns a RigidTransform that translates by an amount specified by a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform Translate(float3 vector) - { - return new RigidTransform(quaternion.identity, vector); - } - - - /// Returns true if the RigidTransform is equal to a given RigidTransform, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(RigidTransform x) { return rot.Equals(x.rot) && pos.Equals(x.pos); } - - /// Returns true if the RigidTransform is equal to a given RigidTransform, false otherwise. - public override bool Equals(object x) { return Equals((RigidTransform)x); } - - /// Returns a hash code for the RigidTransform. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - /// Returns a string representation of the RigidTransform. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("RigidTransform(({0}f, {1}f, {2}f, {3}f), ({4}f, {5}f, {6}f))", - rot.value.x, rot.value.y, rot.value.z, rot.value.w, pos.x, pos.y, pos.z); - } - - /// Returns a string representation of the quaternion using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("float4x4(({0}f, {1}f, {2}f, {3}f), ({4}f, {5}f, {6}f))", - rot.value.x.ToString(format, formatProvider), - rot.value.y.ToString(format, formatProvider), - rot.value.z.ToString(format, formatProvider), - rot.value.w.ToString(format, formatProvider), - pos.x.ToString(format, formatProvider), - pos.y.ToString(format, formatProvider), - pos.z.ToString(format, formatProvider)); - } - } - - public static partial class math - { - /// Returns a RigidTransform constructed from a rotation represented by a unit quaternion and a translation represented by a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform RigidTransform(quaternion rot, float3 pos) { return new RigidTransform(rot, pos); } - - /// Returns a RigidTransform constructed from a rotation represented by a unit quaternion and a translation represented by a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform RigidTransform(float3x3 rotation, float3 translation) { return new RigidTransform(rotation, translation); } - - /// Returns a RigidTransform constructed from a rotation represented by a float3x3 matrix and a translation represented by a float3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform RigidTransform(float4x4 transform) { return new RigidTransform(transform); } - - /// Returns the inverse of a RigidTransform. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform inverse(RigidTransform t) - { - quaternion invRotation = inverse(t.rot); - float3 invTranslation = mul(invRotation, -t.pos); - return new RigidTransform(invRotation, invTranslation); - } - - /// Returns the result of transforming the RigidTransform b by the RigidTransform a. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RigidTransform mul(RigidTransform a, RigidTransform b) - { - return new RigidTransform(mul(a.rot, b.rot), mul(a.rot, b.pos) + a.pos); - } - - /// Returns the result of transforming a float4 homogeneous coordinate by a RigidTransform. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 mul(RigidTransform a, float4 pos) - { - return float4(mul(a.rot, pos.xyz) + a.pos * pos.w, pos.w); - } - - /// Returns the result of rotating a float3 vector by a RigidTransform. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 rotate(RigidTransform a, float3 dir) - { - return mul(a.rot, dir); - } - - /// Returns the result of transforming a float3 point by a RigidTransform. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 transform(RigidTransform a, float3 pos) - { - return mul(a.rot, pos) + a.pos; - } - - /// Returns a uint hash code of a RigidTransform. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(RigidTransform t) - { - return hash(t.rot) + 0xC5C5394Bu * hash(t.pos); - } - - /// - /// Returns a uint4 vector hash code of a RigidTransform. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(RigidTransform t) - { - return hashwide(t.rot) + 0xC5C5394Bu * hashwide(t.pos).xyzz; - } - } -} \ No newline at end of file diff --git a/Economy.Shared/Unity.Mathematics/uint2.gen.cs b/Economy.Shared/Unity.Mathematics/uint2.gen.cs deleted file mode 100644 index 1cd72ce1c..000000000 --- a/Economy.Shared/Unity.Mathematics/uint2.gen.cs +++ /dev/null @@ -1,780 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; -using System.Diagnostics; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [DebuggerTypeProxy(typeof(uint2.DebuggerProxy))] - [System.Serializable] - public partial struct uint2 : System.IEquatable, IFormattable - { - public uint x; - public uint y; - - /// uint2 zero value. - public static readonly uint2 zero; - - /// Constructs a uint2 vector from two uint values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2(uint x, uint y) - { - this.x = x; - this.y = y; - } - - /// Constructs a uint2 vector from a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2(uint2 xy) - { - this.x = xy.x; - this.y = xy.y; - } - - /// Constructs a uint2 vector from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2(uint v) - { - this.x = v; - this.y = v; - } - - /// Constructs a uint2 vector from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2(bool v) - { - this.x = v ? 1u : 0u; - this.y = v ? 1u : 0u; - } - - /// Constructs a uint2 vector from a bool2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2(bool2 v) - { - this.x = v.x ? 1u : 0u; - this.y = v.y ? 1u : 0u; - } - - /// Constructs a uint2 vector from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2(int v) - { - this.x = (uint)v; - this.y = (uint)v; - } - - /// Constructs a uint2 vector from a int2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2(int2 v) - { - this.x = (uint)v.x; - this.y = (uint)v.y; - } - - /// Constructs a uint2 vector from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2(float v) - { - this.x = (uint)v; - this.y = (uint)v; - } - - /// Constructs a uint2 vector from a float2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2(float2 v) - { - this.x = (uint)v.x; - this.y = (uint)v.y; - } - - /// Constructs a uint2 vector from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2(double v) - { - this.x = (uint)v; - this.y = (uint)v; - } - - /// Constructs a uint2 vector from a double2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2(double2 v) - { - this.x = (uint)v.x; - this.y = (uint)v.y; - } - - - /// Implicitly converts a single uint value to a uint2 vector by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator uint2(uint v) { return new uint2(v); } - - /// Explicitly converts a single bool value to a uint2 vector by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2(bool v) { return new uint2(v); } - - /// Explicitly converts a bool2 vector to a uint2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2(bool2 v) { return new uint2(v); } - - /// Explicitly converts a single int value to a uint2 vector by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2(int v) { return new uint2(v); } - - /// Explicitly converts a int2 vector to a uint2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2(int2 v) { return new uint2(v); } - - /// Explicitly converts a single float value to a uint2 vector by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2(float v) { return new uint2(v); } - - /// Explicitly converts a float2 vector to a uint2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2(float2 v) { return new uint2(v); } - - /// Explicitly converts a single double value to a uint2 vector by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2(double v) { return new uint2(v); } - - /// Explicitly converts a double2 vector to a uint2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2(double2 v) { return new uint2(v); } - - - /// Returns the result of a componentwise multiplication operation on two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator * (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x * rhs.x, lhs.y * rhs.y); } - - /// Returns the result of a componentwise multiplication operation on a uint2 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator * (uint2 lhs, uint rhs) { return new uint2 (lhs.x * rhs, lhs.y * rhs); } - - /// Returns the result of a componentwise multiplication operation on a uint value and a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator * (uint lhs, uint2 rhs) { return new uint2 (lhs * rhs.x, lhs * rhs.y); } - - - /// Returns the result of a componentwise addition operation on two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator + (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x + rhs.x, lhs.y + rhs.y); } - - /// Returns the result of a componentwise addition operation on a uint2 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator + (uint2 lhs, uint rhs) { return new uint2 (lhs.x + rhs, lhs.y + rhs); } - - /// Returns the result of a componentwise addition operation on a uint value and a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator + (uint lhs, uint2 rhs) { return new uint2 (lhs + rhs.x, lhs + rhs.y); } - - - /// Returns the result of a componentwise subtraction operation on two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator - (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x - rhs.x, lhs.y - rhs.y); } - - /// Returns the result of a componentwise subtraction operation on a uint2 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator - (uint2 lhs, uint rhs) { return new uint2 (lhs.x - rhs, lhs.y - rhs); } - - /// Returns the result of a componentwise subtraction operation on a uint value and a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator - (uint lhs, uint2 rhs) { return new uint2 (lhs - rhs.x, lhs - rhs.y); } - - - /// Returns the result of a componentwise division operation on two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator / (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x / rhs.x, lhs.y / rhs.y); } - - /// Returns the result of a componentwise division operation on a uint2 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator / (uint2 lhs, uint rhs) { return new uint2 (lhs.x / rhs, lhs.y / rhs); } - - /// Returns the result of a componentwise division operation on a uint value and a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator / (uint lhs, uint2 rhs) { return new uint2 (lhs / rhs.x, lhs / rhs.y); } - - - /// Returns the result of a componentwise modulus operation on two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator % (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x % rhs.x, lhs.y % rhs.y); } - - /// Returns the result of a componentwise modulus operation on a uint2 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator % (uint2 lhs, uint rhs) { return new uint2 (lhs.x % rhs, lhs.y % rhs); } - - /// Returns the result of a componentwise modulus operation on a uint value and a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator % (uint lhs, uint2 rhs) { return new uint2 (lhs % rhs.x, lhs % rhs.y); } - - - /// Returns the result of a componentwise increment operation on a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator ++ (uint2 val) { return new uint2 (++val.x, ++val.y); } - - - /// Returns the result of a componentwise decrement operation on a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator -- (uint2 val) { return new uint2 (--val.x, --val.y); } - - - /// Returns the result of a componentwise less than operation on two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } - - /// Returns the result of a componentwise less than operation on a uint2 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (uint2 lhs, uint rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } - - /// Returns the result of a componentwise less than operation on a uint value and a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (uint lhs, uint2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } - - - /// Returns the result of a componentwise less or equal operation on two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } - - /// Returns the result of a componentwise less or equal operation on a uint2 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (uint2 lhs, uint rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a uint value and a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (uint lhs, uint2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } - - - /// Returns the result of a componentwise greater than operation on two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } - - /// Returns the result of a componentwise greater than operation on a uint2 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (uint2 lhs, uint rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } - - /// Returns the result of a componentwise greater than operation on a uint value and a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (uint lhs, uint2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } - - - /// Returns the result of a componentwise greater or equal operation on two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } - - /// Returns the result of a componentwise greater or equal operation on a uint2 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (uint2 lhs, uint rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a uint value and a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (uint lhs, uint2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } - - - /// Returns the result of a componentwise unary minus operation on a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator - (uint2 val) { return new uint2 ((uint)-val.x, (uint)-val.y); } - - - /// Returns the result of a componentwise unary plus operation on a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator + (uint2 val) { return new uint2 (+val.x, +val.y); } - - - /// Returns the result of a componentwise left shift operation on a uint2 vector by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator << (uint2 x, int n) { return new uint2 (x.x << n, x.y << n); } - - /// Returns the result of a componentwise right shift operation on a uint2 vector by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator >> (uint2 x, int n) { return new uint2 (x.x >> n, x.y >> n); } - - /// Returns the result of a componentwise equality operation on two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } - - /// Returns the result of a componentwise equality operation on a uint2 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (uint2 lhs, uint rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } - - /// Returns the result of a componentwise equality operation on a uint value and a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (uint lhs, uint2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } - - - /// Returns the result of a componentwise not equal operation on two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } - - /// Returns the result of a componentwise not equal operation on a uint2 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (uint2 lhs, uint rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } - - /// Returns the result of a componentwise not equal operation on a uint value and a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (uint lhs, uint2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } - - - /// Returns the result of a componentwise bitwise not operation on a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator ~ (uint2 val) { return new uint2 (~val.x, ~val.y); } - - - /// Returns the result of a componentwise bitwise and operation on two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator & (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x & rhs.x, lhs.y & rhs.y); } - - /// Returns the result of a componentwise bitwise and operation on a uint2 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator & (uint2 lhs, uint rhs) { return new uint2 (lhs.x & rhs, lhs.y & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a uint value and a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator & (uint lhs, uint2 rhs) { return new uint2 (lhs & rhs.x, lhs & rhs.y); } - - - /// Returns the result of a componentwise bitwise or operation on two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator | (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x | rhs.x, lhs.y | rhs.y); } - - /// Returns the result of a componentwise bitwise or operation on a uint2 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator | (uint2 lhs, uint rhs) { return new uint2 (lhs.x | rhs, lhs.y | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a uint value and a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator | (uint lhs, uint2 rhs) { return new uint2 (lhs | rhs.x, lhs | rhs.y); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator ^ (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint2 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator ^ (uint2 lhs, uint rhs) { return new uint2 (lhs.x ^ rhs, lhs.y ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator ^ (uint lhs, uint2 rhs) { return new uint2 (lhs ^ rhs.x, lhs ^ rhs.y); } - - - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(y, y); } - } - - - - /// Returns the uint element at a specified index. - unsafe public uint this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (uint2* array = &this) { return ((uint*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (uint* array = &x) { array[index] = value; } - } - } - - /// Returns true if the uint2 is equal to a given uint2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(uint2 rhs) { return x == rhs.x && y == rhs.y; } - - /// Returns true if the uint2 is equal to a given uint2, false otherwise. - public override bool Equals(object o) { return Equals((uint2)o); } - - - /// Returns a hash code for the uint2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the uint2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("uint2({0}, {1})", x, y); - } - - /// Returns a string representation of the uint2 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("uint2({0}, {1})", x.ToString(format, formatProvider), y.ToString(format, formatProvider)); - } - - internal sealed class DebuggerProxy - { - public uint x; - public uint y; - public DebuggerProxy(uint2 v) - { - x = v.x; - y = v.y; - } - } - - } - - public static partial class math - { - /// Returns a uint2 vector constructed from two uint values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 uint2(uint x, uint y) { return new uint2(x, y); } - - /// Returns a uint2 vector constructed from a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 uint2(uint2 xy) { return new uint2(xy); } - - /// Returns a uint2 vector constructed from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 uint2(uint v) { return new uint2(v); } - - /// Returns a uint2 vector constructed from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 uint2(bool v) { return new uint2(v); } - - /// Return a uint2 vector constructed from a bool2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 uint2(bool2 v) { return new uint2(v); } - - /// Returns a uint2 vector constructed from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 uint2(int v) { return new uint2(v); } - - /// Return a uint2 vector constructed from a int2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 uint2(int2 v) { return new uint2(v); } - - /// Returns a uint2 vector constructed from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 uint2(float v) { return new uint2(v); } - - /// Return a uint2 vector constructed from a float2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 uint2(float2 v) { return new uint2(v); } - - /// Returns a uint2 vector constructed from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 uint2(double v) { return new uint2(v); } - - /// Return a uint2 vector constructed from a double2 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 uint2(double2 v) { return new uint2(v); } - - /// Returns a uint hash code of a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(uint2 v) - { - return csum(v * uint2(0x4473BBB1u, 0xCBA11D5Fu)) + 0x685835CFu; - } - - /// - /// Returns a uint2 vector hash code of a uint2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(uint2 v) - { - return (v * uint2(0xC3D32AE1u, 0xB966942Fu)) + 0xFE9856B3u; - } - - /// Returns the result of specified shuffling of the components from two uint2 vectors into a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint shuffle(uint2 a, uint2 b, ShuffleComponent x) - { - return select_shuffle_component(a, b, x); - } - - /// Returns the result of specified shuffling of the components from two uint2 vectors into a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 shuffle(uint2 a, uint2 b, ShuffleComponent x, ShuffleComponent y) - { - return uint2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); - } - - /// Returns the result of specified shuffling of the components from two uint2 vectors into a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 shuffle(uint2 a, uint2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) - { - return uint3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); - } - - /// Returns the result of specified shuffling of the components from two uint2 vectors into a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 shuffle(uint2 a, uint2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) - { - return uint4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint select_shuffle_component(uint2 a, uint2 b, ShuffleComponent component) - { - switch(component) - { - case ShuffleComponent.LeftX: - return a.x; - case ShuffleComponent.LeftY: - return a.y; - case ShuffleComponent.RightX: - return b.x; - case ShuffleComponent.RightY: - return b.y; - default: - throw new System.ArgumentException("Invalid shuffle component: " + component); - } - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/uint2x2.gen.cs b/Economy.Shared/Unity.Mathematics/uint2x2.gen.cs deleted file mode 100644 index 0c0592a9a..000000000 --- a/Economy.Shared/Unity.Mathematics/uint2x2.gen.cs +++ /dev/null @@ -1,494 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct uint2x2 : System.IEquatable, IFormattable - { - public uint2 c0; - public uint2 c1; - - /// uint2x2 identity transform. - public static readonly uint2x2 identity = new uint2x2(1u, 0u, 0u, 1u); - - /// uint2x2 zero value. - public static readonly uint2x2 zero; - - /// Constructs a uint2x2 matrix from two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x2(uint2 c0, uint2 c1) - { - this.c0 = c0; - this.c1 = c1; - } - - /// Constructs a uint2x2 matrix from 4 uint values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x2(uint m00, uint m01, - uint m10, uint m11) - { - this.c0 = new uint2(m00, m10); - this.c1 = new uint2(m01, m11); - } - - /// Constructs a uint2x2 matrix from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x2(uint v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a uint2x2 matrix from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x2(bool v) - { - this.c0 = math.select(new uint2(0u), new uint2(1u), v); - this.c1 = math.select(new uint2(0u), new uint2(1u), v); - } - - /// Constructs a uint2x2 matrix from a bool2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x2(bool2x2 v) - { - this.c0 = math.select(new uint2(0u), new uint2(1u), v.c0); - this.c1 = math.select(new uint2(0u), new uint2(1u), v.c1); - } - - /// Constructs a uint2x2 matrix from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x2(int v) - { - this.c0 = (uint2)v; - this.c1 = (uint2)v; - } - - /// Constructs a uint2x2 matrix from a int2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x2(int2x2 v) - { - this.c0 = (uint2)v.c0; - this.c1 = (uint2)v.c1; - } - - /// Constructs a uint2x2 matrix from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x2(float v) - { - this.c0 = (uint2)v; - this.c1 = (uint2)v; - } - - /// Constructs a uint2x2 matrix from a float2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x2(float2x2 v) - { - this.c0 = (uint2)v.c0; - this.c1 = (uint2)v.c1; - } - - /// Constructs a uint2x2 matrix from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x2(double v) - { - this.c0 = (uint2)v; - this.c1 = (uint2)v; - } - - /// Constructs a uint2x2 matrix from a double2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x2(double2x2 v) - { - this.c0 = (uint2)v.c0; - this.c1 = (uint2)v.c1; - } - - - /// Implicitly converts a single uint value to a uint2x2 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator uint2x2(uint v) { return new uint2x2(v); } - - /// Explicitly converts a single bool value to a uint2x2 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x2(bool v) { return new uint2x2(v); } - - /// Explicitly converts a bool2x2 matrix to a uint2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x2(bool2x2 v) { return new uint2x2(v); } - - /// Explicitly converts a single int value to a uint2x2 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x2(int v) { return new uint2x2(v); } - - /// Explicitly converts a int2x2 matrix to a uint2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x2(int2x2 v) { return new uint2x2(v); } - - /// Explicitly converts a single float value to a uint2x2 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x2(float v) { return new uint2x2(v); } - - /// Explicitly converts a float2x2 matrix to a uint2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x2(float2x2 v) { return new uint2x2(v); } - - /// Explicitly converts a single double value to a uint2x2 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x2(double v) { return new uint2x2(v); } - - /// Explicitly converts a double2x2 matrix to a uint2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x2(double2x2 v) { return new uint2x2(v); } - - - /// Returns the result of a componentwise multiplication operation on two uint2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator * (uint2x2 lhs, uint2x2 rhs) { return new uint2x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } - - /// Returns the result of a componentwise multiplication operation on a uint2x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator * (uint2x2 lhs, uint rhs) { return new uint2x2 (lhs.c0 * rhs, lhs.c1 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a uint value and a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator * (uint lhs, uint2x2 rhs) { return new uint2x2 (lhs * rhs.c0, lhs * rhs.c1); } - - - /// Returns the result of a componentwise addition operation on two uint2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator + (uint2x2 lhs, uint2x2 rhs) { return new uint2x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } - - /// Returns the result of a componentwise addition operation on a uint2x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator + (uint2x2 lhs, uint rhs) { return new uint2x2 (lhs.c0 + rhs, lhs.c1 + rhs); } - - /// Returns the result of a componentwise addition operation on a uint value and a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator + (uint lhs, uint2x2 rhs) { return new uint2x2 (lhs + rhs.c0, lhs + rhs.c1); } - - - /// Returns the result of a componentwise subtraction operation on two uint2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator - (uint2x2 lhs, uint2x2 rhs) { return new uint2x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } - - /// Returns the result of a componentwise subtraction operation on a uint2x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator - (uint2x2 lhs, uint rhs) { return new uint2x2 (lhs.c0 - rhs, lhs.c1 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a uint value and a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator - (uint lhs, uint2x2 rhs) { return new uint2x2 (lhs - rhs.c0, lhs - rhs.c1); } - - - /// Returns the result of a componentwise division operation on two uint2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator / (uint2x2 lhs, uint2x2 rhs) { return new uint2x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } - - /// Returns the result of a componentwise division operation on a uint2x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator / (uint2x2 lhs, uint rhs) { return new uint2x2 (lhs.c0 / rhs, lhs.c1 / rhs); } - - /// Returns the result of a componentwise division operation on a uint value and a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator / (uint lhs, uint2x2 rhs) { return new uint2x2 (lhs / rhs.c0, lhs / rhs.c1); } - - - /// Returns the result of a componentwise modulus operation on two uint2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator % (uint2x2 lhs, uint2x2 rhs) { return new uint2x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } - - /// Returns the result of a componentwise modulus operation on a uint2x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator % (uint2x2 lhs, uint rhs) { return new uint2x2 (lhs.c0 % rhs, lhs.c1 % rhs); } - - /// Returns the result of a componentwise modulus operation on a uint value and a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator % (uint lhs, uint2x2 rhs) { return new uint2x2 (lhs % rhs.c0, lhs % rhs.c1); } - - - /// Returns the result of a componentwise increment operation on a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator ++ (uint2x2 val) { return new uint2x2 (++val.c0, ++val.c1); } - - - /// Returns the result of a componentwise decrement operation on a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator -- (uint2x2 val) { return new uint2x2 (--val.c0, --val.c1); } - - - /// Returns the result of a componentwise less than operation on two uint2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator < (uint2x2 lhs, uint2x2 rhs) { return new bool2x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } - - /// Returns the result of a componentwise less than operation on a uint2x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator < (uint2x2 lhs, uint rhs) { return new bool2x2 (lhs.c0 < rhs, lhs.c1 < rhs); } - - /// Returns the result of a componentwise less than operation on a uint value and a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator < (uint lhs, uint2x2 rhs) { return new bool2x2 (lhs < rhs.c0, lhs < rhs.c1); } - - - /// Returns the result of a componentwise less or equal operation on two uint2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator <= (uint2x2 lhs, uint2x2 rhs) { return new bool2x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } - - /// Returns the result of a componentwise less or equal operation on a uint2x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator <= (uint2x2 lhs, uint rhs) { return new bool2x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a uint value and a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator <= (uint lhs, uint2x2 rhs) { return new bool2x2 (lhs <= rhs.c0, lhs <= rhs.c1); } - - - /// Returns the result of a componentwise greater than operation on two uint2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator > (uint2x2 lhs, uint2x2 rhs) { return new bool2x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } - - /// Returns the result of a componentwise greater than operation on a uint2x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator > (uint2x2 lhs, uint rhs) { return new bool2x2 (lhs.c0 > rhs, lhs.c1 > rhs); } - - /// Returns the result of a componentwise greater than operation on a uint value and a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator > (uint lhs, uint2x2 rhs) { return new bool2x2 (lhs > rhs.c0, lhs > rhs.c1); } - - - /// Returns the result of a componentwise greater or equal operation on two uint2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator >= (uint2x2 lhs, uint2x2 rhs) { return new bool2x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } - - /// Returns the result of a componentwise greater or equal operation on a uint2x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator >= (uint2x2 lhs, uint rhs) { return new bool2x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a uint value and a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator >= (uint lhs, uint2x2 rhs) { return new bool2x2 (lhs >= rhs.c0, lhs >= rhs.c1); } - - - /// Returns the result of a componentwise unary minus operation on a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator - (uint2x2 val) { return new uint2x2 (-val.c0, -val.c1); } - - - /// Returns the result of a componentwise unary plus operation on a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator + (uint2x2 val) { return new uint2x2 (+val.c0, +val.c1); } - - - /// Returns the result of a componentwise left shift operation on a uint2x2 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator << (uint2x2 x, int n) { return new uint2x2 (x.c0 << n, x.c1 << n); } - - /// Returns the result of a componentwise right shift operation on a uint2x2 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator >> (uint2x2 x, int n) { return new uint2x2 (x.c0 >> n, x.c1 >> n); } - - /// Returns the result of a componentwise equality operation on two uint2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator == (uint2x2 lhs, uint2x2 rhs) { return new bool2x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } - - /// Returns the result of a componentwise equality operation on a uint2x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator == (uint2x2 lhs, uint rhs) { return new bool2x2 (lhs.c0 == rhs, lhs.c1 == rhs); } - - /// Returns the result of a componentwise equality operation on a uint value and a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator == (uint lhs, uint2x2 rhs) { return new bool2x2 (lhs == rhs.c0, lhs == rhs.c1); } - - - /// Returns the result of a componentwise not equal operation on two uint2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator != (uint2x2 lhs, uint2x2 rhs) { return new bool2x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } - - /// Returns the result of a componentwise not equal operation on a uint2x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator != (uint2x2 lhs, uint rhs) { return new bool2x2 (lhs.c0 != rhs, lhs.c1 != rhs); } - - /// Returns the result of a componentwise not equal operation on a uint value and a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x2 operator != (uint lhs, uint2x2 rhs) { return new bool2x2 (lhs != rhs.c0, lhs != rhs.c1); } - - - /// Returns the result of a componentwise bitwise not operation on a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator ~ (uint2x2 val) { return new uint2x2 (~val.c0, ~val.c1); } - - - /// Returns the result of a componentwise bitwise and operation on two uint2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator & (uint2x2 lhs, uint2x2 rhs) { return new uint2x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); } - - /// Returns the result of a componentwise bitwise and operation on a uint2x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator & (uint2x2 lhs, uint rhs) { return new uint2x2 (lhs.c0 & rhs, lhs.c1 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a uint value and a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator & (uint lhs, uint2x2 rhs) { return new uint2x2 (lhs & rhs.c0, lhs & rhs.c1); } - - - /// Returns the result of a componentwise bitwise or operation on two uint2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator | (uint2x2 lhs, uint2x2 rhs) { return new uint2x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); } - - /// Returns the result of a componentwise bitwise or operation on a uint2x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator | (uint2x2 lhs, uint rhs) { return new uint2x2 (lhs.c0 | rhs, lhs.c1 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a uint value and a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator | (uint lhs, uint2x2 rhs) { return new uint2x2 (lhs | rhs.c0, lhs | rhs.c1); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two uint2x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator ^ (uint2x2 lhs, uint2x2 rhs) { return new uint2x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint2x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator ^ (uint2x2 lhs, uint rhs) { return new uint2x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 operator ^ (uint lhs, uint2x2 rhs) { return new uint2x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); } - - - - /// Returns the uint2 element at a specified index. - unsafe public ref uint2 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (uint2x2* array = &this) { return ref ((uint2*)array)[index]; } - } - } - - /// Returns true if the uint2x2 is equal to a given uint2x2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(uint2x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } - - /// Returns true if the uint2x2 is equal to a given uint2x2, false otherwise. - public override bool Equals(object o) { return Equals((uint2x2)o); } - - - /// Returns a hash code for the uint2x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the uint2x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("uint2x2({0}, {1}, {2}, {3})", c0.x, c1.x, c0.y, c1.y); - } - - /// Returns a string representation of the uint2x2 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("uint2x2({0}, {1}, {2}, {3})", c0.x.ToString(format, formatProvider), c1.x.ToString(format, formatProvider), c0.y.ToString(format, formatProvider), c1.y.ToString(format, formatProvider)); - } - - } - - public static partial class math - { - /// Returns a uint2x2 matrix constructed from two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 uint2x2(uint2 c0, uint2 c1) { return new uint2x2(c0, c1); } - - /// Returns a uint2x2 matrix constructed from from 4 uint values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 uint2x2(uint m00, uint m01, - uint m10, uint m11) - { - return new uint2x2(m00, m01, - m10, m11); - } - - /// Returns a uint2x2 matrix constructed from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 uint2x2(uint v) { return new uint2x2(v); } - - /// Returns a uint2x2 matrix constructed from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 uint2x2(bool v) { return new uint2x2(v); } - - /// Return a uint2x2 matrix constructed from a bool2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 uint2x2(bool2x2 v) { return new uint2x2(v); } - - /// Returns a uint2x2 matrix constructed from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 uint2x2(int v) { return new uint2x2(v); } - - /// Return a uint2x2 matrix constructed from a int2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 uint2x2(int2x2 v) { return new uint2x2(v); } - - /// Returns a uint2x2 matrix constructed from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 uint2x2(float v) { return new uint2x2(v); } - - /// Return a uint2x2 matrix constructed from a float2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 uint2x2(float2x2 v) { return new uint2x2(v); } - - /// Returns a uint2x2 matrix constructed from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 uint2x2(double v) { return new uint2x2(v); } - - /// Return a uint2x2 matrix constructed from a double2x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 uint2x2(double2x2 v) { return new uint2x2(v); } - - /// Return the uint2x2 transpose of a uint2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x2 transpose(uint2x2 v) - { - return uint2x2( - v.c0.x, v.c0.y, - v.c1.x, v.c1.y); - } - - /// Returns a uint hash code of a uint2x2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(uint2x2 v) - { - return csum(v.c0 * uint2(0xB36DE767u, 0x6FCA387Du) + - v.c1 * uint2(0xAF0F3103u, 0xE4A056C7u)) + 0x841D8225u; - } - - /// - /// Returns a uint2 vector hash code of a uint2x2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(uint2x2 v) - { - return (v.c0 * uint2(0xC9393C7Du, 0xD42EAFA3u) + - v.c1 * uint2(0xD9AFD06Du, 0x97A65421u)) + 0x7809205Fu; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/uint2x3.gen.cs b/Economy.Shared/Unity.Mathematics/uint2x3.gen.cs deleted file mode 100644 index 75a42f985..000000000 --- a/Economy.Shared/Unity.Mathematics/uint2x3.gen.cs +++ /dev/null @@ -1,506 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct uint2x3 : System.IEquatable, IFormattable - { - public uint2 c0; - public uint2 c1; - public uint2 c2; - - /// uint2x3 zero value. - public static readonly uint2x3 zero; - - /// Constructs a uint2x3 matrix from three uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x3(uint2 c0, uint2 c1, uint2 c2) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - } - - /// Constructs a uint2x3 matrix from 6 uint values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x3(uint m00, uint m01, uint m02, - uint m10, uint m11, uint m12) - { - this.c0 = new uint2(m00, m10); - this.c1 = new uint2(m01, m11); - this.c2 = new uint2(m02, m12); - } - - /// Constructs a uint2x3 matrix from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x3(uint v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a uint2x3 matrix from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x3(bool v) - { - this.c0 = math.select(new uint2(0u), new uint2(1u), v); - this.c1 = math.select(new uint2(0u), new uint2(1u), v); - this.c2 = math.select(new uint2(0u), new uint2(1u), v); - } - - /// Constructs a uint2x3 matrix from a bool2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x3(bool2x3 v) - { - this.c0 = math.select(new uint2(0u), new uint2(1u), v.c0); - this.c1 = math.select(new uint2(0u), new uint2(1u), v.c1); - this.c2 = math.select(new uint2(0u), new uint2(1u), v.c2); - } - - /// Constructs a uint2x3 matrix from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x3(int v) - { - this.c0 = (uint2)v; - this.c1 = (uint2)v; - this.c2 = (uint2)v; - } - - /// Constructs a uint2x3 matrix from a int2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x3(int2x3 v) - { - this.c0 = (uint2)v.c0; - this.c1 = (uint2)v.c1; - this.c2 = (uint2)v.c2; - } - - /// Constructs a uint2x3 matrix from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x3(float v) - { - this.c0 = (uint2)v; - this.c1 = (uint2)v; - this.c2 = (uint2)v; - } - - /// Constructs a uint2x3 matrix from a float2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x3(float2x3 v) - { - this.c0 = (uint2)v.c0; - this.c1 = (uint2)v.c1; - this.c2 = (uint2)v.c2; - } - - /// Constructs a uint2x3 matrix from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x3(double v) - { - this.c0 = (uint2)v; - this.c1 = (uint2)v; - this.c2 = (uint2)v; - } - - /// Constructs a uint2x3 matrix from a double2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x3(double2x3 v) - { - this.c0 = (uint2)v.c0; - this.c1 = (uint2)v.c1; - this.c2 = (uint2)v.c2; - } - - - /// Implicitly converts a single uint value to a uint2x3 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator uint2x3(uint v) { return new uint2x3(v); } - - /// Explicitly converts a single bool value to a uint2x3 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x3(bool v) { return new uint2x3(v); } - - /// Explicitly converts a bool2x3 matrix to a uint2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x3(bool2x3 v) { return new uint2x3(v); } - - /// Explicitly converts a single int value to a uint2x3 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x3(int v) { return new uint2x3(v); } - - /// Explicitly converts a int2x3 matrix to a uint2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x3(int2x3 v) { return new uint2x3(v); } - - /// Explicitly converts a single float value to a uint2x3 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x3(float v) { return new uint2x3(v); } - - /// Explicitly converts a float2x3 matrix to a uint2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x3(float2x3 v) { return new uint2x3(v); } - - /// Explicitly converts a single double value to a uint2x3 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x3(double v) { return new uint2x3(v); } - - /// Explicitly converts a double2x3 matrix to a uint2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x3(double2x3 v) { return new uint2x3(v); } - - - /// Returns the result of a componentwise multiplication operation on two uint2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator * (uint2x3 lhs, uint2x3 rhs) { return new uint2x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } - - /// Returns the result of a componentwise multiplication operation on a uint2x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator * (uint2x3 lhs, uint rhs) { return new uint2x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a uint value and a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator * (uint lhs, uint2x3 rhs) { return new uint2x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } - - - /// Returns the result of a componentwise addition operation on two uint2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator + (uint2x3 lhs, uint2x3 rhs) { return new uint2x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } - - /// Returns the result of a componentwise addition operation on a uint2x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator + (uint2x3 lhs, uint rhs) { return new uint2x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } - - /// Returns the result of a componentwise addition operation on a uint value and a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator + (uint lhs, uint2x3 rhs) { return new uint2x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } - - - /// Returns the result of a componentwise subtraction operation on two uint2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator - (uint2x3 lhs, uint2x3 rhs) { return new uint2x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } - - /// Returns the result of a componentwise subtraction operation on a uint2x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator - (uint2x3 lhs, uint rhs) { return new uint2x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a uint value and a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator - (uint lhs, uint2x3 rhs) { return new uint2x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } - - - /// Returns the result of a componentwise division operation on two uint2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator / (uint2x3 lhs, uint2x3 rhs) { return new uint2x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } - - /// Returns the result of a componentwise division operation on a uint2x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator / (uint2x3 lhs, uint rhs) { return new uint2x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } - - /// Returns the result of a componentwise division operation on a uint value and a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator / (uint lhs, uint2x3 rhs) { return new uint2x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } - - - /// Returns the result of a componentwise modulus operation on two uint2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator % (uint2x3 lhs, uint2x3 rhs) { return new uint2x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } - - /// Returns the result of a componentwise modulus operation on a uint2x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator % (uint2x3 lhs, uint rhs) { return new uint2x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } - - /// Returns the result of a componentwise modulus operation on a uint value and a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator % (uint lhs, uint2x3 rhs) { return new uint2x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } - - - /// Returns the result of a componentwise increment operation on a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator ++ (uint2x3 val) { return new uint2x3 (++val.c0, ++val.c1, ++val.c2); } - - - /// Returns the result of a componentwise decrement operation on a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator -- (uint2x3 val) { return new uint2x3 (--val.c0, --val.c1, --val.c2); } - - - /// Returns the result of a componentwise less than operation on two uint2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator < (uint2x3 lhs, uint2x3 rhs) { return new bool2x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } - - /// Returns the result of a componentwise less than operation on a uint2x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator < (uint2x3 lhs, uint rhs) { return new bool2x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } - - /// Returns the result of a componentwise less than operation on a uint value and a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator < (uint lhs, uint2x3 rhs) { return new bool2x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } - - - /// Returns the result of a componentwise less or equal operation on two uint2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator <= (uint2x3 lhs, uint2x3 rhs) { return new bool2x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } - - /// Returns the result of a componentwise less or equal operation on a uint2x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator <= (uint2x3 lhs, uint rhs) { return new bool2x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a uint value and a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator <= (uint lhs, uint2x3 rhs) { return new bool2x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } - - - /// Returns the result of a componentwise greater than operation on two uint2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator > (uint2x3 lhs, uint2x3 rhs) { return new bool2x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } - - /// Returns the result of a componentwise greater than operation on a uint2x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator > (uint2x3 lhs, uint rhs) { return new bool2x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } - - /// Returns the result of a componentwise greater than operation on a uint value and a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator > (uint lhs, uint2x3 rhs) { return new bool2x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } - - - /// Returns the result of a componentwise greater or equal operation on two uint2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator >= (uint2x3 lhs, uint2x3 rhs) { return new bool2x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } - - /// Returns the result of a componentwise greater or equal operation on a uint2x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator >= (uint2x3 lhs, uint rhs) { return new bool2x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a uint value and a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator >= (uint lhs, uint2x3 rhs) { return new bool2x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } - - - /// Returns the result of a componentwise unary minus operation on a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator - (uint2x3 val) { return new uint2x3 (-val.c0, -val.c1, -val.c2); } - - - /// Returns the result of a componentwise unary plus operation on a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator + (uint2x3 val) { return new uint2x3 (+val.c0, +val.c1, +val.c2); } - - - /// Returns the result of a componentwise left shift operation on a uint2x3 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator << (uint2x3 x, int n) { return new uint2x3 (x.c0 << n, x.c1 << n, x.c2 << n); } - - /// Returns the result of a componentwise right shift operation on a uint2x3 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator >> (uint2x3 x, int n) { return new uint2x3 (x.c0 >> n, x.c1 >> n, x.c2 >> n); } - - /// Returns the result of a componentwise equality operation on two uint2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator == (uint2x3 lhs, uint2x3 rhs) { return new bool2x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } - - /// Returns the result of a componentwise equality operation on a uint2x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator == (uint2x3 lhs, uint rhs) { return new bool2x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } - - /// Returns the result of a componentwise equality operation on a uint value and a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator == (uint lhs, uint2x3 rhs) { return new bool2x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } - - - /// Returns the result of a componentwise not equal operation on two uint2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator != (uint2x3 lhs, uint2x3 rhs) { return new bool2x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } - - /// Returns the result of a componentwise not equal operation on a uint2x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator != (uint2x3 lhs, uint rhs) { return new bool2x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } - - /// Returns the result of a componentwise not equal operation on a uint value and a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x3 operator != (uint lhs, uint2x3 rhs) { return new bool2x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } - - - /// Returns the result of a componentwise bitwise not operation on a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator ~ (uint2x3 val) { return new uint2x3 (~val.c0, ~val.c1, ~val.c2); } - - - /// Returns the result of a componentwise bitwise and operation on two uint2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator & (uint2x3 lhs, uint2x3 rhs) { return new uint2x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); } - - /// Returns the result of a componentwise bitwise and operation on a uint2x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator & (uint2x3 lhs, uint rhs) { return new uint2x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a uint value and a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator & (uint lhs, uint2x3 rhs) { return new uint2x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); } - - - /// Returns the result of a componentwise bitwise or operation on two uint2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator | (uint2x3 lhs, uint2x3 rhs) { return new uint2x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); } - - /// Returns the result of a componentwise bitwise or operation on a uint2x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator | (uint2x3 lhs, uint rhs) { return new uint2x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a uint value and a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator | (uint lhs, uint2x3 rhs) { return new uint2x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two uint2x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator ^ (uint2x3 lhs, uint2x3 rhs) { return new uint2x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint2x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator ^ (uint2x3 lhs, uint rhs) { return new uint2x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 operator ^ (uint lhs, uint2x3 rhs) { return new uint2x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); } - - - - /// Returns the uint2 element at a specified index. - unsafe public ref uint2 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (uint2x3* array = &this) { return ref ((uint2*)array)[index]; } - } - } - - /// Returns true if the uint2x3 is equal to a given uint2x3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(uint2x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } - - /// Returns true if the uint2x3 is equal to a given uint2x3, false otherwise. - public override bool Equals(object o) { return Equals((uint2x3)o); } - - - /// Returns a hash code for the uint2x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the uint2x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("uint2x3({0}, {1}, {2}, {3}, {4}, {5})", c0.x, c1.x, c2.x, c0.y, c1.y, c2.y); - } - - /// Returns a string representation of the uint2x3 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("uint2x3({0}, {1}, {2}, {3}, {4}, {5})", 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)); - } - - } - - public static partial class math - { - /// Returns a uint2x3 matrix constructed from three uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 uint2x3(uint2 c0, uint2 c1, uint2 c2) { return new uint2x3(c0, c1, c2); } - - /// Returns a uint2x3 matrix constructed from from 6 uint values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 uint2x3(uint m00, uint m01, uint m02, - uint m10, uint m11, uint m12) - { - return new uint2x3(m00, m01, m02, - m10, m11, m12); - } - - /// Returns a uint2x3 matrix constructed from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 uint2x3(uint v) { return new uint2x3(v); } - - /// Returns a uint2x3 matrix constructed from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 uint2x3(bool v) { return new uint2x3(v); } - - /// Return a uint2x3 matrix constructed from a bool2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 uint2x3(bool2x3 v) { return new uint2x3(v); } - - /// Returns a uint2x3 matrix constructed from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 uint2x3(int v) { return new uint2x3(v); } - - /// Return a uint2x3 matrix constructed from a int2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 uint2x3(int2x3 v) { return new uint2x3(v); } - - /// Returns a uint2x3 matrix constructed from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 uint2x3(float v) { return new uint2x3(v); } - - /// Return a uint2x3 matrix constructed from a float2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 uint2x3(float2x3 v) { return new uint2x3(v); } - - /// Returns a uint2x3 matrix constructed from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 uint2x3(double v) { return new uint2x3(v); } - - /// Return a uint2x3 matrix constructed from a double2x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 uint2x3(double2x3 v) { return new uint2x3(v); } - - /// Return the uint3x2 transpose of a uint2x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 transpose(uint2x3 v) - { - return uint3x2( - v.c0.x, v.c0.y, - v.c1.x, v.c1.y, - v.c2.x, v.c2.y); - } - - /// Returns a uint hash code of a uint2x3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(uint2x3 v) - { - return csum(v.c0 * uint2(0xEF63C699u, 0x9001903Fu) + - v.c1 * uint2(0xA895B9CDu, 0x9D23B201u) + - v.c2 * uint2(0x4B01D3E1u, 0x7461CA0Du)) + 0x79725379u; - } - - /// - /// Returns a uint2 vector hash code of a uint2x3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(uint2x3 v) - { - return (v.c0 * uint2(0xD6258E5Bu, 0xEE390C97u) + - v.c1 * uint2(0x9C8A2F05u, 0x4DDC6509u) + - v.c2 * uint2(0x7CF083CBu, 0x5C4D6CEDu)) + 0xF9137117u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/uint2x4.gen.cs b/Economy.Shared/Unity.Mathematics/uint2x4.gen.cs deleted file mode 100644 index 34e12e68e..000000000 --- a/Economy.Shared/Unity.Mathematics/uint2x4.gen.cs +++ /dev/null @@ -1,521 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct uint2x4 : System.IEquatable, IFormattable - { - public uint2 c0; - public uint2 c1; - public uint2 c2; - public uint2 c3; - - /// uint2x4 zero value. - public static readonly uint2x4 zero; - - /// Constructs a uint2x4 matrix from four uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x4(uint2 c0, uint2 c1, uint2 c2, uint2 c3) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - this.c3 = c3; - } - - /// Constructs a uint2x4 matrix from 8 uint values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x4(uint m00, uint m01, uint m02, uint m03, - uint m10, uint m11, uint m12, uint m13) - { - this.c0 = new uint2(m00, m10); - this.c1 = new uint2(m01, m11); - this.c2 = new uint2(m02, m12); - this.c3 = new uint2(m03, m13); - } - - /// Constructs a uint2x4 matrix from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x4(uint v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a uint2x4 matrix from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x4(bool v) - { - this.c0 = math.select(new uint2(0u), new uint2(1u), v); - this.c1 = math.select(new uint2(0u), new uint2(1u), v); - this.c2 = math.select(new uint2(0u), new uint2(1u), v); - this.c3 = math.select(new uint2(0u), new uint2(1u), v); - } - - /// Constructs a uint2x4 matrix from a bool2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x4(bool2x4 v) - { - this.c0 = math.select(new uint2(0u), new uint2(1u), v.c0); - this.c1 = math.select(new uint2(0u), new uint2(1u), v.c1); - this.c2 = math.select(new uint2(0u), new uint2(1u), v.c2); - this.c3 = math.select(new uint2(0u), new uint2(1u), v.c3); - } - - /// Constructs a uint2x4 matrix from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x4(int v) - { - this.c0 = (uint2)v; - this.c1 = (uint2)v; - this.c2 = (uint2)v; - this.c3 = (uint2)v; - } - - /// Constructs a uint2x4 matrix from a int2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x4(int2x4 v) - { - this.c0 = (uint2)v.c0; - this.c1 = (uint2)v.c1; - this.c2 = (uint2)v.c2; - this.c3 = (uint2)v.c3; - } - - /// Constructs a uint2x4 matrix from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x4(float v) - { - this.c0 = (uint2)v; - this.c1 = (uint2)v; - this.c2 = (uint2)v; - this.c3 = (uint2)v; - } - - /// Constructs a uint2x4 matrix from a float2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x4(float2x4 v) - { - this.c0 = (uint2)v.c0; - this.c1 = (uint2)v.c1; - this.c2 = (uint2)v.c2; - this.c3 = (uint2)v.c3; - } - - /// Constructs a uint2x4 matrix from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x4(double v) - { - this.c0 = (uint2)v; - this.c1 = (uint2)v; - this.c2 = (uint2)v; - this.c3 = (uint2)v; - } - - /// Constructs a uint2x4 matrix from a double2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2x4(double2x4 v) - { - this.c0 = (uint2)v.c0; - this.c1 = (uint2)v.c1; - this.c2 = (uint2)v.c2; - this.c3 = (uint2)v.c3; - } - - - /// Implicitly converts a single uint value to a uint2x4 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator uint2x4(uint v) { return new uint2x4(v); } - - /// Explicitly converts a single bool value to a uint2x4 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x4(bool v) { return new uint2x4(v); } - - /// Explicitly converts a bool2x4 matrix to a uint2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x4(bool2x4 v) { return new uint2x4(v); } - - /// Explicitly converts a single int value to a uint2x4 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x4(int v) { return new uint2x4(v); } - - /// Explicitly converts a int2x4 matrix to a uint2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x4(int2x4 v) { return new uint2x4(v); } - - /// Explicitly converts a single float value to a uint2x4 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x4(float v) { return new uint2x4(v); } - - /// Explicitly converts a float2x4 matrix to a uint2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x4(float2x4 v) { return new uint2x4(v); } - - /// Explicitly converts a single double value to a uint2x4 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x4(double v) { return new uint2x4(v); } - - /// Explicitly converts a double2x4 matrix to a uint2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint2x4(double2x4 v) { return new uint2x4(v); } - - - /// Returns the result of a componentwise multiplication operation on two uint2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator * (uint2x4 lhs, uint2x4 rhs) { return new uint2x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } - - /// Returns the result of a componentwise multiplication operation on a uint2x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator * (uint2x4 lhs, uint rhs) { return new uint2x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a uint value and a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator * (uint lhs, uint2x4 rhs) { return new uint2x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } - - - /// Returns the result of a componentwise addition operation on two uint2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator + (uint2x4 lhs, uint2x4 rhs) { return new uint2x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } - - /// Returns the result of a componentwise addition operation on a uint2x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator + (uint2x4 lhs, uint rhs) { return new uint2x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } - - /// Returns the result of a componentwise addition operation on a uint value and a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator + (uint lhs, uint2x4 rhs) { return new uint2x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } - - - /// Returns the result of a componentwise subtraction operation on two uint2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator - (uint2x4 lhs, uint2x4 rhs) { return new uint2x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } - - /// Returns the result of a componentwise subtraction operation on a uint2x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator - (uint2x4 lhs, uint rhs) { return new uint2x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a uint value and a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator - (uint lhs, uint2x4 rhs) { return new uint2x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } - - - /// Returns the result of a componentwise division operation on two uint2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator / (uint2x4 lhs, uint2x4 rhs) { return new uint2x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } - - /// Returns the result of a componentwise division operation on a uint2x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator / (uint2x4 lhs, uint rhs) { return new uint2x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } - - /// Returns the result of a componentwise division operation on a uint value and a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator / (uint lhs, uint2x4 rhs) { return new uint2x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } - - - /// Returns the result of a componentwise modulus operation on two uint2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator % (uint2x4 lhs, uint2x4 rhs) { return new uint2x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } - - /// Returns the result of a componentwise modulus operation on a uint2x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator % (uint2x4 lhs, uint rhs) { return new uint2x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } - - /// Returns the result of a componentwise modulus operation on a uint value and a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator % (uint lhs, uint2x4 rhs) { return new uint2x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } - - - /// Returns the result of a componentwise increment operation on a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator ++ (uint2x4 val) { return new uint2x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } - - - /// Returns the result of a componentwise decrement operation on a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator -- (uint2x4 val) { return new uint2x4 (--val.c0, --val.c1, --val.c2, --val.c3); } - - - /// Returns the result of a componentwise less than operation on two uint2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator < (uint2x4 lhs, uint2x4 rhs) { return new bool2x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } - - /// Returns the result of a componentwise less than operation on a uint2x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator < (uint2x4 lhs, uint rhs) { return new bool2x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } - - /// Returns the result of a componentwise less than operation on a uint value and a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator < (uint lhs, uint2x4 rhs) { return new bool2x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } - - - /// Returns the result of a componentwise less or equal operation on two uint2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator <= (uint2x4 lhs, uint2x4 rhs) { return new bool2x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } - - /// Returns the result of a componentwise less or equal operation on a uint2x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator <= (uint2x4 lhs, uint rhs) { return new bool2x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a uint value and a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator <= (uint lhs, uint2x4 rhs) { return new bool2x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } - - - /// Returns the result of a componentwise greater than operation on two uint2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator > (uint2x4 lhs, uint2x4 rhs) { return new bool2x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } - - /// Returns the result of a componentwise greater than operation on a uint2x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator > (uint2x4 lhs, uint rhs) { return new bool2x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } - - /// Returns the result of a componentwise greater than operation on a uint value and a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator > (uint lhs, uint2x4 rhs) { return new bool2x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } - - - /// Returns the result of a componentwise greater or equal operation on two uint2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator >= (uint2x4 lhs, uint2x4 rhs) { return new bool2x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } - - /// Returns the result of a componentwise greater or equal operation on a uint2x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator >= (uint2x4 lhs, uint rhs) { return new bool2x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a uint value and a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator >= (uint lhs, uint2x4 rhs) { return new bool2x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } - - - /// Returns the result of a componentwise unary minus operation on a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator - (uint2x4 val) { return new uint2x4 (-val.c0, -val.c1, -val.c2, -val.c3); } - - - /// Returns the result of a componentwise unary plus operation on a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator + (uint2x4 val) { return new uint2x4 (+val.c0, +val.c1, +val.c2, +val.c3); } - - - /// Returns the result of a componentwise left shift operation on a uint2x4 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator << (uint2x4 x, int n) { return new uint2x4 (x.c0 << n, x.c1 << n, x.c2 << n, x.c3 << n); } - - /// Returns the result of a componentwise right shift operation on a uint2x4 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator >> (uint2x4 x, int n) { return new uint2x4 (x.c0 >> n, x.c1 >> n, x.c2 >> n, x.c3 >> n); } - - /// Returns the result of a componentwise equality operation on two uint2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator == (uint2x4 lhs, uint2x4 rhs) { return new bool2x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } - - /// Returns the result of a componentwise equality operation on a uint2x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator == (uint2x4 lhs, uint rhs) { return new bool2x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } - - /// Returns the result of a componentwise equality operation on a uint value and a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator == (uint lhs, uint2x4 rhs) { return new bool2x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } - - - /// Returns the result of a componentwise not equal operation on two uint2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator != (uint2x4 lhs, uint2x4 rhs) { return new bool2x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } - - /// Returns the result of a componentwise not equal operation on a uint2x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator != (uint2x4 lhs, uint rhs) { return new bool2x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } - - /// Returns the result of a componentwise not equal operation on a uint value and a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2x4 operator != (uint lhs, uint2x4 rhs) { return new bool2x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } - - - /// Returns the result of a componentwise bitwise not operation on a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator ~ (uint2x4 val) { return new uint2x4 (~val.c0, ~val.c1, ~val.c2, ~val.c3); } - - - /// Returns the result of a componentwise bitwise and operation on two uint2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator & (uint2x4 lhs, uint2x4 rhs) { return new uint2x4 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2, lhs.c3 & rhs.c3); } - - /// Returns the result of a componentwise bitwise and operation on a uint2x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator & (uint2x4 lhs, uint rhs) { return new uint2x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a uint value and a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator & (uint lhs, uint2x4 rhs) { return new uint2x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); } - - - /// Returns the result of a componentwise bitwise or operation on two uint2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator | (uint2x4 lhs, uint2x4 rhs) { return new uint2x4 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2, lhs.c3 | rhs.c3); } - - /// Returns the result of a componentwise bitwise or operation on a uint2x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator | (uint2x4 lhs, uint rhs) { return new uint2x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a uint value and a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator | (uint lhs, uint2x4 rhs) { return new uint2x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two uint2x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator ^ (uint2x4 lhs, uint2x4 rhs) { return new uint2x4 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2, lhs.c3 ^ rhs.c3); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint2x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator ^ (uint2x4 lhs, uint rhs) { return new uint2x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 operator ^ (uint lhs, uint2x4 rhs) { return new uint2x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); } - - - - /// Returns the uint2 element at a specified index. - unsafe public ref uint2 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (uint2x4* array = &this) { return ref ((uint2*)array)[index]; } - } - } - - /// Returns true if the uint2x4 is equal to a given uint2x4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(uint2x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } - - /// Returns true if the uint2x4 is equal to a given uint2x4, false otherwise. - public override bool Equals(object o) { return Equals((uint2x4)o); } - - - /// Returns a hash code for the uint2x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the uint2x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("uint2x4({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7})", c0.x, c1.x, c2.x, c3.x, c0.y, c1.y, c2.y, c3.y); - } - - /// Returns a string representation of the uint2x4 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("uint2x4({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7})", 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)); - } - - } - - public static partial class math - { - /// Returns a uint2x4 matrix constructed from four uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 uint2x4(uint2 c0, uint2 c1, uint2 c2, uint2 c3) { return new uint2x4(c0, c1, c2, c3); } - - /// Returns a uint2x4 matrix constructed from from 8 uint values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 uint2x4(uint m00, uint m01, uint m02, uint m03, - uint m10, uint m11, uint m12, uint m13) - { - return new uint2x4(m00, m01, m02, m03, - m10, m11, m12, m13); - } - - /// Returns a uint2x4 matrix constructed from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 uint2x4(uint v) { return new uint2x4(v); } - - /// Returns a uint2x4 matrix constructed from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 uint2x4(bool v) { return new uint2x4(v); } - - /// Return a uint2x4 matrix constructed from a bool2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 uint2x4(bool2x4 v) { return new uint2x4(v); } - - /// Returns a uint2x4 matrix constructed from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 uint2x4(int v) { return new uint2x4(v); } - - /// Return a uint2x4 matrix constructed from a int2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 uint2x4(int2x4 v) { return new uint2x4(v); } - - /// Returns a uint2x4 matrix constructed from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 uint2x4(float v) { return new uint2x4(v); } - - /// Return a uint2x4 matrix constructed from a float2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 uint2x4(float2x4 v) { return new uint2x4(v); } - - /// Returns a uint2x4 matrix constructed from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 uint2x4(double v) { return new uint2x4(v); } - - /// Return a uint2x4 matrix constructed from a double2x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 uint2x4(double2x4 v) { return new uint2x4(v); } - - /// Return the uint4x2 transpose of a uint2x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 transpose(uint2x4 v) - { - return uint4x2( - v.c0.x, v.c0.y, - v.c1.x, v.c1.y, - v.c2.x, v.c2.y, - v.c3.x, v.c3.y); - } - - /// Returns a uint hash code of a uint2x4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(uint2x4 v) - { - return csum(v.c0 * uint2(0x9DF50593u, 0xF18EEB85u) + - v.c1 * uint2(0x9E19BFC3u, 0x8196B06Fu) + - v.c2 * uint2(0xD24EFA19u, 0x7D8048BBu) + - v.c3 * uint2(0x713BD06Fu, 0x753AD6ADu)) + 0xD19764C7u; - } - - /// - /// Returns a uint2 vector hash code of a uint2x4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 hashwide(uint2x4 v) - { - return (v.c0 * uint2(0xB5D0BF63u, 0xF9102C5Fu) + - v.c1 * uint2(0x9881FB9Fu, 0x56A1530Du) + - v.c2 * uint2(0x804B722Du, 0x738E50E5u) + - v.c3 * uint2(0x4FC93C25u, 0xCD0445A5u)) + 0xD2B90D9Bu; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/uint3.gen.cs b/Economy.Shared/Unity.Mathematics/uint3.gen.cs deleted file mode 100644 index 665d681c2..000000000 --- a/Economy.Shared/Unity.Mathematics/uint3.gen.cs +++ /dev/null @@ -1,1556 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; -using System.Diagnostics; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [DebuggerTypeProxy(typeof(uint3.DebuggerProxy))] - [System.Serializable] - public partial struct uint3 : System.IEquatable, IFormattable - { - public uint x; - public uint y; - public uint z; - - /// uint3 zero value. - public static readonly uint3 zero; - - /// Constructs a uint3 vector from three uint values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3(uint x, uint y, uint z) - { - this.x = x; - this.y = y; - this.z = z; - } - - /// Constructs a uint3 vector from a uint value and a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3(uint x, uint2 yz) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - } - - /// Constructs a uint3 vector from a uint2 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3(uint2 xy, uint z) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - } - - /// Constructs a uint3 vector from a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3(uint3 xyz) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - } - - /// Constructs a uint3 vector from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3(uint v) - { - this.x = v; - this.y = v; - this.z = v; - } - - /// Constructs a uint3 vector from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3(bool v) - { - this.x = v ? 1u : 0u; - this.y = v ? 1u : 0u; - this.z = v ? 1u : 0u; - } - - /// Constructs a uint3 vector from a bool3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3(bool3 v) - { - this.x = v.x ? 1u : 0u; - this.y = v.y ? 1u : 0u; - this.z = v.z ? 1u : 0u; - } - - /// Constructs a uint3 vector from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3(int v) - { - this.x = (uint)v; - this.y = (uint)v; - this.z = (uint)v; - } - - /// Constructs a uint3 vector from a int3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3(int3 v) - { - this.x = (uint)v.x; - this.y = (uint)v.y; - this.z = (uint)v.z; - } - - /// Constructs a uint3 vector from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3(float v) - { - this.x = (uint)v; - this.y = (uint)v; - this.z = (uint)v; - } - - /// Constructs a uint3 vector from a float3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3(float3 v) - { - this.x = (uint)v.x; - this.y = (uint)v.y; - this.z = (uint)v.z; - } - - /// Constructs a uint3 vector from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3(double v) - { - this.x = (uint)v; - this.y = (uint)v; - this.z = (uint)v; - } - - /// Constructs a uint3 vector from a double3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3(double3 v) - { - this.x = (uint)v.x; - this.y = (uint)v.y; - this.z = (uint)v.z; - } - - - /// Implicitly converts a single uint value to a uint3 vector by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator uint3(uint v) { return new uint3(v); } - - /// Explicitly converts a single bool value to a uint3 vector by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3(bool v) { return new uint3(v); } - - /// Explicitly converts a bool3 vector to a uint3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3(bool3 v) { return new uint3(v); } - - /// Explicitly converts a single int value to a uint3 vector by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3(int v) { return new uint3(v); } - - /// Explicitly converts a int3 vector to a uint3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3(int3 v) { return new uint3(v); } - - /// Explicitly converts a single float value to a uint3 vector by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3(float v) { return new uint3(v); } - - /// Explicitly converts a float3 vector to a uint3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3(float3 v) { return new uint3(v); } - - /// Explicitly converts a single double value to a uint3 vector by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3(double v) { return new uint3(v); } - - /// Explicitly converts a double3 vector to a uint3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3(double3 v) { return new uint3(v); } - - - /// Returns the result of a componentwise multiplication operation on two uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator * (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } - - /// Returns the result of a componentwise multiplication operation on a uint3 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator * (uint3 lhs, uint rhs) { return new uint3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } - - /// Returns the result of a componentwise multiplication operation on a uint value and a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator * (uint lhs, uint3 rhs) { return new uint3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } - - - /// Returns the result of a componentwise addition operation on two uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator + (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } - - /// Returns the result of a componentwise addition operation on a uint3 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator + (uint3 lhs, uint rhs) { return new uint3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } - - /// Returns the result of a componentwise addition operation on a uint value and a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator + (uint lhs, uint3 rhs) { return new uint3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } - - - /// Returns the result of a componentwise subtraction operation on two uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator - (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } - - /// Returns the result of a componentwise subtraction operation on a uint3 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator - (uint3 lhs, uint rhs) { return new uint3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } - - /// Returns the result of a componentwise subtraction operation on a uint value and a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator - (uint lhs, uint3 rhs) { return new uint3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } - - - /// Returns the result of a componentwise division operation on two uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator / (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } - - /// Returns the result of a componentwise division operation on a uint3 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator / (uint3 lhs, uint rhs) { return new uint3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } - - /// Returns the result of a componentwise division operation on a uint value and a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator / (uint lhs, uint3 rhs) { return new uint3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } - - - /// Returns the result of a componentwise modulus operation on two uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator % (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x % rhs.x, lhs.y % rhs.y, lhs.z % rhs.z); } - - /// Returns the result of a componentwise modulus operation on a uint3 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator % (uint3 lhs, uint rhs) { return new uint3 (lhs.x % rhs, lhs.y % rhs, lhs.z % rhs); } - - /// Returns the result of a componentwise modulus operation on a uint value and a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator % (uint lhs, uint3 rhs) { return new uint3 (lhs % rhs.x, lhs % rhs.y, lhs % rhs.z); } - - - /// Returns the result of a componentwise increment operation on a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator ++ (uint3 val) { return new uint3 (++val.x, ++val.y, ++val.z); } - - - /// Returns the result of a componentwise decrement operation on a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator -- (uint3 val) { return new uint3 (--val.x, --val.y, --val.z); } - - - /// Returns the result of a componentwise less than operation on two uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } - - /// Returns the result of a componentwise less than operation on a uint3 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (uint3 lhs, uint rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } - - /// Returns the result of a componentwise less than operation on a uint value and a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (uint lhs, uint3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } - - - /// Returns the result of a componentwise less or equal operation on two uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } - - /// Returns the result of a componentwise less or equal operation on a uint3 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (uint3 lhs, uint rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a uint value and a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (uint lhs, uint3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } - - - /// Returns the result of a componentwise greater than operation on two uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } - - /// Returns the result of a componentwise greater than operation on a uint3 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (uint3 lhs, uint rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } - - /// Returns the result of a componentwise greater than operation on a uint value and a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (uint lhs, uint3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } - - - /// Returns the result of a componentwise greater or equal operation on two uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } - - /// Returns the result of a componentwise greater or equal operation on a uint3 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (uint3 lhs, uint rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a uint value and a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (uint lhs, uint3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } - - - /// Returns the result of a componentwise unary minus operation on a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator - (uint3 val) { return new uint3 ((uint)-val.x, (uint)-val.y, (uint)-val.z); } - - - /// Returns the result of a componentwise unary plus operation on a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator + (uint3 val) { return new uint3 (+val.x, +val.y, +val.z); } - - - /// Returns the result of a componentwise left shift operation on a uint3 vector by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator << (uint3 x, int n) { return new uint3 (x.x << n, x.y << n, x.z << n); } - - /// Returns the result of a componentwise right shift operation on a uint3 vector by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator >> (uint3 x, int n) { return new uint3 (x.x >> n, x.y >> n, x.z >> n); } - - /// Returns the result of a componentwise equality operation on two uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } - - /// Returns the result of a componentwise equality operation on a uint3 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (uint3 lhs, uint rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } - - /// Returns the result of a componentwise equality operation on a uint value and a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (uint lhs, uint3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } - - - /// Returns the result of a componentwise not equal operation on two uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } - - /// Returns the result of a componentwise not equal operation on a uint3 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (uint3 lhs, uint rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } - - /// Returns the result of a componentwise not equal operation on a uint value and a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (uint lhs, uint3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } - - - /// Returns the result of a componentwise bitwise not operation on a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator ~ (uint3 val) { return new uint3 (~val.x, ~val.y, ~val.z); } - - - /// Returns the result of a componentwise bitwise and operation on two uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator & (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } - - /// Returns the result of a componentwise bitwise and operation on a uint3 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator & (uint3 lhs, uint rhs) { return new uint3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a uint value and a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator & (uint lhs, uint3 rhs) { return new uint3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } - - - /// Returns the result of a componentwise bitwise or operation on two uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator | (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } - - /// Returns the result of a componentwise bitwise or operation on a uint3 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator | (uint3 lhs, uint rhs) { return new uint3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a uint value and a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator | (uint lhs, uint3 rhs) { return new uint3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator ^ (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint3 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator ^ (uint3 lhs, uint rhs) { return new uint3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator ^ (uint lhs, uint3 rhs) { return new uint3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } - - - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(z, z); } - } - - - - /// Returns the uint element at a specified index. - unsafe public uint this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (uint3* array = &this) { return ((uint*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (uint* array = &x) { array[index] = value; } - } - } - - /// Returns true if the uint3 is equal to a given uint3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(uint3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } - - /// Returns true if the uint3 is equal to a given uint3, false otherwise. - public override bool Equals(object o) { return Equals((uint3)o); } - - - /// Returns a hash code for the uint3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the uint3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("uint3({0}, {1}, {2})", x, y, z); - } - - /// Returns a string representation of the uint3 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("uint3({0}, {1}, {2})", x.ToString(format, formatProvider), y.ToString(format, formatProvider), z.ToString(format, formatProvider)); - } - - internal sealed class DebuggerProxy - { - public uint x; - public uint y; - public uint z; - public DebuggerProxy(uint3 v) - { - x = v.x; - y = v.y; - z = v.z; - } - } - - } - - public static partial class math - { - /// Returns a uint3 vector constructed from three uint values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(uint x, uint y, uint z) { return new uint3(x, y, z); } - - /// Returns a uint3 vector constructed from a uint value and a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(uint x, uint2 yz) { return new uint3(x, yz); } - - /// Returns a uint3 vector constructed from a uint2 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(uint2 xy, uint z) { return new uint3(xy, z); } - - /// Returns a uint3 vector constructed from a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(uint3 xyz) { return new uint3(xyz); } - - /// Returns a uint3 vector constructed from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(uint v) { return new uint3(v); } - - /// Returns a uint3 vector constructed from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(bool v) { return new uint3(v); } - - /// Return a uint3 vector constructed from a bool3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(bool3 v) { return new uint3(v); } - - /// Returns a uint3 vector constructed from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(int v) { return new uint3(v); } - - /// Return a uint3 vector constructed from a int3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(int3 v) { return new uint3(v); } - - /// Returns a uint3 vector constructed from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(float v) { return new uint3(v); } - - /// Return a uint3 vector constructed from a float3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(float3 v) { return new uint3(v); } - - /// Returns a uint3 vector constructed from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(double v) { return new uint3(v); } - - /// Return a uint3 vector constructed from a double3 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(double3 v) { return new uint3(v); } - - /// Returns a uint hash code of a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(uint3 v) - { - return csum(v * uint3(0xCD266C89u, 0xF1852A33u, 0x77E35E77u)) + 0x863E3729u; - } - - /// - /// Returns a uint3 vector hash code of a uint3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(uint3 v) - { - return (v * uint3(0xE191B035u, 0x68586FAFu, 0xD4DFF6D3u)) + 0xCB634F4Du; - } - - /// Returns the result of specified shuffling of the components from two uint3 vectors into a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint shuffle(uint3 a, uint3 b, ShuffleComponent x) - { - return select_shuffle_component(a, b, x); - } - - /// Returns the result of specified shuffling of the components from two uint3 vectors into a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 shuffle(uint3 a, uint3 b, ShuffleComponent x, ShuffleComponent y) - { - return uint2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); - } - - /// Returns the result of specified shuffling of the components from two uint3 vectors into a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 shuffle(uint3 a, uint3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) - { - return uint3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); - } - - /// Returns the result of specified shuffling of the components from two uint3 vectors into a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 shuffle(uint3 a, uint3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) - { - return uint4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint select_shuffle_component(uint3 a, uint3 b, ShuffleComponent component) - { - switch(component) - { - case ShuffleComponent.LeftX: - return a.x; - case ShuffleComponent.LeftY: - return a.y; - case ShuffleComponent.LeftZ: - return a.z; - case ShuffleComponent.RightX: - return b.x; - case ShuffleComponent.RightY: - return b.y; - case ShuffleComponent.RightZ: - return b.z; - default: - throw new System.ArgumentException("Invalid shuffle component: " + component); - } - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/uint3x2.gen.cs b/Economy.Shared/Unity.Mathematics/uint3x2.gen.cs deleted file mode 100644 index fa231da42..000000000 --- a/Economy.Shared/Unity.Mathematics/uint3x2.gen.cs +++ /dev/null @@ -1,494 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct uint3x2 : System.IEquatable, IFormattable - { - public uint3 c0; - public uint3 c1; - - /// uint3x2 zero value. - public static readonly uint3x2 zero; - - /// Constructs a uint3x2 matrix from two uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x2(uint3 c0, uint3 c1) - { - this.c0 = c0; - this.c1 = c1; - } - - /// Constructs a uint3x2 matrix from 6 uint values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x2(uint m00, uint m01, - uint m10, uint m11, - uint m20, uint m21) - { - this.c0 = new uint3(m00, m10, m20); - this.c1 = new uint3(m01, m11, m21); - } - - /// Constructs a uint3x2 matrix from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x2(uint v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a uint3x2 matrix from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x2(bool v) - { - this.c0 = math.select(new uint3(0u), new uint3(1u), v); - this.c1 = math.select(new uint3(0u), new uint3(1u), v); - } - - /// Constructs a uint3x2 matrix from a bool3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x2(bool3x2 v) - { - this.c0 = math.select(new uint3(0u), new uint3(1u), v.c0); - this.c1 = math.select(new uint3(0u), new uint3(1u), v.c1); - } - - /// Constructs a uint3x2 matrix from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x2(int v) - { - this.c0 = (uint3)v; - this.c1 = (uint3)v; - } - - /// Constructs a uint3x2 matrix from a int3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x2(int3x2 v) - { - this.c0 = (uint3)v.c0; - this.c1 = (uint3)v.c1; - } - - /// Constructs a uint3x2 matrix from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x2(float v) - { - this.c0 = (uint3)v; - this.c1 = (uint3)v; - } - - /// Constructs a uint3x2 matrix from a float3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x2(float3x2 v) - { - this.c0 = (uint3)v.c0; - this.c1 = (uint3)v.c1; - } - - /// Constructs a uint3x2 matrix from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x2(double v) - { - this.c0 = (uint3)v; - this.c1 = (uint3)v; - } - - /// Constructs a uint3x2 matrix from a double3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x2(double3x2 v) - { - this.c0 = (uint3)v.c0; - this.c1 = (uint3)v.c1; - } - - - /// Implicitly converts a single uint value to a uint3x2 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator uint3x2(uint v) { return new uint3x2(v); } - - /// Explicitly converts a single bool value to a uint3x2 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x2(bool v) { return new uint3x2(v); } - - /// Explicitly converts a bool3x2 matrix to a uint3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x2(bool3x2 v) { return new uint3x2(v); } - - /// Explicitly converts a single int value to a uint3x2 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x2(int v) { return new uint3x2(v); } - - /// Explicitly converts a int3x2 matrix to a uint3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x2(int3x2 v) { return new uint3x2(v); } - - /// Explicitly converts a single float value to a uint3x2 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x2(float v) { return new uint3x2(v); } - - /// Explicitly converts a float3x2 matrix to a uint3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x2(float3x2 v) { return new uint3x2(v); } - - /// Explicitly converts a single double value to a uint3x2 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x2(double v) { return new uint3x2(v); } - - /// Explicitly converts a double3x2 matrix to a uint3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x2(double3x2 v) { return new uint3x2(v); } - - - /// Returns the result of a componentwise multiplication operation on two uint3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator * (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } - - /// Returns the result of a componentwise multiplication operation on a uint3x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator * (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 * rhs, lhs.c1 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a uint value and a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator * (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs * rhs.c0, lhs * rhs.c1); } - - - /// Returns the result of a componentwise addition operation on two uint3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator + (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } - - /// Returns the result of a componentwise addition operation on a uint3x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator + (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 + rhs, lhs.c1 + rhs); } - - /// Returns the result of a componentwise addition operation on a uint value and a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator + (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs + rhs.c0, lhs + rhs.c1); } - - - /// Returns the result of a componentwise subtraction operation on two uint3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator - (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } - - /// Returns the result of a componentwise subtraction operation on a uint3x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator - (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 - rhs, lhs.c1 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a uint value and a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator - (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs - rhs.c0, lhs - rhs.c1); } - - - /// Returns the result of a componentwise division operation on two uint3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator / (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } - - /// Returns the result of a componentwise division operation on a uint3x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator / (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 / rhs, lhs.c1 / rhs); } - - /// Returns the result of a componentwise division operation on a uint value and a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator / (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs / rhs.c0, lhs / rhs.c1); } - - - /// Returns the result of a componentwise modulus operation on two uint3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator % (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } - - /// Returns the result of a componentwise modulus operation on a uint3x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator % (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 % rhs, lhs.c1 % rhs); } - - /// Returns the result of a componentwise modulus operation on a uint value and a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator % (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs % rhs.c0, lhs % rhs.c1); } - - - /// Returns the result of a componentwise increment operation on a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator ++ (uint3x2 val) { return new uint3x2 (++val.c0, ++val.c1); } - - - /// Returns the result of a componentwise decrement operation on a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator -- (uint3x2 val) { return new uint3x2 (--val.c0, --val.c1); } - - - /// Returns the result of a componentwise less than operation on two uint3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator < (uint3x2 lhs, uint3x2 rhs) { return new bool3x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } - - /// Returns the result of a componentwise less than operation on a uint3x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator < (uint3x2 lhs, uint rhs) { return new bool3x2 (lhs.c0 < rhs, lhs.c1 < rhs); } - - /// Returns the result of a componentwise less than operation on a uint value and a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator < (uint lhs, uint3x2 rhs) { return new bool3x2 (lhs < rhs.c0, lhs < rhs.c1); } - - - /// Returns the result of a componentwise less or equal operation on two uint3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator <= (uint3x2 lhs, uint3x2 rhs) { return new bool3x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } - - /// Returns the result of a componentwise less or equal operation on a uint3x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator <= (uint3x2 lhs, uint rhs) { return new bool3x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a uint value and a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator <= (uint lhs, uint3x2 rhs) { return new bool3x2 (lhs <= rhs.c0, lhs <= rhs.c1); } - - - /// Returns the result of a componentwise greater than operation on two uint3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator > (uint3x2 lhs, uint3x2 rhs) { return new bool3x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } - - /// Returns the result of a componentwise greater than operation on a uint3x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator > (uint3x2 lhs, uint rhs) { return new bool3x2 (lhs.c0 > rhs, lhs.c1 > rhs); } - - /// Returns the result of a componentwise greater than operation on a uint value and a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator > (uint lhs, uint3x2 rhs) { return new bool3x2 (lhs > rhs.c0, lhs > rhs.c1); } - - - /// Returns the result of a componentwise greater or equal operation on two uint3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator >= (uint3x2 lhs, uint3x2 rhs) { return new bool3x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } - - /// Returns the result of a componentwise greater or equal operation on a uint3x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator >= (uint3x2 lhs, uint rhs) { return new bool3x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a uint value and a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator >= (uint lhs, uint3x2 rhs) { return new bool3x2 (lhs >= rhs.c0, lhs >= rhs.c1); } - - - /// Returns the result of a componentwise unary minus operation on a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator - (uint3x2 val) { return new uint3x2 (-val.c0, -val.c1); } - - - /// Returns the result of a componentwise unary plus operation on a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator + (uint3x2 val) { return new uint3x2 (+val.c0, +val.c1); } - - - /// Returns the result of a componentwise left shift operation on a uint3x2 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator << (uint3x2 x, int n) { return new uint3x2 (x.c0 << n, x.c1 << n); } - - /// Returns the result of a componentwise right shift operation on a uint3x2 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator >> (uint3x2 x, int n) { return new uint3x2 (x.c0 >> n, x.c1 >> n); } - - /// Returns the result of a componentwise equality operation on two uint3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator == (uint3x2 lhs, uint3x2 rhs) { return new bool3x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } - - /// Returns the result of a componentwise equality operation on a uint3x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator == (uint3x2 lhs, uint rhs) { return new bool3x2 (lhs.c0 == rhs, lhs.c1 == rhs); } - - /// Returns the result of a componentwise equality operation on a uint value and a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator == (uint lhs, uint3x2 rhs) { return new bool3x2 (lhs == rhs.c0, lhs == rhs.c1); } - - - /// Returns the result of a componentwise not equal operation on two uint3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator != (uint3x2 lhs, uint3x2 rhs) { return new bool3x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } - - /// Returns the result of a componentwise not equal operation on a uint3x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator != (uint3x2 lhs, uint rhs) { return new bool3x2 (lhs.c0 != rhs, lhs.c1 != rhs); } - - /// Returns the result of a componentwise not equal operation on a uint value and a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x2 operator != (uint lhs, uint3x2 rhs) { return new bool3x2 (lhs != rhs.c0, lhs != rhs.c1); } - - - /// Returns the result of a componentwise bitwise not operation on a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator ~ (uint3x2 val) { return new uint3x2 (~val.c0, ~val.c1); } - - - /// Returns the result of a componentwise bitwise and operation on two uint3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator & (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); } - - /// Returns the result of a componentwise bitwise and operation on a uint3x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator & (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 & rhs, lhs.c1 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a uint value and a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator & (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs & rhs.c0, lhs & rhs.c1); } - - - /// Returns the result of a componentwise bitwise or operation on two uint3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator | (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); } - - /// Returns the result of a componentwise bitwise or operation on a uint3x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator | (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 | rhs, lhs.c1 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a uint value and a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator | (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs | rhs.c0, lhs | rhs.c1); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two uint3x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator ^ (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint3x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator ^ (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 operator ^ (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); } - - - - /// Returns the uint3 element at a specified index. - unsafe public ref uint3 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (uint3x2* array = &this) { return ref ((uint3*)array)[index]; } - } - } - - /// Returns true if the uint3x2 is equal to a given uint3x2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(uint3x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } - - /// Returns true if the uint3x2 is equal to a given uint3x2, false otherwise. - public override bool Equals(object o) { return Equals((uint3x2)o); } - - - /// Returns a hash code for the uint3x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the uint3x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("uint3x2({0}, {1}, {2}, {3}, {4}, {5})", c0.x, c1.x, c0.y, c1.y, c0.z, c1.z); - } - - /// Returns a string representation of the uint3x2 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - 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)); - } - - } - - public static partial class math - { - /// Returns a uint3x2 matrix constructed from two uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 uint3x2(uint3 c0, uint3 c1) { return new uint3x2(c0, c1); } - - /// Returns a uint3x2 matrix constructed from from 6 uint values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 uint3x2(uint m00, uint m01, - uint m10, uint m11, - uint m20, uint m21) - { - return new uint3x2(m00, m01, - m10, m11, - m20, m21); - } - - /// Returns a uint3x2 matrix constructed from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 uint3x2(uint v) { return new uint3x2(v); } - - /// Returns a uint3x2 matrix constructed from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 uint3x2(bool v) { return new uint3x2(v); } - - /// Return a uint3x2 matrix constructed from a bool3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 uint3x2(bool3x2 v) { return new uint3x2(v); } - - /// Returns a uint3x2 matrix constructed from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 uint3x2(int v) { return new uint3x2(v); } - - /// Return a uint3x2 matrix constructed from a int3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 uint3x2(int3x2 v) { return new uint3x2(v); } - - /// Returns a uint3x2 matrix constructed from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 uint3x2(float v) { return new uint3x2(v); } - - /// Return a uint3x2 matrix constructed from a float3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 uint3x2(float3x2 v) { return new uint3x2(v); } - - /// Returns a uint3x2 matrix constructed from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 uint3x2(double v) { return new uint3x2(v); } - - /// Return a uint3x2 matrix constructed from a double3x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x2 uint3x2(double3x2 v) { return new uint3x2(v); } - - /// Return the uint2x3 transpose of a uint3x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x3 transpose(uint3x2 v) - { - return uint2x3( - v.c0.x, v.c0.y, v.c0.z, - v.c1.x, v.c1.y, v.c1.z); - } - - /// Returns a uint hash code of a uint3x2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(uint3x2 v) - { - return csum(v.c0 * uint3(0x515D90F5u, 0xEC9F68F3u, 0xF9EA92D5u) + - v.c1 * uint3(0xC2FAFCB9u, 0x616E9CA1u, 0xC5C5394Bu)) + 0xCAE78587u; - } - - /// - /// Returns a uint3 vector hash code of a uint3x2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(uint3x2 v) - { - return (v.c0 * uint3(0x7A1541C9u, 0xF83BD927u, 0x6A243BCBu) + - v.c1 * uint3(0x509B84C9u, 0x91D13847u, 0x52F7230Fu)) + 0xCF286E83u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/uint3x3.gen.cs b/Economy.Shared/Unity.Mathematics/uint3x3.gen.cs deleted file mode 100644 index f774aabc3..000000000 --- a/Economy.Shared/Unity.Mathematics/uint3x3.gen.cs +++ /dev/null @@ -1,512 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct uint3x3 : System.IEquatable, IFormattable - { - public uint3 c0; - public uint3 c1; - public uint3 c2; - - /// uint3x3 identity transform. - public static readonly uint3x3 identity = new uint3x3(1u, 0u, 0u, 0u, 1u, 0u, 0u, 0u, 1u); - - /// uint3x3 zero value. - public static readonly uint3x3 zero; - - /// Constructs a uint3x3 matrix from three uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x3(uint3 c0, uint3 c1, uint3 c2) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - } - - /// Constructs a uint3x3 matrix from 9 uint values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x3(uint m00, uint m01, uint m02, - uint m10, uint m11, uint m12, - uint m20, uint m21, uint m22) - { - this.c0 = new uint3(m00, m10, m20); - this.c1 = new uint3(m01, m11, m21); - this.c2 = new uint3(m02, m12, m22); - } - - /// Constructs a uint3x3 matrix from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x3(uint v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a uint3x3 matrix from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x3(bool v) - { - this.c0 = math.select(new uint3(0u), new uint3(1u), v); - this.c1 = math.select(new uint3(0u), new uint3(1u), v); - this.c2 = math.select(new uint3(0u), new uint3(1u), v); - } - - /// Constructs a uint3x3 matrix from a bool3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x3(bool3x3 v) - { - this.c0 = math.select(new uint3(0u), new uint3(1u), v.c0); - this.c1 = math.select(new uint3(0u), new uint3(1u), v.c1); - this.c2 = math.select(new uint3(0u), new uint3(1u), v.c2); - } - - /// Constructs a uint3x3 matrix from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x3(int v) - { - this.c0 = (uint3)v; - this.c1 = (uint3)v; - this.c2 = (uint3)v; - } - - /// Constructs a uint3x3 matrix from a int3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x3(int3x3 v) - { - this.c0 = (uint3)v.c0; - this.c1 = (uint3)v.c1; - this.c2 = (uint3)v.c2; - } - - /// Constructs a uint3x3 matrix from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x3(float v) - { - this.c0 = (uint3)v; - this.c1 = (uint3)v; - this.c2 = (uint3)v; - } - - /// Constructs a uint3x3 matrix from a float3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x3(float3x3 v) - { - this.c0 = (uint3)v.c0; - this.c1 = (uint3)v.c1; - this.c2 = (uint3)v.c2; - } - - /// Constructs a uint3x3 matrix from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x3(double v) - { - this.c0 = (uint3)v; - this.c1 = (uint3)v; - this.c2 = (uint3)v; - } - - /// Constructs a uint3x3 matrix from a double3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x3(double3x3 v) - { - this.c0 = (uint3)v.c0; - this.c1 = (uint3)v.c1; - this.c2 = (uint3)v.c2; - } - - - /// Implicitly converts a single uint value to a uint3x3 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator uint3x3(uint v) { return new uint3x3(v); } - - /// Explicitly converts a single bool value to a uint3x3 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x3(bool v) { return new uint3x3(v); } - - /// Explicitly converts a bool3x3 matrix to a uint3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x3(bool3x3 v) { return new uint3x3(v); } - - /// Explicitly converts a single int value to a uint3x3 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x3(int v) { return new uint3x3(v); } - - /// Explicitly converts a int3x3 matrix to a uint3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x3(int3x3 v) { return new uint3x3(v); } - - /// Explicitly converts a single float value to a uint3x3 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x3(float v) { return new uint3x3(v); } - - /// Explicitly converts a float3x3 matrix to a uint3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x3(float3x3 v) { return new uint3x3(v); } - - /// Explicitly converts a single double value to a uint3x3 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x3(double v) { return new uint3x3(v); } - - /// Explicitly converts a double3x3 matrix to a uint3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x3(double3x3 v) { return new uint3x3(v); } - - - /// Returns the result of a componentwise multiplication operation on two uint3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator * (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } - - /// Returns the result of a componentwise multiplication operation on a uint3x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator * (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a uint value and a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator * (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } - - - /// Returns the result of a componentwise addition operation on two uint3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator + (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } - - /// Returns the result of a componentwise addition operation on a uint3x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator + (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } - - /// Returns the result of a componentwise addition operation on a uint value and a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator + (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } - - - /// Returns the result of a componentwise subtraction operation on two uint3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator - (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } - - /// Returns the result of a componentwise subtraction operation on a uint3x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator - (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a uint value and a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator - (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } - - - /// Returns the result of a componentwise division operation on two uint3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator / (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } - - /// Returns the result of a componentwise division operation on a uint3x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator / (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } - - /// Returns the result of a componentwise division operation on a uint value and a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator / (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } - - - /// Returns the result of a componentwise modulus operation on two uint3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator % (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } - - /// Returns the result of a componentwise modulus operation on a uint3x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator % (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } - - /// Returns the result of a componentwise modulus operation on a uint value and a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator % (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } - - - /// Returns the result of a componentwise increment operation on a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator ++ (uint3x3 val) { return new uint3x3 (++val.c0, ++val.c1, ++val.c2); } - - - /// Returns the result of a componentwise decrement operation on a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator -- (uint3x3 val) { return new uint3x3 (--val.c0, --val.c1, --val.c2); } - - - /// Returns the result of a componentwise less than operation on two uint3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator < (uint3x3 lhs, uint3x3 rhs) { return new bool3x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } - - /// Returns the result of a componentwise less than operation on a uint3x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator < (uint3x3 lhs, uint rhs) { return new bool3x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } - - /// Returns the result of a componentwise less than operation on a uint value and a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator < (uint lhs, uint3x3 rhs) { return new bool3x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } - - - /// Returns the result of a componentwise less or equal operation on two uint3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator <= (uint3x3 lhs, uint3x3 rhs) { return new bool3x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } - - /// Returns the result of a componentwise less or equal operation on a uint3x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator <= (uint3x3 lhs, uint rhs) { return new bool3x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a uint value and a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator <= (uint lhs, uint3x3 rhs) { return new bool3x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } - - - /// Returns the result of a componentwise greater than operation on two uint3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator > (uint3x3 lhs, uint3x3 rhs) { return new bool3x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } - - /// Returns the result of a componentwise greater than operation on a uint3x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator > (uint3x3 lhs, uint rhs) { return new bool3x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } - - /// Returns the result of a componentwise greater than operation on a uint value and a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator > (uint lhs, uint3x3 rhs) { return new bool3x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } - - - /// Returns the result of a componentwise greater or equal operation on two uint3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator >= (uint3x3 lhs, uint3x3 rhs) { return new bool3x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } - - /// Returns the result of a componentwise greater or equal operation on a uint3x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator >= (uint3x3 lhs, uint rhs) { return new bool3x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a uint value and a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator >= (uint lhs, uint3x3 rhs) { return new bool3x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } - - - /// Returns the result of a componentwise unary minus operation on a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator - (uint3x3 val) { return new uint3x3 (-val.c0, -val.c1, -val.c2); } - - - /// Returns the result of a componentwise unary plus operation on a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator + (uint3x3 val) { return new uint3x3 (+val.c0, +val.c1, +val.c2); } - - - /// Returns the result of a componentwise left shift operation on a uint3x3 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator << (uint3x3 x, int n) { return new uint3x3 (x.c0 << n, x.c1 << n, x.c2 << n); } - - /// Returns the result of a componentwise right shift operation on a uint3x3 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator >> (uint3x3 x, int n) { return new uint3x3 (x.c0 >> n, x.c1 >> n, x.c2 >> n); } - - /// Returns the result of a componentwise equality operation on two uint3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator == (uint3x3 lhs, uint3x3 rhs) { return new bool3x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } - - /// Returns the result of a componentwise equality operation on a uint3x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator == (uint3x3 lhs, uint rhs) { return new bool3x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } - - /// Returns the result of a componentwise equality operation on a uint value and a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator == (uint lhs, uint3x3 rhs) { return new bool3x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } - - - /// Returns the result of a componentwise not equal operation on two uint3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator != (uint3x3 lhs, uint3x3 rhs) { return new bool3x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } - - /// Returns the result of a componentwise not equal operation on a uint3x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator != (uint3x3 lhs, uint rhs) { return new bool3x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } - - /// Returns the result of a componentwise not equal operation on a uint value and a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x3 operator != (uint lhs, uint3x3 rhs) { return new bool3x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } - - - /// Returns the result of a componentwise bitwise not operation on a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator ~ (uint3x3 val) { return new uint3x3 (~val.c0, ~val.c1, ~val.c2); } - - - /// Returns the result of a componentwise bitwise and operation on two uint3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator & (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); } - - /// Returns the result of a componentwise bitwise and operation on a uint3x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator & (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a uint value and a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator & (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); } - - - /// Returns the result of a componentwise bitwise or operation on two uint3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator | (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); } - - /// Returns the result of a componentwise bitwise or operation on a uint3x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator | (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a uint value and a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator | (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two uint3x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator ^ (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint3x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator ^ (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 operator ^ (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); } - - - - /// Returns the uint3 element at a specified index. - unsafe public ref uint3 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (uint3x3* array = &this) { return ref ((uint3*)array)[index]; } - } - } - - /// Returns true if the uint3x3 is equal to a given uint3x3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(uint3x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } - - /// Returns true if the uint3x3 is equal to a given uint3x3, false otherwise. - public override bool Equals(object o) { return Equals((uint3x3)o); } - - - /// Returns a hash code for the uint3x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the uint3x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - 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); - } - - /// Returns a string representation of the uint3x3 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - 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)); - } - - } - - public static partial class math - { - /// Returns a uint3x3 matrix constructed from three uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 uint3x3(uint3 c0, uint3 c1, uint3 c2) { return new uint3x3(c0, c1, c2); } - - /// Returns a uint3x3 matrix constructed from from 9 uint values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 uint3x3(uint m00, uint m01, uint m02, - uint m10, uint m11, uint m12, - uint m20, uint m21, uint m22) - { - return new uint3x3(m00, m01, m02, - m10, m11, m12, - m20, m21, m22); - } - - /// Returns a uint3x3 matrix constructed from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 uint3x3(uint v) { return new uint3x3(v); } - - /// Returns a uint3x3 matrix constructed from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 uint3x3(bool v) { return new uint3x3(v); } - - /// Return a uint3x3 matrix constructed from a bool3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 uint3x3(bool3x3 v) { return new uint3x3(v); } - - /// Returns a uint3x3 matrix constructed from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 uint3x3(int v) { return new uint3x3(v); } - - /// Return a uint3x3 matrix constructed from a int3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 uint3x3(int3x3 v) { return new uint3x3(v); } - - /// Returns a uint3x3 matrix constructed from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 uint3x3(float v) { return new uint3x3(v); } - - /// Return a uint3x3 matrix constructed from a float3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 uint3x3(float3x3 v) { return new uint3x3(v); } - - /// Returns a uint3x3 matrix constructed from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 uint3x3(double v) { return new uint3x3(v); } - - /// Return a uint3x3 matrix constructed from a double3x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 uint3x3(double3x3 v) { return new uint3x3(v); } - - /// Return the uint3x3 transpose of a uint3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x3 transpose(uint3x3 v) - { - return uint3x3( - v.c0.x, v.c0.y, v.c0.z, - v.c1.x, v.c1.y, v.c1.z, - v.c2.x, v.c2.y, v.c2.z); - } - - /// Returns a uint hash code of a uint3x3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(uint3x3 v) - { - return csum(v.c0 * uint3(0xAC60D0C3u, 0x9263662Fu, 0xE69626FFu) + - v.c1 * uint3(0xBD010EEBu, 0x9CEDE1D1u, 0x43BE0B51u) + - v.c2 * uint3(0xAF836EE1u, 0xB130C137u, 0x54834775u)) + 0x7C022221u; - } - - /// - /// Returns a uint3 vector hash code of a uint3x3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(uint3x3 v) - { - return (v.c0 * uint3(0xA2D00EDFu, 0xA8977779u, 0x9F1C739Bu) + - v.c1 * uint3(0x4B1BD187u, 0x9DF50593u, 0xF18EEB85u) + - v.c2 * uint3(0x9E19BFC3u, 0x8196B06Fu, 0xD24EFA19u)) + 0x7D8048BBu; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/uint3x4.gen.cs b/Economy.Shared/Unity.Mathematics/uint3x4.gen.cs deleted file mode 100644 index 222079654..000000000 --- a/Economy.Shared/Unity.Mathematics/uint3x4.gen.cs +++ /dev/null @@ -1,524 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct uint3x4 : System.IEquatable, IFormattable - { - public uint3 c0; - public uint3 c1; - public uint3 c2; - public uint3 c3; - - /// uint3x4 zero value. - public static readonly uint3x4 zero; - - /// Constructs a uint3x4 matrix from four uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x4(uint3 c0, uint3 c1, uint3 c2, uint3 c3) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - this.c3 = c3; - } - - /// Constructs a uint3x4 matrix from 12 uint values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x4(uint m00, uint m01, uint m02, uint m03, - uint m10, uint m11, uint m12, uint m13, - uint m20, uint m21, uint m22, uint m23) - { - this.c0 = new uint3(m00, m10, m20); - this.c1 = new uint3(m01, m11, m21); - this.c2 = new uint3(m02, m12, m22); - this.c3 = new uint3(m03, m13, m23); - } - - /// Constructs a uint3x4 matrix from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x4(uint v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a uint3x4 matrix from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x4(bool v) - { - this.c0 = math.select(new uint3(0u), new uint3(1u), v); - this.c1 = math.select(new uint3(0u), new uint3(1u), v); - this.c2 = math.select(new uint3(0u), new uint3(1u), v); - this.c3 = math.select(new uint3(0u), new uint3(1u), v); - } - - /// Constructs a uint3x4 matrix from a bool3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x4(bool3x4 v) - { - this.c0 = math.select(new uint3(0u), new uint3(1u), v.c0); - this.c1 = math.select(new uint3(0u), new uint3(1u), v.c1); - this.c2 = math.select(new uint3(0u), new uint3(1u), v.c2); - this.c3 = math.select(new uint3(0u), new uint3(1u), v.c3); - } - - /// Constructs a uint3x4 matrix from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x4(int v) - { - this.c0 = (uint3)v; - this.c1 = (uint3)v; - this.c2 = (uint3)v; - this.c3 = (uint3)v; - } - - /// Constructs a uint3x4 matrix from a int3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x4(int3x4 v) - { - this.c0 = (uint3)v.c0; - this.c1 = (uint3)v.c1; - this.c2 = (uint3)v.c2; - this.c3 = (uint3)v.c3; - } - - /// Constructs a uint3x4 matrix from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x4(float v) - { - this.c0 = (uint3)v; - this.c1 = (uint3)v; - this.c2 = (uint3)v; - this.c3 = (uint3)v; - } - - /// Constructs a uint3x4 matrix from a float3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x4(float3x4 v) - { - this.c0 = (uint3)v.c0; - this.c1 = (uint3)v.c1; - this.c2 = (uint3)v.c2; - this.c3 = (uint3)v.c3; - } - - /// Constructs a uint3x4 matrix from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x4(double v) - { - this.c0 = (uint3)v; - this.c1 = (uint3)v; - this.c2 = (uint3)v; - this.c3 = (uint3)v; - } - - /// Constructs a uint3x4 matrix from a double3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3x4(double3x4 v) - { - this.c0 = (uint3)v.c0; - this.c1 = (uint3)v.c1; - this.c2 = (uint3)v.c2; - this.c3 = (uint3)v.c3; - } - - - /// Implicitly converts a single uint value to a uint3x4 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator uint3x4(uint v) { return new uint3x4(v); } - - /// Explicitly converts a single bool value to a uint3x4 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x4(bool v) { return new uint3x4(v); } - - /// Explicitly converts a bool3x4 matrix to a uint3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x4(bool3x4 v) { return new uint3x4(v); } - - /// Explicitly converts a single int value to a uint3x4 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x4(int v) { return new uint3x4(v); } - - /// Explicitly converts a int3x4 matrix to a uint3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x4(int3x4 v) { return new uint3x4(v); } - - /// Explicitly converts a single float value to a uint3x4 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x4(float v) { return new uint3x4(v); } - - /// Explicitly converts a float3x4 matrix to a uint3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x4(float3x4 v) { return new uint3x4(v); } - - /// Explicitly converts a single double value to a uint3x4 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x4(double v) { return new uint3x4(v); } - - /// Explicitly converts a double3x4 matrix to a uint3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint3x4(double3x4 v) { return new uint3x4(v); } - - - /// Returns the result of a componentwise multiplication operation on two uint3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator * (uint3x4 lhs, uint3x4 rhs) { return new uint3x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } - - /// Returns the result of a componentwise multiplication operation on a uint3x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator * (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a uint value and a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator * (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } - - - /// Returns the result of a componentwise addition operation on two uint3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator + (uint3x4 lhs, uint3x4 rhs) { return new uint3x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } - - /// Returns the result of a componentwise addition operation on a uint3x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator + (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } - - /// Returns the result of a componentwise addition operation on a uint value and a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator + (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } - - - /// Returns the result of a componentwise subtraction operation on two uint3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator - (uint3x4 lhs, uint3x4 rhs) { return new uint3x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } - - /// Returns the result of a componentwise subtraction operation on a uint3x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator - (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a uint value and a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator - (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } - - - /// Returns the result of a componentwise division operation on two uint3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator / (uint3x4 lhs, uint3x4 rhs) { return new uint3x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } - - /// Returns the result of a componentwise division operation on a uint3x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator / (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } - - /// Returns the result of a componentwise division operation on a uint value and a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator / (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } - - - /// Returns the result of a componentwise modulus operation on two uint3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator % (uint3x4 lhs, uint3x4 rhs) { return new uint3x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } - - /// Returns the result of a componentwise modulus operation on a uint3x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator % (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } - - /// Returns the result of a componentwise modulus operation on a uint value and a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator % (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } - - - /// Returns the result of a componentwise increment operation on a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator ++ (uint3x4 val) { return new uint3x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } - - - /// Returns the result of a componentwise decrement operation on a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator -- (uint3x4 val) { return new uint3x4 (--val.c0, --val.c1, --val.c2, --val.c3); } - - - /// Returns the result of a componentwise less than operation on two uint3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator < (uint3x4 lhs, uint3x4 rhs) { return new bool3x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } - - /// Returns the result of a componentwise less than operation on a uint3x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator < (uint3x4 lhs, uint rhs) { return new bool3x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } - - /// Returns the result of a componentwise less than operation on a uint value and a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator < (uint lhs, uint3x4 rhs) { return new bool3x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } - - - /// Returns the result of a componentwise less or equal operation on two uint3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator <= (uint3x4 lhs, uint3x4 rhs) { return new bool3x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } - - /// Returns the result of a componentwise less or equal operation on a uint3x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator <= (uint3x4 lhs, uint rhs) { return new bool3x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a uint value and a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator <= (uint lhs, uint3x4 rhs) { return new bool3x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } - - - /// Returns the result of a componentwise greater than operation on two uint3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator > (uint3x4 lhs, uint3x4 rhs) { return new bool3x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } - - /// Returns the result of a componentwise greater than operation on a uint3x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator > (uint3x4 lhs, uint rhs) { return new bool3x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } - - /// Returns the result of a componentwise greater than operation on a uint value and a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator > (uint lhs, uint3x4 rhs) { return new bool3x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } - - - /// Returns the result of a componentwise greater or equal operation on two uint3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator >= (uint3x4 lhs, uint3x4 rhs) { return new bool3x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } - - /// Returns the result of a componentwise greater or equal operation on a uint3x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator >= (uint3x4 lhs, uint rhs) { return new bool3x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a uint value and a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator >= (uint lhs, uint3x4 rhs) { return new bool3x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } - - - /// Returns the result of a componentwise unary minus operation on a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator - (uint3x4 val) { return new uint3x4 (-val.c0, -val.c1, -val.c2, -val.c3); } - - - /// Returns the result of a componentwise unary plus operation on a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator + (uint3x4 val) { return new uint3x4 (+val.c0, +val.c1, +val.c2, +val.c3); } - - - /// Returns the result of a componentwise left shift operation on a uint3x4 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator << (uint3x4 x, int n) { return new uint3x4 (x.c0 << n, x.c1 << n, x.c2 << n, x.c3 << n); } - - /// Returns the result of a componentwise right shift operation on a uint3x4 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator >> (uint3x4 x, int n) { return new uint3x4 (x.c0 >> n, x.c1 >> n, x.c2 >> n, x.c3 >> n); } - - /// Returns the result of a componentwise equality operation on two uint3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator == (uint3x4 lhs, uint3x4 rhs) { return new bool3x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } - - /// Returns the result of a componentwise equality operation on a uint3x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator == (uint3x4 lhs, uint rhs) { return new bool3x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } - - /// Returns the result of a componentwise equality operation on a uint value and a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator == (uint lhs, uint3x4 rhs) { return new bool3x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } - - - /// Returns the result of a componentwise not equal operation on two uint3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator != (uint3x4 lhs, uint3x4 rhs) { return new bool3x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } - - /// Returns the result of a componentwise not equal operation on a uint3x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator != (uint3x4 lhs, uint rhs) { return new bool3x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } - - /// Returns the result of a componentwise not equal operation on a uint value and a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3x4 operator != (uint lhs, uint3x4 rhs) { return new bool3x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } - - - /// Returns the result of a componentwise bitwise not operation on a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator ~ (uint3x4 val) { return new uint3x4 (~val.c0, ~val.c1, ~val.c2, ~val.c3); } - - - /// Returns the result of a componentwise bitwise and operation on two uint3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator & (uint3x4 lhs, uint3x4 rhs) { return new uint3x4 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2, lhs.c3 & rhs.c3); } - - /// Returns the result of a componentwise bitwise and operation on a uint3x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator & (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a uint value and a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator & (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); } - - - /// Returns the result of a componentwise bitwise or operation on two uint3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator | (uint3x4 lhs, uint3x4 rhs) { return new uint3x4 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2, lhs.c3 | rhs.c3); } - - /// Returns the result of a componentwise bitwise or operation on a uint3x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator | (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a uint value and a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator | (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two uint3x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator ^ (uint3x4 lhs, uint3x4 rhs) { return new uint3x4 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2, lhs.c3 ^ rhs.c3); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint3x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator ^ (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 operator ^ (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); } - - - - /// Returns the uint3 element at a specified index. - unsafe public ref uint3 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (uint3x4* array = &this) { return ref ((uint3*)array)[index]; } - } - } - - /// Returns true if the uint3x4 is equal to a given uint3x4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(uint3x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } - - /// Returns true if the uint3x4 is equal to a given uint3x4, false otherwise. - public override bool Equals(object o) { return Equals((uint3x4)o); } - - - /// Returns a hash code for the uint3x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the uint3x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - 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); - } - - /// Returns a string representation of the uint3x4 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - 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)); - } - - } - - public static partial class math - { - /// Returns a uint3x4 matrix constructed from four uint3 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 uint3x4(uint3 c0, uint3 c1, uint3 c2, uint3 c3) { return new uint3x4(c0, c1, c2, c3); } - - /// Returns a uint3x4 matrix constructed from from 12 uint values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 uint3x4(uint m00, uint m01, uint m02, uint m03, - uint m10, uint m11, uint m12, uint m13, - uint m20, uint m21, uint m22, uint m23) - { - return new uint3x4(m00, m01, m02, m03, - m10, m11, m12, m13, - m20, m21, m22, m23); - } - - /// Returns a uint3x4 matrix constructed from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 uint3x4(uint v) { return new uint3x4(v); } - - /// Returns a uint3x4 matrix constructed from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 uint3x4(bool v) { return new uint3x4(v); } - - /// Return a uint3x4 matrix constructed from a bool3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 uint3x4(bool3x4 v) { return new uint3x4(v); } - - /// Returns a uint3x4 matrix constructed from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 uint3x4(int v) { return new uint3x4(v); } - - /// Return a uint3x4 matrix constructed from a int3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 uint3x4(int3x4 v) { return new uint3x4(v); } - - /// Returns a uint3x4 matrix constructed from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 uint3x4(float v) { return new uint3x4(v); } - - /// Return a uint3x4 matrix constructed from a float3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 uint3x4(float3x4 v) { return new uint3x4(v); } - - /// Returns a uint3x4 matrix constructed from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 uint3x4(double v) { return new uint3x4(v); } - - /// Return a uint3x4 matrix constructed from a double3x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 uint3x4(double3x4 v) { return new uint3x4(v); } - - /// Return the uint4x3 transpose of a uint3x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 transpose(uint3x4 v) - { - return uint4x3( - v.c0.x, v.c0.y, v.c0.z, - v.c1.x, v.c1.y, v.c1.z, - v.c2.x, v.c2.y, v.c2.z, - v.c3.x, v.c3.y, v.c3.z); - } - - /// Returns a uint hash code of a uint3x4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(uint3x4 v) - { - return csum(v.c0 * uint3(0xD1224537u, 0xE99ED6F3u, 0x48125549u) + - v.c1 * uint3(0xEEE2123Bu, 0xE3AD9FE5u, 0xCE1CF8BFu) + - v.c2 * uint3(0x7BE39F3Bu, 0xFAB9913Fu, 0xB4501269u) + - v.c3 * uint3(0xE04B89FDu, 0xDB3DE101u, 0x7B6D1B4Bu)) + 0x58399E77u; - } - - /// - /// Returns a uint3 vector hash code of a uint3x4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 hashwide(uint3x4 v) - { - return (v.c0 * uint3(0x5EAC29C9u, 0xFC6014F9u, 0x6BF6693Fu) + - v.c1 * uint3(0x9D1B1D9Bu, 0xF842F5C1u, 0xA47EC335u) + - v.c2 * uint3(0xA477DF57u, 0xC4B1493Fu, 0xBA0966D3u) + - v.c3 * uint3(0xAFBEE253u, 0x5B419C01u, 0x515D90F5u)) + 0xEC9F68F3u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/uint4.gen.cs b/Economy.Shared/Unity.Mathematics/uint4.gen.cs deleted file mode 100644 index 100200ca3..000000000 --- a/Economy.Shared/Unity.Mathematics/uint4.gen.cs +++ /dev/null @@ -1,3480 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; -using System.Diagnostics; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [DebuggerTypeProxy(typeof(uint4.DebuggerProxy))] - [System.Serializable] - public partial struct uint4 : System.IEquatable, IFormattable - { - public uint x; - public uint y; - public uint z; - public uint w; - - /// uint4 zero value. - public static readonly uint4 zero; - - /// Constructs a uint4 vector from four uint values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(uint x, uint y, uint z, uint w) - { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - - /// Constructs a uint4 vector from two uint values and a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(uint x, uint y, uint2 zw) - { - this.x = x; - this.y = y; - this.z = zw.x; - this.w = zw.y; - } - - /// Constructs a uint4 vector from a uint value, a uint2 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(uint x, uint2 yz, uint w) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - this.w = w; - } - - /// Constructs a uint4 vector from a uint value and a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(uint x, uint3 yzw) - { - this.x = x; - this.y = yzw.x; - this.z = yzw.y; - this.w = yzw.z; - } - - /// Constructs a uint4 vector from a uint2 vector and two uint values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(uint2 xy, uint z, uint w) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - this.w = w; - } - - /// Constructs a uint4 vector from two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(uint2 xy, uint2 zw) - { - this.x = xy.x; - this.y = xy.y; - this.z = zw.x; - this.w = zw.y; - } - - /// Constructs a uint4 vector from a uint3 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(uint3 xyz, uint w) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - this.w = w; - } - - /// Constructs a uint4 vector from a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(uint4 xyzw) - { - this.x = xyzw.x; - this.y = xyzw.y; - this.z = xyzw.z; - this.w = xyzw.w; - } - - /// Constructs a uint4 vector from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(uint v) - { - this.x = v; - this.y = v; - this.z = v; - this.w = v; - } - - /// Constructs a uint4 vector from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(bool v) - { - this.x = v ? 1u : 0u; - this.y = v ? 1u : 0u; - this.z = v ? 1u : 0u; - this.w = v ? 1u : 0u; - } - - /// Constructs a uint4 vector from a bool4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(bool4 v) - { - this.x = v.x ? 1u : 0u; - this.y = v.y ? 1u : 0u; - this.z = v.z ? 1u : 0u; - this.w = v.w ? 1u : 0u; - } - - /// Constructs a uint4 vector from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(int v) - { - this.x = (uint)v; - this.y = (uint)v; - this.z = (uint)v; - this.w = (uint)v; - } - - /// Constructs a uint4 vector from a int4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(int4 v) - { - this.x = (uint)v.x; - this.y = (uint)v.y; - this.z = (uint)v.z; - this.w = (uint)v.w; - } - - /// Constructs a uint4 vector from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(float v) - { - this.x = (uint)v; - this.y = (uint)v; - this.z = (uint)v; - this.w = (uint)v; - } - - /// Constructs a uint4 vector from a float4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(float4 v) - { - this.x = (uint)v.x; - this.y = (uint)v.y; - this.z = (uint)v.z; - this.w = (uint)v.w; - } - - /// Constructs a uint4 vector from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(double v) - { - this.x = (uint)v; - this.y = (uint)v; - this.z = (uint)v; - this.w = (uint)v; - } - - /// Constructs a uint4 vector from a double4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(double4 v) - { - this.x = (uint)v.x; - this.y = (uint)v.y; - this.z = (uint)v.z; - this.w = (uint)v.w; - } - - - /// Implicitly converts a single uint value to a uint4 vector by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator uint4(uint v) { return new uint4(v); } - - /// Explicitly converts a single bool value to a uint4 vector by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4(bool v) { return new uint4(v); } - - /// Explicitly converts a bool4 vector to a uint4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4(bool4 v) { return new uint4(v); } - - /// Explicitly converts a single int value to a uint4 vector by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4(int v) { return new uint4(v); } - - /// Explicitly converts a int4 vector to a uint4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4(int4 v) { return new uint4(v); } - - /// Explicitly converts a single float value to a uint4 vector by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4(float v) { return new uint4(v); } - - /// Explicitly converts a float4 vector to a uint4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4(float4 v) { return new uint4(v); } - - /// Explicitly converts a single double value to a uint4 vector by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4(double v) { return new uint4(v); } - - /// Explicitly converts a double4 vector to a uint4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4(double4 v) { return new uint4(v); } - - - /// Returns the result of a componentwise multiplication operation on two uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator * (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } - - /// Returns the result of a componentwise multiplication operation on a uint4 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator * (uint4 lhs, uint rhs) { return new uint4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } - - /// Returns the result of a componentwise multiplication operation on a uint value and a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator * (uint lhs, uint4 rhs) { return new uint4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } - - - /// Returns the result of a componentwise addition operation on two uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator + (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } - - /// Returns the result of a componentwise addition operation on a uint4 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator + (uint4 lhs, uint rhs) { return new uint4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } - - /// Returns the result of a componentwise addition operation on a uint value and a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator + (uint lhs, uint4 rhs) { return new uint4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } - - - /// Returns the result of a componentwise subtraction operation on two uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator - (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } - - /// Returns the result of a componentwise subtraction operation on a uint4 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator - (uint4 lhs, uint rhs) { return new uint4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } - - /// Returns the result of a componentwise subtraction operation on a uint value and a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator - (uint lhs, uint4 rhs) { return new uint4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } - - - /// Returns the result of a componentwise division operation on two uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator / (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } - - /// Returns the result of a componentwise division operation on a uint4 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator / (uint4 lhs, uint rhs) { return new uint4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } - - /// Returns the result of a componentwise division operation on a uint value and a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator / (uint lhs, uint4 rhs) { return new uint4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } - - - /// Returns the result of a componentwise modulus operation on two uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator % (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x % rhs.x, lhs.y % rhs.y, lhs.z % rhs.z, lhs.w % rhs.w); } - - /// Returns the result of a componentwise modulus operation on a uint4 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator % (uint4 lhs, uint rhs) { return new uint4 (lhs.x % rhs, lhs.y % rhs, lhs.z % rhs, lhs.w % rhs); } - - /// Returns the result of a componentwise modulus operation on a uint value and a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator % (uint lhs, uint4 rhs) { return new uint4 (lhs % rhs.x, lhs % rhs.y, lhs % rhs.z, lhs % rhs.w); } - - - /// Returns the result of a componentwise increment operation on a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator ++ (uint4 val) { return new uint4 (++val.x, ++val.y, ++val.z, ++val.w); } - - - /// Returns the result of a componentwise decrement operation on a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator -- (uint4 val) { return new uint4 (--val.x, --val.y, --val.z, --val.w); } - - - /// Returns the result of a componentwise less than operation on two uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } - - /// Returns the result of a componentwise less than operation on a uint4 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (uint4 lhs, uint rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } - - /// Returns the result of a componentwise less than operation on a uint value and a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (uint lhs, uint4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } - - - /// Returns the result of a componentwise less or equal operation on two uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } - - /// Returns the result of a componentwise less or equal operation on a uint4 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (uint4 lhs, uint rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a uint value and a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (uint lhs, uint4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } - - - /// Returns the result of a componentwise greater than operation on two uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } - - /// Returns the result of a componentwise greater than operation on a uint4 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (uint4 lhs, uint rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } - - /// Returns the result of a componentwise greater than operation on a uint value and a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (uint lhs, uint4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } - - - /// Returns the result of a componentwise greater or equal operation on two uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } - - /// Returns the result of a componentwise greater or equal operation on a uint4 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (uint4 lhs, uint rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a uint value and a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (uint lhs, uint4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } - - - /// Returns the result of a componentwise unary minus operation on a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator - (uint4 val) { return new uint4 ((uint)-val.x, (uint)-val.y, (uint)-val.z, (uint)-val.w); } - - - /// Returns the result of a componentwise unary plus operation on a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator + (uint4 val) { return new uint4 (+val.x, +val.y, +val.z, +val.w); } - - - /// Returns the result of a componentwise left shift operation on a uint4 vector by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator << (uint4 x, int n) { return new uint4 (x.x << n, x.y << n, x.z << n, x.w << n); } - - /// Returns the result of a componentwise right shift operation on a uint4 vector by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator >> (uint4 x, int n) { return new uint4 (x.x >> n, x.y >> n, x.z >> n, x.w >> n); } - - /// Returns the result of a componentwise equality operation on two uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } - - /// Returns the result of a componentwise equality operation on a uint4 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (uint4 lhs, uint rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } - - /// Returns the result of a componentwise equality operation on a uint value and a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (uint lhs, uint4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } - - - /// Returns the result of a componentwise not equal operation on two uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } - - /// Returns the result of a componentwise not equal operation on a uint4 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (uint4 lhs, uint rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } - - /// Returns the result of a componentwise not equal operation on a uint value and a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (uint lhs, uint4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } - - - /// Returns the result of a componentwise bitwise not operation on a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator ~ (uint4 val) { return new uint4 (~val.x, ~val.y, ~val.z, ~val.w); } - - - /// Returns the result of a componentwise bitwise and operation on two uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator & (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } - - /// Returns the result of a componentwise bitwise and operation on a uint4 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator & (uint4 lhs, uint rhs) { return new uint4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a uint value and a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator & (uint lhs, uint4 rhs) { return new uint4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } - - - /// Returns the result of a componentwise bitwise or operation on two uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator | (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } - - /// Returns the result of a componentwise bitwise or operation on a uint4 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator | (uint4 lhs, uint rhs) { return new uint4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a uint value and a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator | (uint lhs, uint4 rhs) { return new uint4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator ^ (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint4 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator ^ (uint4 lhs, uint rhs) { return new uint4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator ^ (uint lhs, uint4 rhs) { return new uint4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } - - - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 ywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 ywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 ywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 www - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 wx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 wy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 wz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 ww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(w, w); } - } - - - - /// Returns the uint element at a specified index. - unsafe public uint this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (uint4* array = &this) { return ((uint*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (uint* array = &x) { array[index] = value; } - } - } - - /// Returns true if the uint4 is equal to a given uint4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(uint4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } - - /// Returns true if the uint4 is equal to a given uint4, false otherwise. - public override bool Equals(object o) { return Equals((uint4)o); } - - - /// Returns a hash code for the uint4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the uint4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return string.Format("uint4({0}, {1}, {2}, {3})", x, y, z, w); - } - - /// Returns a string representation of the uint4 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - return string.Format("uint4({0}, {1}, {2}, {3})", x.ToString(format, formatProvider), y.ToString(format, formatProvider), z.ToString(format, formatProvider), w.ToString(format, formatProvider)); - } - - internal sealed class DebuggerProxy - { - public uint x; - public uint y; - public uint z; - public uint w; - public DebuggerProxy(uint4 v) - { - x = v.x; - y = v.y; - z = v.z; - w = v.w; - } - } - - } - - public static partial class math - { - /// Returns a uint4 vector constructed from four uint values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint x, uint y, uint z, uint w) { return new uint4(x, y, z, w); } - - /// Returns a uint4 vector constructed from two uint values and a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint x, uint y, uint2 zw) { return new uint4(x, y, zw); } - - /// Returns a uint4 vector constructed from a uint value, a uint2 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint x, uint2 yz, uint w) { return new uint4(x, yz, w); } - - /// Returns a uint4 vector constructed from a uint value and a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint x, uint3 yzw) { return new uint4(x, yzw); } - - /// Returns a uint4 vector constructed from a uint2 vector and two uint values. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint2 xy, uint z, uint w) { return new uint4(xy, z, w); } - - /// Returns a uint4 vector constructed from two uint2 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint2 xy, uint2 zw) { return new uint4(xy, zw); } - - /// Returns a uint4 vector constructed from a uint3 vector and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint3 xyz, uint w) { return new uint4(xyz, w); } - - /// Returns a uint4 vector constructed from a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint4 xyzw) { return new uint4(xyzw); } - - /// Returns a uint4 vector constructed from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint v) { return new uint4(v); } - - /// Returns a uint4 vector constructed from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(bool v) { return new uint4(v); } - - /// Return a uint4 vector constructed from a bool4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(bool4 v) { return new uint4(v); } - - /// Returns a uint4 vector constructed from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(int v) { return new uint4(v); } - - /// Return a uint4 vector constructed from a int4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(int4 v) { return new uint4(v); } - - /// Returns a uint4 vector constructed from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(float v) { return new uint4(v); } - - /// Return a uint4 vector constructed from a float4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(float4 v) { return new uint4(v); } - - /// Returns a uint4 vector constructed from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(double v) { return new uint4(v); } - - /// Return a uint4 vector constructed from a double4 vector by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(double4 v) { return new uint4(v); } - - /// Returns a uint hash code of a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(uint4 v) - { - return csum(v * uint4(0xB492BF15u, 0xD37220E3u, 0x7AA2C2BDu, 0xE16BC89Du)) + 0x7AA07CD3u; - } - - /// - /// Returns a uint4 vector hash code of a uint4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(uint4 v) - { - return (v * uint4(0xAF642BA9u, 0xA8F2213Bu, 0x9F3FDC37u, 0xAC60D0C3u)) + 0x9263662Fu; - } - - /// Returns the result of specified shuffling of the components from two uint4 vectors into a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint shuffle(uint4 a, uint4 b, ShuffleComponent x) - { - return select_shuffle_component(a, b, x); - } - - /// Returns the result of specified shuffling of the components from two uint4 vectors into a uint2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 shuffle(uint4 a, uint4 b, ShuffleComponent x, ShuffleComponent y) - { - return uint2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); - } - - /// Returns the result of specified shuffling of the components from two uint4 vectors into a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 shuffle(uint4 a, uint4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) - { - return uint3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); - } - - /// Returns the result of specified shuffling of the components from two uint4 vectors into a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 shuffle(uint4 a, uint4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) - { - return uint4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint select_shuffle_component(uint4 a, uint4 b, ShuffleComponent component) - { - switch(component) - { - case ShuffleComponent.LeftX: - return a.x; - case ShuffleComponent.LeftY: - return a.y; - case ShuffleComponent.LeftZ: - return a.z; - case ShuffleComponent.LeftW: - return a.w; - case ShuffleComponent.RightX: - return b.x; - case ShuffleComponent.RightY: - return b.y; - case ShuffleComponent.RightZ: - return b.z; - case ShuffleComponent.RightW: - return b.w; - default: - throw new System.ArgumentException("Invalid shuffle component: " + component); - } - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/uint4x2.gen.cs b/Economy.Shared/Unity.Mathematics/uint4x2.gen.cs deleted file mode 100644 index 62cf28fa0..000000000 --- a/Economy.Shared/Unity.Mathematics/uint4x2.gen.cs +++ /dev/null @@ -1,497 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct uint4x2 : System.IEquatable, IFormattable - { - public uint4 c0; - public uint4 c1; - - /// uint4x2 zero value. - public static readonly uint4x2 zero; - - /// Constructs a uint4x2 matrix from two uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x2(uint4 c0, uint4 c1) - { - this.c0 = c0; - this.c1 = c1; - } - - /// Constructs a uint4x2 matrix from 8 uint values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x2(uint m00, uint m01, - uint m10, uint m11, - uint m20, uint m21, - uint m30, uint m31) - { - this.c0 = new uint4(m00, m10, m20, m30); - this.c1 = new uint4(m01, m11, m21, m31); - } - - /// Constructs a uint4x2 matrix from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x2(uint v) - { - this.c0 = v; - this.c1 = v; - } - - /// Constructs a uint4x2 matrix from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x2(bool v) - { - this.c0 = math.select(new uint4(0u), new uint4(1u), v); - this.c1 = math.select(new uint4(0u), new uint4(1u), v); - } - - /// Constructs a uint4x2 matrix from a bool4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x2(bool4x2 v) - { - this.c0 = math.select(new uint4(0u), new uint4(1u), v.c0); - this.c1 = math.select(new uint4(0u), new uint4(1u), v.c1); - } - - /// Constructs a uint4x2 matrix from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x2(int v) - { - this.c0 = (uint4)v; - this.c1 = (uint4)v; - } - - /// Constructs a uint4x2 matrix from a int4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x2(int4x2 v) - { - this.c0 = (uint4)v.c0; - this.c1 = (uint4)v.c1; - } - - /// Constructs a uint4x2 matrix from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x2(float v) - { - this.c0 = (uint4)v; - this.c1 = (uint4)v; - } - - /// Constructs a uint4x2 matrix from a float4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x2(float4x2 v) - { - this.c0 = (uint4)v.c0; - this.c1 = (uint4)v.c1; - } - - /// Constructs a uint4x2 matrix from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x2(double v) - { - this.c0 = (uint4)v; - this.c1 = (uint4)v; - } - - /// Constructs a uint4x2 matrix from a double4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x2(double4x2 v) - { - this.c0 = (uint4)v.c0; - this.c1 = (uint4)v.c1; - } - - - /// Implicitly converts a single uint value to a uint4x2 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator uint4x2(uint v) { return new uint4x2(v); } - - /// Explicitly converts a single bool value to a uint4x2 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x2(bool v) { return new uint4x2(v); } - - /// Explicitly converts a bool4x2 matrix to a uint4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x2(bool4x2 v) { return new uint4x2(v); } - - /// Explicitly converts a single int value to a uint4x2 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x2(int v) { return new uint4x2(v); } - - /// Explicitly converts a int4x2 matrix to a uint4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x2(int4x2 v) { return new uint4x2(v); } - - /// Explicitly converts a single float value to a uint4x2 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x2(float v) { return new uint4x2(v); } - - /// Explicitly converts a float4x2 matrix to a uint4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x2(float4x2 v) { return new uint4x2(v); } - - /// Explicitly converts a single double value to a uint4x2 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x2(double v) { return new uint4x2(v); } - - /// Explicitly converts a double4x2 matrix to a uint4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x2(double4x2 v) { return new uint4x2(v); } - - - /// Returns the result of a componentwise multiplication operation on two uint4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator * (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } - - /// Returns the result of a componentwise multiplication operation on a uint4x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator * (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 * rhs, lhs.c1 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a uint value and a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator * (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs * rhs.c0, lhs * rhs.c1); } - - - /// Returns the result of a componentwise addition operation on two uint4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator + (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } - - /// Returns the result of a componentwise addition operation on a uint4x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator + (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 + rhs, lhs.c1 + rhs); } - - /// Returns the result of a componentwise addition operation on a uint value and a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator + (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs + rhs.c0, lhs + rhs.c1); } - - - /// Returns the result of a componentwise subtraction operation on two uint4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator - (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } - - /// Returns the result of a componentwise subtraction operation on a uint4x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator - (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 - rhs, lhs.c1 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a uint value and a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator - (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs - rhs.c0, lhs - rhs.c1); } - - - /// Returns the result of a componentwise division operation on two uint4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator / (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } - - /// Returns the result of a componentwise division operation on a uint4x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator / (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 / rhs, lhs.c1 / rhs); } - - /// Returns the result of a componentwise division operation on a uint value and a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator / (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs / rhs.c0, lhs / rhs.c1); } - - - /// Returns the result of a componentwise modulus operation on two uint4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator % (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } - - /// Returns the result of a componentwise modulus operation on a uint4x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator % (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 % rhs, lhs.c1 % rhs); } - - /// Returns the result of a componentwise modulus operation on a uint value and a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator % (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs % rhs.c0, lhs % rhs.c1); } - - - /// Returns the result of a componentwise increment operation on a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator ++ (uint4x2 val) { return new uint4x2 (++val.c0, ++val.c1); } - - - /// Returns the result of a componentwise decrement operation on a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator -- (uint4x2 val) { return new uint4x2 (--val.c0, --val.c1); } - - - /// Returns the result of a componentwise less than operation on two uint4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator < (uint4x2 lhs, uint4x2 rhs) { return new bool4x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } - - /// Returns the result of a componentwise less than operation on a uint4x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator < (uint4x2 lhs, uint rhs) { return new bool4x2 (lhs.c0 < rhs, lhs.c1 < rhs); } - - /// Returns the result of a componentwise less than operation on a uint value and a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator < (uint lhs, uint4x2 rhs) { return new bool4x2 (lhs < rhs.c0, lhs < rhs.c1); } - - - /// Returns the result of a componentwise less or equal operation on two uint4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator <= (uint4x2 lhs, uint4x2 rhs) { return new bool4x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } - - /// Returns the result of a componentwise less or equal operation on a uint4x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator <= (uint4x2 lhs, uint rhs) { return new bool4x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a uint value and a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator <= (uint lhs, uint4x2 rhs) { return new bool4x2 (lhs <= rhs.c0, lhs <= rhs.c1); } - - - /// Returns the result of a componentwise greater than operation on two uint4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator > (uint4x2 lhs, uint4x2 rhs) { return new bool4x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } - - /// Returns the result of a componentwise greater than operation on a uint4x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator > (uint4x2 lhs, uint rhs) { return new bool4x2 (lhs.c0 > rhs, lhs.c1 > rhs); } - - /// Returns the result of a componentwise greater than operation on a uint value and a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator > (uint lhs, uint4x2 rhs) { return new bool4x2 (lhs > rhs.c0, lhs > rhs.c1); } - - - /// Returns the result of a componentwise greater or equal operation on two uint4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator >= (uint4x2 lhs, uint4x2 rhs) { return new bool4x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } - - /// Returns the result of a componentwise greater or equal operation on a uint4x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator >= (uint4x2 lhs, uint rhs) { return new bool4x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a uint value and a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator >= (uint lhs, uint4x2 rhs) { return new bool4x2 (lhs >= rhs.c0, lhs >= rhs.c1); } - - - /// Returns the result of a componentwise unary minus operation on a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator - (uint4x2 val) { return new uint4x2 (-val.c0, -val.c1); } - - - /// Returns the result of a componentwise unary plus operation on a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator + (uint4x2 val) { return new uint4x2 (+val.c0, +val.c1); } - - - /// Returns the result of a componentwise left shift operation on a uint4x2 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator << (uint4x2 x, int n) { return new uint4x2 (x.c0 << n, x.c1 << n); } - - /// Returns the result of a componentwise right shift operation on a uint4x2 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator >> (uint4x2 x, int n) { return new uint4x2 (x.c0 >> n, x.c1 >> n); } - - /// Returns the result of a componentwise equality operation on two uint4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator == (uint4x2 lhs, uint4x2 rhs) { return new bool4x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } - - /// Returns the result of a componentwise equality operation on a uint4x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator == (uint4x2 lhs, uint rhs) { return new bool4x2 (lhs.c0 == rhs, lhs.c1 == rhs); } - - /// Returns the result of a componentwise equality operation on a uint value and a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator == (uint lhs, uint4x2 rhs) { return new bool4x2 (lhs == rhs.c0, lhs == rhs.c1); } - - - /// Returns the result of a componentwise not equal operation on two uint4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator != (uint4x2 lhs, uint4x2 rhs) { return new bool4x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } - - /// Returns the result of a componentwise not equal operation on a uint4x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator != (uint4x2 lhs, uint rhs) { return new bool4x2 (lhs.c0 != rhs, lhs.c1 != rhs); } - - /// Returns the result of a componentwise not equal operation on a uint value and a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x2 operator != (uint lhs, uint4x2 rhs) { return new bool4x2 (lhs != rhs.c0, lhs != rhs.c1); } - - - /// Returns the result of a componentwise bitwise not operation on a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator ~ (uint4x2 val) { return new uint4x2 (~val.c0, ~val.c1); } - - - /// Returns the result of a componentwise bitwise and operation on two uint4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator & (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); } - - /// Returns the result of a componentwise bitwise and operation on a uint4x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator & (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 & rhs, lhs.c1 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a uint value and a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator & (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs & rhs.c0, lhs & rhs.c1); } - - - /// Returns the result of a componentwise bitwise or operation on two uint4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator | (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); } - - /// Returns the result of a componentwise bitwise or operation on a uint4x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator | (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 | rhs, lhs.c1 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a uint value and a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator | (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs | rhs.c0, lhs | rhs.c1); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two uint4x2 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator ^ (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint4x2 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator ^ (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 operator ^ (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); } - - - - /// Returns the uint4 element at a specified index. - unsafe public ref uint4 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (uint4x2* array = &this) { return ref ((uint4*)array)[index]; } - } - } - - /// Returns true if the uint4x2 is equal to a given uint4x2, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(uint4x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } - - /// Returns true if the uint4x2 is equal to a given uint4x2, false otherwise. - public override bool Equals(object o) { return Equals((uint4x2)o); } - - - /// Returns a hash code for the uint4x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the uint4x2. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - 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); - } - - /// Returns a string representation of the uint4x2 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - 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)); - } - - } - - public static partial class math - { - /// Returns a uint4x2 matrix constructed from two uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 uint4x2(uint4 c0, uint4 c1) { return new uint4x2(c0, c1); } - - /// Returns a uint4x2 matrix constructed from from 8 uint values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 uint4x2(uint m00, uint m01, - uint m10, uint m11, - uint m20, uint m21, - uint m30, uint m31) - { - return new uint4x2(m00, m01, - m10, m11, - m20, m21, - m30, m31); - } - - /// Returns a uint4x2 matrix constructed from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 uint4x2(uint v) { return new uint4x2(v); } - - /// Returns a uint4x2 matrix constructed from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 uint4x2(bool v) { return new uint4x2(v); } - - /// Return a uint4x2 matrix constructed from a bool4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 uint4x2(bool4x2 v) { return new uint4x2(v); } - - /// Returns a uint4x2 matrix constructed from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 uint4x2(int v) { return new uint4x2(v); } - - /// Return a uint4x2 matrix constructed from a int4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 uint4x2(int4x2 v) { return new uint4x2(v); } - - /// Returns a uint4x2 matrix constructed from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 uint4x2(float v) { return new uint4x2(v); } - - /// Return a uint4x2 matrix constructed from a float4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 uint4x2(float4x2 v) { return new uint4x2(v); } - - /// Returns a uint4x2 matrix constructed from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 uint4x2(double v) { return new uint4x2(v); } - - /// Return a uint4x2 matrix constructed from a double4x2 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x2 uint4x2(double4x2 v) { return new uint4x2(v); } - - /// Return the uint2x4 transpose of a uint4x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2x4 transpose(uint4x2 v) - { - return uint2x4( - v.c0.x, v.c0.y, v.c0.z, v.c0.w, - v.c1.x, v.c1.y, v.c1.z, v.c1.w); - } - - /// Returns a uint hash code of a uint4x2 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(uint4x2 v) - { - return csum(v.c0 * uint4(0xFA3A3285u, 0xAD55999Du, 0xDCDD5341u, 0x94DDD769u) + - v.c1 * uint4(0xA1E92D39u, 0x4583C801u, 0x9536A0F5u, 0xAF816615u)) + 0x9AF8D62Du; - } - - /// - /// Returns a uint4 vector hash code of a uint4x2 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(uint4x2 v) - { - return (v.c0 * uint4(0xE3600729u, 0x5F17300Du, 0x670D6809u, 0x7AF32C49u) + - v.c1 * uint4(0xAE131389u, 0x5D1B165Bu, 0x87096CD7u, 0x4C7F6DD1u)) + 0x4822A3E9u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/uint4x3.gen.cs b/Economy.Shared/Unity.Mathematics/uint4x3.gen.cs deleted file mode 100644 index fec012448..000000000 --- a/Economy.Shared/Unity.Mathematics/uint4x3.gen.cs +++ /dev/null @@ -1,512 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct uint4x3 : System.IEquatable, IFormattable - { - public uint4 c0; - public uint4 c1; - public uint4 c2; - - /// uint4x3 zero value. - public static readonly uint4x3 zero; - - /// Constructs a uint4x3 matrix from three uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x3(uint4 c0, uint4 c1, uint4 c2) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - } - - /// Constructs a uint4x3 matrix from 12 uint values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x3(uint m00, uint m01, uint m02, - uint m10, uint m11, uint m12, - uint m20, uint m21, uint m22, - uint m30, uint m31, uint m32) - { - this.c0 = new uint4(m00, m10, m20, m30); - this.c1 = new uint4(m01, m11, m21, m31); - this.c2 = new uint4(m02, m12, m22, m32); - } - - /// Constructs a uint4x3 matrix from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x3(uint v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - } - - /// Constructs a uint4x3 matrix from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x3(bool v) - { - this.c0 = math.select(new uint4(0u), new uint4(1u), v); - this.c1 = math.select(new uint4(0u), new uint4(1u), v); - this.c2 = math.select(new uint4(0u), new uint4(1u), v); - } - - /// Constructs a uint4x3 matrix from a bool4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x3(bool4x3 v) - { - this.c0 = math.select(new uint4(0u), new uint4(1u), v.c0); - this.c1 = math.select(new uint4(0u), new uint4(1u), v.c1); - this.c2 = math.select(new uint4(0u), new uint4(1u), v.c2); - } - - /// Constructs a uint4x3 matrix from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x3(int v) - { - this.c0 = (uint4)v; - this.c1 = (uint4)v; - this.c2 = (uint4)v; - } - - /// Constructs a uint4x3 matrix from a int4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x3(int4x3 v) - { - this.c0 = (uint4)v.c0; - this.c1 = (uint4)v.c1; - this.c2 = (uint4)v.c2; - } - - /// Constructs a uint4x3 matrix from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x3(float v) - { - this.c0 = (uint4)v; - this.c1 = (uint4)v; - this.c2 = (uint4)v; - } - - /// Constructs a uint4x3 matrix from a float4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x3(float4x3 v) - { - this.c0 = (uint4)v.c0; - this.c1 = (uint4)v.c1; - this.c2 = (uint4)v.c2; - } - - /// Constructs a uint4x3 matrix from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x3(double v) - { - this.c0 = (uint4)v; - this.c1 = (uint4)v; - this.c2 = (uint4)v; - } - - /// Constructs a uint4x3 matrix from a double4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x3(double4x3 v) - { - this.c0 = (uint4)v.c0; - this.c1 = (uint4)v.c1; - this.c2 = (uint4)v.c2; - } - - - /// Implicitly converts a single uint value to a uint4x3 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator uint4x3(uint v) { return new uint4x3(v); } - - /// Explicitly converts a single bool value to a uint4x3 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x3(bool v) { return new uint4x3(v); } - - /// Explicitly converts a bool4x3 matrix to a uint4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x3(bool4x3 v) { return new uint4x3(v); } - - /// Explicitly converts a single int value to a uint4x3 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x3(int v) { return new uint4x3(v); } - - /// Explicitly converts a int4x3 matrix to a uint4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x3(int4x3 v) { return new uint4x3(v); } - - /// Explicitly converts a single float value to a uint4x3 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x3(float v) { return new uint4x3(v); } - - /// Explicitly converts a float4x3 matrix to a uint4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x3(float4x3 v) { return new uint4x3(v); } - - /// Explicitly converts a single double value to a uint4x3 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x3(double v) { return new uint4x3(v); } - - /// Explicitly converts a double4x3 matrix to a uint4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x3(double4x3 v) { return new uint4x3(v); } - - - /// Returns the result of a componentwise multiplication operation on two uint4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator * (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } - - /// Returns the result of a componentwise multiplication operation on a uint4x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator * (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a uint value and a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator * (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } - - - /// Returns the result of a componentwise addition operation on two uint4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator + (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } - - /// Returns the result of a componentwise addition operation on a uint4x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator + (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } - - /// Returns the result of a componentwise addition operation on a uint value and a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator + (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } - - - /// Returns the result of a componentwise subtraction operation on two uint4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator - (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } - - /// Returns the result of a componentwise subtraction operation on a uint4x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator - (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a uint value and a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator - (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } - - - /// Returns the result of a componentwise division operation on two uint4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator / (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } - - /// Returns the result of a componentwise division operation on a uint4x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator / (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } - - /// Returns the result of a componentwise division operation on a uint value and a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator / (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } - - - /// Returns the result of a componentwise modulus operation on two uint4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator % (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } - - /// Returns the result of a componentwise modulus operation on a uint4x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator % (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } - - /// Returns the result of a componentwise modulus operation on a uint value and a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator % (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } - - - /// Returns the result of a componentwise increment operation on a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator ++ (uint4x3 val) { return new uint4x3 (++val.c0, ++val.c1, ++val.c2); } - - - /// Returns the result of a componentwise decrement operation on a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator -- (uint4x3 val) { return new uint4x3 (--val.c0, --val.c1, --val.c2); } - - - /// Returns the result of a componentwise less than operation on two uint4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator < (uint4x3 lhs, uint4x3 rhs) { return new bool4x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } - - /// Returns the result of a componentwise less than operation on a uint4x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator < (uint4x3 lhs, uint rhs) { return new bool4x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } - - /// Returns the result of a componentwise less than operation on a uint value and a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator < (uint lhs, uint4x3 rhs) { return new bool4x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } - - - /// Returns the result of a componentwise less or equal operation on two uint4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator <= (uint4x3 lhs, uint4x3 rhs) { return new bool4x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } - - /// Returns the result of a componentwise less or equal operation on a uint4x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator <= (uint4x3 lhs, uint rhs) { return new bool4x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a uint value and a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator <= (uint lhs, uint4x3 rhs) { return new bool4x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } - - - /// Returns the result of a componentwise greater than operation on two uint4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator > (uint4x3 lhs, uint4x3 rhs) { return new bool4x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } - - /// Returns the result of a componentwise greater than operation on a uint4x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator > (uint4x3 lhs, uint rhs) { return new bool4x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } - - /// Returns the result of a componentwise greater than operation on a uint value and a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator > (uint lhs, uint4x3 rhs) { return new bool4x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } - - - /// Returns the result of a componentwise greater or equal operation on two uint4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator >= (uint4x3 lhs, uint4x3 rhs) { return new bool4x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } - - /// Returns the result of a componentwise greater or equal operation on a uint4x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator >= (uint4x3 lhs, uint rhs) { return new bool4x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a uint value and a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator >= (uint lhs, uint4x3 rhs) { return new bool4x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } - - - /// Returns the result of a componentwise unary minus operation on a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator - (uint4x3 val) { return new uint4x3 (-val.c0, -val.c1, -val.c2); } - - - /// Returns the result of a componentwise unary plus operation on a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator + (uint4x3 val) { return new uint4x3 (+val.c0, +val.c1, +val.c2); } - - - /// Returns the result of a componentwise left shift operation on a uint4x3 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator << (uint4x3 x, int n) { return new uint4x3 (x.c0 << n, x.c1 << n, x.c2 << n); } - - /// Returns the result of a componentwise right shift operation on a uint4x3 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator >> (uint4x3 x, int n) { return new uint4x3 (x.c0 >> n, x.c1 >> n, x.c2 >> n); } - - /// Returns the result of a componentwise equality operation on two uint4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator == (uint4x3 lhs, uint4x3 rhs) { return new bool4x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } - - /// Returns the result of a componentwise equality operation on a uint4x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator == (uint4x3 lhs, uint rhs) { return new bool4x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } - - /// Returns the result of a componentwise equality operation on a uint value and a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator == (uint lhs, uint4x3 rhs) { return new bool4x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } - - - /// Returns the result of a componentwise not equal operation on two uint4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator != (uint4x3 lhs, uint4x3 rhs) { return new bool4x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } - - /// Returns the result of a componentwise not equal operation on a uint4x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator != (uint4x3 lhs, uint rhs) { return new bool4x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } - - /// Returns the result of a componentwise not equal operation on a uint value and a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x3 operator != (uint lhs, uint4x3 rhs) { return new bool4x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } - - - /// Returns the result of a componentwise bitwise not operation on a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator ~ (uint4x3 val) { return new uint4x3 (~val.c0, ~val.c1, ~val.c2); } - - - /// Returns the result of a componentwise bitwise and operation on two uint4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator & (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); } - - /// Returns the result of a componentwise bitwise and operation on a uint4x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator & (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a uint value and a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator & (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); } - - - /// Returns the result of a componentwise bitwise or operation on two uint4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator | (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); } - - /// Returns the result of a componentwise bitwise or operation on a uint4x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator | (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a uint value and a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator | (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two uint4x3 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator ^ (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint4x3 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator ^ (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 operator ^ (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); } - - - - /// Returns the uint4 element at a specified index. - unsafe public ref uint4 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (uint4x3* array = &this) { return ref ((uint4*)array)[index]; } - } - } - - /// Returns true if the uint4x3 is equal to a given uint4x3, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(uint4x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } - - /// Returns true if the uint4x3 is equal to a given uint4x3, false otherwise. - public override bool Equals(object o) { return Equals((uint4x3)o); } - - - /// Returns a hash code for the uint4x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the uint4x3. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - 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); - } - - /// Returns a string representation of the uint4x3 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - 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)); - } - - } - - public static partial class math - { - /// Returns a uint4x3 matrix constructed from three uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 uint4x3(uint4 c0, uint4 c1, uint4 c2) { return new uint4x3(c0, c1, c2); } - - /// Returns a uint4x3 matrix constructed from from 12 uint values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 uint4x3(uint m00, uint m01, uint m02, - uint m10, uint m11, uint m12, - uint m20, uint m21, uint m22, - uint m30, uint m31, uint m32) - { - return new uint4x3(m00, m01, m02, - m10, m11, m12, - m20, m21, m22, - m30, m31, m32); - } - - /// Returns a uint4x3 matrix constructed from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 uint4x3(uint v) { return new uint4x3(v); } - - /// Returns a uint4x3 matrix constructed from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 uint4x3(bool v) { return new uint4x3(v); } - - /// Return a uint4x3 matrix constructed from a bool4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 uint4x3(bool4x3 v) { return new uint4x3(v); } - - /// Returns a uint4x3 matrix constructed from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 uint4x3(int v) { return new uint4x3(v); } - - /// Return a uint4x3 matrix constructed from a int4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 uint4x3(int4x3 v) { return new uint4x3(v); } - - /// Returns a uint4x3 matrix constructed from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 uint4x3(float v) { return new uint4x3(v); } - - /// Return a uint4x3 matrix constructed from a float4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 uint4x3(float4x3 v) { return new uint4x3(v); } - - /// Returns a uint4x3 matrix constructed from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 uint4x3(double v) { return new uint4x3(v); } - - /// Return a uint4x3 matrix constructed from a double4x3 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x3 uint4x3(double4x3 v) { return new uint4x3(v); } - - /// Return the uint3x4 transpose of a uint4x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3x4 transpose(uint4x3 v) - { - return uint3x4( - v.c0.x, v.c0.y, v.c0.z, v.c0.w, - v.c1.x, v.c1.y, v.c1.z, v.c1.w, - v.c2.x, v.c2.y, v.c2.z, v.c2.w); - } - - /// Returns a uint hash code of a uint4x3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(uint4x3 v) - { - return csum(v.c0 * uint4(0xE7579997u, 0xEF7D56C7u, 0x66F38F0Bu, 0x624256A3u) + - v.c1 * uint4(0x5292ADE1u, 0xD2E590E5u, 0xF25BE857u, 0x9BC17CE7u) + - v.c2 * uint4(0xC8B86851u, 0x64095221u, 0xADF428FFu, 0xA3977109u)) + 0x745ED837u; - } - - /// - /// Returns a uint4 vector hash code of a uint4x3 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(uint4x3 v) - { - return (v.c0 * uint4(0x9CDC88F5u, 0xFA62D721u, 0x7E4DB1CFu, 0x68EEE0F5u) + - v.c1 * uint4(0xBC3B0A59u, 0x816EFB5Du, 0xA24E82B7u, 0x45A22087u) + - v.c2 * uint4(0xFC104C3Bu, 0x5FFF6B19u, 0x5E6CBF3Bu, 0xB546F2A5u)) + 0xBBCF63E7u; - } - - } -} diff --git a/Economy.Shared/Unity.Mathematics/uint4x4.gen.cs b/Economy.Shared/Unity.Mathematics/uint4x4.gen.cs deleted file mode 100644 index 6a17f62b9..000000000 --- a/Economy.Shared/Unity.Mathematics/uint4x4.gen.cs +++ /dev/null @@ -1,530 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ -using System; -using System.Runtime.CompilerServices; - -#pragma warning disable 0660, 0661 - -namespace Unity.Mathematics -{ - [System.Serializable] - public partial struct uint4x4 : System.IEquatable, IFormattable - { - public uint4 c0; - public uint4 c1; - public uint4 c2; - public uint4 c3; - - /// uint4x4 identity transform. - public static readonly uint4x4 identity = new uint4x4(1u, 0u, 0u, 0u, 0u, 1u, 0u, 0u, 0u, 0u, 1u, 0u, 0u, 0u, 0u, 1u); - - /// uint4x4 zero value. - public static readonly uint4x4 zero; - - /// Constructs a uint4x4 matrix from four uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x4(uint4 c0, uint4 c1, uint4 c2, uint4 c3) - { - this.c0 = c0; - this.c1 = c1; - this.c2 = c2; - this.c3 = c3; - } - - /// Constructs a uint4x4 matrix from 16 uint values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x4(uint m00, uint m01, uint m02, uint m03, - uint m10, uint m11, uint m12, uint m13, - uint m20, uint m21, uint m22, uint m23, - uint m30, uint m31, uint m32, uint m33) - { - this.c0 = new uint4(m00, m10, m20, m30); - this.c1 = new uint4(m01, m11, m21, m31); - this.c2 = new uint4(m02, m12, m22, m32); - this.c3 = new uint4(m03, m13, m23, m33); - } - - /// Constructs a uint4x4 matrix from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x4(uint v) - { - this.c0 = v; - this.c1 = v; - this.c2 = v; - this.c3 = v; - } - - /// Constructs a uint4x4 matrix from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x4(bool v) - { - this.c0 = math.select(new uint4(0u), new uint4(1u), v); - this.c1 = math.select(new uint4(0u), new uint4(1u), v); - this.c2 = math.select(new uint4(0u), new uint4(1u), v); - this.c3 = math.select(new uint4(0u), new uint4(1u), v); - } - - /// Constructs a uint4x4 matrix from a bool4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x4(bool4x4 v) - { - this.c0 = math.select(new uint4(0u), new uint4(1u), v.c0); - this.c1 = math.select(new uint4(0u), new uint4(1u), v.c1); - this.c2 = math.select(new uint4(0u), new uint4(1u), v.c2); - this.c3 = math.select(new uint4(0u), new uint4(1u), v.c3); - } - - /// Constructs a uint4x4 matrix from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x4(int v) - { - this.c0 = (uint4)v; - this.c1 = (uint4)v; - this.c2 = (uint4)v; - this.c3 = (uint4)v; - } - - /// Constructs a uint4x4 matrix from a int4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x4(int4x4 v) - { - this.c0 = (uint4)v.c0; - this.c1 = (uint4)v.c1; - this.c2 = (uint4)v.c2; - this.c3 = (uint4)v.c3; - } - - /// Constructs a uint4x4 matrix from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x4(float v) - { - this.c0 = (uint4)v; - this.c1 = (uint4)v; - this.c2 = (uint4)v; - this.c3 = (uint4)v; - } - - /// Constructs a uint4x4 matrix from a float4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x4(float4x4 v) - { - this.c0 = (uint4)v.c0; - this.c1 = (uint4)v.c1; - this.c2 = (uint4)v.c2; - this.c3 = (uint4)v.c3; - } - - /// Constructs a uint4x4 matrix from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x4(double v) - { - this.c0 = (uint4)v; - this.c1 = (uint4)v; - this.c2 = (uint4)v; - this.c3 = (uint4)v; - } - - /// Constructs a uint4x4 matrix from a double4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4x4(double4x4 v) - { - this.c0 = (uint4)v.c0; - this.c1 = (uint4)v.c1; - this.c2 = (uint4)v.c2; - this.c3 = (uint4)v.c3; - } - - - /// Implicitly converts a single uint value to a uint4x4 matrix by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator uint4x4(uint v) { return new uint4x4(v); } - - /// Explicitly converts a single bool value to a uint4x4 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x4(bool v) { return new uint4x4(v); } - - /// Explicitly converts a bool4x4 matrix to a uint4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x4(bool4x4 v) { return new uint4x4(v); } - - /// Explicitly converts a single int value to a uint4x4 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x4(int v) { return new uint4x4(v); } - - /// Explicitly converts a int4x4 matrix to a uint4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x4(int4x4 v) { return new uint4x4(v); } - - /// Explicitly converts a single float value to a uint4x4 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x4(float v) { return new uint4x4(v); } - - /// Explicitly converts a float4x4 matrix to a uint4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x4(float4x4 v) { return new uint4x4(v); } - - /// Explicitly converts a single double value to a uint4x4 matrix by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x4(double v) { return new uint4x4(v); } - - /// Explicitly converts a double4x4 matrix to a uint4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static explicit operator uint4x4(double4x4 v) { return new uint4x4(v); } - - - /// Returns the result of a componentwise multiplication operation on two uint4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator * (uint4x4 lhs, uint4x4 rhs) { return new uint4x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } - - /// Returns the result of a componentwise multiplication operation on a uint4x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator * (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } - - /// Returns the result of a componentwise multiplication operation on a uint value and a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator * (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } - - - /// Returns the result of a componentwise addition operation on two uint4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator + (uint4x4 lhs, uint4x4 rhs) { return new uint4x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } - - /// Returns the result of a componentwise addition operation on a uint4x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator + (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } - - /// Returns the result of a componentwise addition operation on a uint value and a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator + (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } - - - /// Returns the result of a componentwise subtraction operation on two uint4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator - (uint4x4 lhs, uint4x4 rhs) { return new uint4x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } - - /// Returns the result of a componentwise subtraction operation on a uint4x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator - (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } - - /// Returns the result of a componentwise subtraction operation on a uint value and a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator - (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } - - - /// Returns the result of a componentwise division operation on two uint4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator / (uint4x4 lhs, uint4x4 rhs) { return new uint4x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } - - /// Returns the result of a componentwise division operation on a uint4x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator / (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } - - /// Returns the result of a componentwise division operation on a uint value and a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator / (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } - - - /// Returns the result of a componentwise modulus operation on two uint4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator % (uint4x4 lhs, uint4x4 rhs) { return new uint4x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } - - /// Returns the result of a componentwise modulus operation on a uint4x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator % (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } - - /// Returns the result of a componentwise modulus operation on a uint value and a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator % (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } - - - /// Returns the result of a componentwise increment operation on a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator ++ (uint4x4 val) { return new uint4x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } - - - /// Returns the result of a componentwise decrement operation on a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator -- (uint4x4 val) { return new uint4x4 (--val.c0, --val.c1, --val.c2, --val.c3); } - - - /// Returns the result of a componentwise less than operation on two uint4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator < (uint4x4 lhs, uint4x4 rhs) { return new bool4x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } - - /// Returns the result of a componentwise less than operation on a uint4x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator < (uint4x4 lhs, uint rhs) { return new bool4x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } - - /// Returns the result of a componentwise less than operation on a uint value and a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator < (uint lhs, uint4x4 rhs) { return new bool4x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } - - - /// Returns the result of a componentwise less or equal operation on two uint4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator <= (uint4x4 lhs, uint4x4 rhs) { return new bool4x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } - - /// Returns the result of a componentwise less or equal operation on a uint4x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator <= (uint4x4 lhs, uint rhs) { return new bool4x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } - - /// Returns the result of a componentwise less or equal operation on a uint value and a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator <= (uint lhs, uint4x4 rhs) { return new bool4x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } - - - /// Returns the result of a componentwise greater than operation on two uint4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator > (uint4x4 lhs, uint4x4 rhs) { return new bool4x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } - - /// Returns the result of a componentwise greater than operation on a uint4x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator > (uint4x4 lhs, uint rhs) { return new bool4x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } - - /// Returns the result of a componentwise greater than operation on a uint value and a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator > (uint lhs, uint4x4 rhs) { return new bool4x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } - - - /// Returns the result of a componentwise greater or equal operation on two uint4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator >= (uint4x4 lhs, uint4x4 rhs) { return new bool4x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } - - /// Returns the result of a componentwise greater or equal operation on a uint4x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator >= (uint4x4 lhs, uint rhs) { return new bool4x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } - - /// Returns the result of a componentwise greater or equal operation on a uint value and a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator >= (uint lhs, uint4x4 rhs) { return new bool4x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } - - - /// Returns the result of a componentwise unary minus operation on a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator - (uint4x4 val) { return new uint4x4 (-val.c0, -val.c1, -val.c2, -val.c3); } - - - /// Returns the result of a componentwise unary plus operation on a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator + (uint4x4 val) { return new uint4x4 (+val.c0, +val.c1, +val.c2, +val.c3); } - - - /// Returns the result of a componentwise left shift operation on a uint4x4 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator << (uint4x4 x, int n) { return new uint4x4 (x.c0 << n, x.c1 << n, x.c2 << n, x.c3 << n); } - - /// Returns the result of a componentwise right shift operation on a uint4x4 matrix by a number of bits specified by a single int. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator >> (uint4x4 x, int n) { return new uint4x4 (x.c0 >> n, x.c1 >> n, x.c2 >> n, x.c3 >> n); } - - /// Returns the result of a componentwise equality operation on two uint4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator == (uint4x4 lhs, uint4x4 rhs) { return new bool4x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } - - /// Returns the result of a componentwise equality operation on a uint4x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator == (uint4x4 lhs, uint rhs) { return new bool4x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } - - /// Returns the result of a componentwise equality operation on a uint value and a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator == (uint lhs, uint4x4 rhs) { return new bool4x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } - - - /// Returns the result of a componentwise not equal operation on two uint4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator != (uint4x4 lhs, uint4x4 rhs) { return new bool4x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } - - /// Returns the result of a componentwise not equal operation on a uint4x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator != (uint4x4 lhs, uint rhs) { return new bool4x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } - - /// Returns the result of a componentwise not equal operation on a uint value and a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4x4 operator != (uint lhs, uint4x4 rhs) { return new bool4x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } - - - /// Returns the result of a componentwise bitwise not operation on a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator ~ (uint4x4 val) { return new uint4x4 (~val.c0, ~val.c1, ~val.c2, ~val.c3); } - - - /// Returns the result of a componentwise bitwise and operation on two uint4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator & (uint4x4 lhs, uint4x4 rhs) { return new uint4x4 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2, lhs.c3 & rhs.c3); } - - /// Returns the result of a componentwise bitwise and operation on a uint4x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator & (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); } - - /// Returns the result of a componentwise bitwise and operation on a uint value and a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator & (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); } - - - /// Returns the result of a componentwise bitwise or operation on two uint4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator | (uint4x4 lhs, uint4x4 rhs) { return new uint4x4 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2, lhs.c3 | rhs.c3); } - - /// Returns the result of a componentwise bitwise or operation on a uint4x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator | (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); } - - /// Returns the result of a componentwise bitwise or operation on a uint value and a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator | (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); } - - - /// Returns the result of a componentwise bitwise exclusive or operation on two uint4x4 matrices. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator ^ (uint4x4 lhs, uint4x4 rhs) { return new uint4x4 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2, lhs.c3 ^ rhs.c3); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint4x4 matrix and a uint value. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator ^ (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); } - - /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 operator ^ (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); } - - - - /// Returns the uint4 element at a specified index. - unsafe public ref uint4 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (uint4x4* array = &this) { return ref ((uint4*)array)[index]; } - } - } - - /// Returns true if the uint4x4 is equal to a given uint4x4, false otherwise. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(uint4x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } - - /// Returns true if the uint4x4 is equal to a given uint4x4, false otherwise. - public override bool Equals(object o) { return Equals((uint4x4)o); } - - - /// Returns a hash code for the uint4x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } - - - /// Returns a string representation of the uint4x4. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - 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); - } - - /// Returns a string representation of the uint4x4 using a specified format and culture-specific format information. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public string ToString(string format, IFormatProvider formatProvider) - { - 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)); - } - - } - - public static partial class math - { - /// Returns a uint4x4 matrix constructed from four uint4 vectors. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 uint4x4(uint4 c0, uint4 c1, uint4 c2, uint4 c3) { return new uint4x4(c0, c1, c2, c3); } - - /// Returns a uint4x4 matrix constructed from from 16 uint values given in row-major order. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 uint4x4(uint m00, uint m01, uint m02, uint m03, - uint m10, uint m11, uint m12, uint m13, - uint m20, uint m21, uint m22, uint m23, - uint m30, uint m31, uint m32, uint m33) - { - return new uint4x4(m00, m01, m02, m03, - m10, m11, m12, m13, - m20, m21, m22, m23, - m30, m31, m32, m33); - } - - /// Returns a uint4x4 matrix constructed from a single uint value by assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 uint4x4(uint v) { return new uint4x4(v); } - - /// Returns a uint4x4 matrix constructed from a single bool value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 uint4x4(bool v) { return new uint4x4(v); } - - /// Return a uint4x4 matrix constructed from a bool4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 uint4x4(bool4x4 v) { return new uint4x4(v); } - - /// Returns a uint4x4 matrix constructed from a single int value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 uint4x4(int v) { return new uint4x4(v); } - - /// Return a uint4x4 matrix constructed from a int4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 uint4x4(int4x4 v) { return new uint4x4(v); } - - /// Returns a uint4x4 matrix constructed from a single float value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 uint4x4(float v) { return new uint4x4(v); } - - /// Return a uint4x4 matrix constructed from a float4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 uint4x4(float4x4 v) { return new uint4x4(v); } - - /// Returns a uint4x4 matrix constructed from a single double value by converting it to uint and assigning it to every component. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 uint4x4(double v) { return new uint4x4(v); } - - /// Return a uint4x4 matrix constructed from a double4x4 matrix by componentwise conversion. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 uint4x4(double4x4 v) { return new uint4x4(v); } - - /// Return the uint4x4 transpose of a uint4x4 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4x4 transpose(uint4x4 v) - { - return uint4x4( - v.c0.x, v.c0.y, v.c0.z, v.c0.w, - v.c1.x, v.c1.y, v.c1.z, v.c1.w, - v.c2.x, v.c2.y, v.c2.z, v.c2.w, - v.c3.x, v.c3.y, v.c3.z, v.c3.w); - } - - /// Returns a uint hash code of a uint4x4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint hash(uint4x4 v) - { - return csum(v.c0 * uint4(0x9C9F0823u, 0x5A9CA13Bu, 0xAFCDD5EFu, 0xA88D187Du) + - v.c1 * uint4(0xCF6EBA1Du, 0x9D88E5A1u, 0xEADF0775u, 0x747A9D7Bu) + - v.c2 * uint4(0x4111F799u, 0xB5F05AF1u, 0xFD80290Bu, 0x8B65ADB7u) + - v.c3 * uint4(0xDFF4F563u, 0x7069770Du, 0xD1224537u, 0xE99ED6F3u)) + 0x48125549u; - } - - /// - /// Returns a uint4 vector hash code of a uint4x4 vector. - /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash - /// that are only reduced to a narrow uint hash at the very end instead of at every step. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 hashwide(uint4x4 v) - { - return (v.c0 * uint4(0xEEE2123Bu, 0xE3AD9FE5u, 0xCE1CF8BFu, 0x7BE39F3Bu) + - v.c1 * uint4(0xFAB9913Fu, 0xB4501269u, 0xE04B89FDu, 0xDB3DE101u) + - v.c2 * uint4(0x7B6D1B4Bu, 0x58399E77u, 0x5EAC29C9u, 0xFC6014F9u) + - v.c3 * uint4(0x6BF6693Fu, 0x9D1B1D9Bu, 0xF842F5C1u, 0xA47EC335u)) + 0xA477DF57u; - } - - } -} diff --git a/Economy.Shared/bin/Debug/netstandard2.0/Economy.Shared.deps.json b/Economy.Shared/bin/Debug/netstandard2.0/Economy.Shared.deps.json deleted file mode 100644 index 8db0f5c82..000000000 --- a/Economy.Shared/bin/Debug/netstandard2.0/Economy.Shared.deps.json +++ /dev/null @@ -1,1207 +0,0 @@ -{ - "runtimeTarget": { - "name": ".NETStandard,Version=v2.0/", - "signature": "" - }, - "compilationOptions": {}, - "targets": { - ".NETStandard,Version=v2.0": {}, - ".NETStandard,Version=v2.0/": { - "Economy.Shared/1.0.0": { - "dependencies": { - "MessagePack": "2.1.90", - "MessagePack.MSBuild.Tasks": "2.0.323", - "Microsoft.Extensions.Logging": "5.0.0-preview.1.20120.4", - "NETStandard.Library": "2.0.3", - "Newtonsoft.Json": "10.0.3", - "Remotion.Linq": "2.2.0" - }, - "runtime": { - "Economy.Shared.dll": {} - } - }, - "MessagePack/2.1.90": { - "dependencies": { - "MessagePack.Annotations": "2.1.90", - "Microsoft.Bcl.AsyncInterfaces": "1.0.0", - "System.Memory": "4.5.3", - "System.Reflection.Emit": "4.6.0", - "System.Reflection.Emit.Lightweight": "4.6.0", - "System.Runtime.CompilerServices.Unsafe": "5.0.0-preview.1.20120.5", - "System.Threading.Tasks.Extensions": "4.5.3" - }, - "runtime": { - "lib/netstandard2.0/MessagePack.dll": { - "assemblyVersion": "2.1.0.0", - "fileVersion": "2.1.90.20873" - } - } - }, - "MessagePack.Annotations/2.1.90": { - "runtime": { - "lib/netstandard2.0/MessagePack.Annotations.dll": { - "assemblyVersion": "2.1.0.0", - "fileVersion": "2.1.90.20873" - } - } - }, - "MessagePack.MSBuild.Tasks/2.0.323": {}, - "Microsoft.Bcl.AsyncInterfaces/1.0.0": { - "dependencies": { - "System.Threading.Tasks.Extensions": "4.5.3" - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": { - "assemblyVersion": "1.0.0.0", - "fileVersion": "4.700.19.46214" - } - } - }, - "Microsoft.CSharp/4.3.0": { - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Dynamic.Runtime": "4.3.0", - "System.Globalization": "4.3.0", - "System.Linq": "4.3.0", - "System.Linq.Expressions": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Reflection.TypeExtensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Threading": "4.3.0" - }, - "runtime": { - "lib/netstandard1.3/Microsoft.CSharp.dll": { - "assemblyVersion": "4.0.2.0", - "fileVersion": "4.6.24705.1" - } - } - }, - "Microsoft.Extensions.Configuration/5.0.0-preview.1.20120.4": { - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "5.0.0-preview.1.20120.4" - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll": { - "assemblyVersion": "5.0.0.0", - "fileVersion": "5.0.20.12004" - } - } - }, - "Microsoft.Extensions.Configuration.Abstractions/5.0.0-preview.1.20120.4": { - "dependencies": { - "Microsoft.Extensions.Primitives": "5.0.0-preview.1.20120.4" - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": { - "assemblyVersion": "5.0.0.0", - "fileVersion": "5.0.20.12004" - } - } - }, - "Microsoft.Extensions.Configuration.Binder/5.0.0-preview.1.20120.4": { - "dependencies": { - "Microsoft.Extensions.Configuration": "5.0.0-preview.1.20120.4" - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll": { - "assemblyVersion": "5.0.0.0", - "fileVersion": "5.0.20.12004" - } - } - }, - "Microsoft.Extensions.DependencyInjection/5.0.0-preview.1.20120.4": { - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "1.0.0", - "Microsoft.Extensions.DependencyInjection.Abstractions": "5.0.0-preview.1.20120.4" - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll": { - "assemblyVersion": "5.0.0.0", - "fileVersion": "5.0.20.12004" - } - } - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/5.0.0-preview.1.20120.4": { - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": { - "assemblyVersion": "5.0.0.0", - "fileVersion": "5.0.20.12004" - } - } - }, - "Microsoft.Extensions.Logging/5.0.0-preview.1.20120.4": { - "dependencies": { - "Microsoft.Extensions.Configuration.Binder": "5.0.0-preview.1.20120.4", - "Microsoft.Extensions.DependencyInjection": "5.0.0-preview.1.20120.4", - "Microsoft.Extensions.Logging.Abstractions": "5.0.0-preview.1.20120.4", - "Microsoft.Extensions.Options": "5.0.0-preview.1.20120.4" - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll": { - "assemblyVersion": "5.0.0.0", - "fileVersion": "5.0.20.12004" - } - } - }, - "Microsoft.Extensions.Logging.Abstractions/5.0.0-preview.1.20120.4": { - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": { - "assemblyVersion": "5.0.0.0", - "fileVersion": "5.0.20.12004" - } - } - }, - "Microsoft.Extensions.Options/5.0.0-preview.1.20120.4": { - "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "5.0.0-preview.1.20120.4", - "Microsoft.Extensions.Primitives": "5.0.0-preview.1.20120.4", - "System.ComponentModel.Annotations": "5.0.0-preview.1.20120.5" - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Options.dll": { - "assemblyVersion": "5.0.0.0", - "fileVersion": "5.0.20.12004" - } - } - }, - "Microsoft.Extensions.Primitives/5.0.0-preview.1.20120.4": { - "dependencies": { - "System.Memory": "4.5.3", - "System.Runtime.CompilerServices.Unsafe": "5.0.0-preview.1.20120.5" - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll": { - "assemblyVersion": "5.0.0.0", - "fileVersion": "5.0.20.12004" - } - } - }, - "Microsoft.NETCore.Platforms/1.1.0": {}, - "Microsoft.NETCore.Targets/1.1.0": {}, - "NETStandard.Library/2.0.3": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0" - } - }, - "Newtonsoft.Json/10.0.3": { - "dependencies": { - "Microsoft.CSharp": "4.3.0", - "NETStandard.Library": "2.0.3", - "System.ComponentModel.TypeConverter": "4.3.0", - "System.Runtime.Serialization.Formatters": "4.3.0", - "System.Runtime.Serialization.Primitives": "4.3.0", - "System.Xml.XmlDocument": "4.3.0" - }, - "runtime": { - "lib/netstandard1.3/Newtonsoft.Json.dll": { - "assemblyVersion": "10.0.0.0", - "fileVersion": "10.0.3.21018" - } - } - }, - "Remotion.Linq/2.2.0": { - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Linq": "4.3.0", - "System.Linq.Expressions": "4.3.0", - "System.Linq.Queryable": "4.0.1", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - }, - "runtime": { - "lib/netstandard1.0/Remotion.Linq.dll": { - "assemblyVersion": "2.2.0.0", - "fileVersion": "2.2.0.30000" - } - } - }, - "System.Buffers/4.4.0": { - "runtime": { - "lib/netstandard2.0/System.Buffers.dll": { - "assemblyVersion": "4.0.2.0", - "fileVersion": "4.6.25519.3" - } - } - }, - "System.Collections/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Collections.NonGeneric/4.3.0": { - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - }, - "runtime": { - "lib/netstandard1.3/System.Collections.NonGeneric.dll": { - "assemblyVersion": "4.0.2.0", - "fileVersion": "4.6.24705.1" - } - } - }, - "System.Collections.Specialized/4.3.0": { - "dependencies": { - "System.Collections.NonGeneric": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Extensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - }, - "runtime": { - "lib/netstandard1.3/System.Collections.Specialized.dll": { - "assemblyVersion": "4.0.2.0", - "fileVersion": "4.6.24705.1" - } - } - }, - "System.ComponentModel/4.3.0": { - "dependencies": { - "System.Runtime": "4.3.0" - }, - "runtime": { - "lib/netstandard1.3/System.ComponentModel.dll": { - "assemblyVersion": "4.0.2.0", - "fileVersion": "4.6.24705.1" - } - } - }, - "System.ComponentModel.Annotations/5.0.0-preview.1.20120.5": { - "runtime": { - "lib/netstandard2.0/System.ComponentModel.Annotations.dll": { - "assemblyVersion": "4.2.1.0", - "fileVersion": "4.6.26515.6" - } - } - }, - "System.ComponentModel.Primitives/4.3.0": { - "dependencies": { - "System.ComponentModel": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0" - }, - "runtime": { - "lib/netstandard1.0/System.ComponentModel.Primitives.dll": { - "assemblyVersion": "4.1.1.0", - "fileVersion": "4.6.24705.1" - } - } - }, - "System.ComponentModel.TypeConverter/4.3.0": { - "dependencies": { - "System.Collections": "4.3.0", - "System.Collections.NonGeneric": "4.3.0", - "System.Collections.Specialized": "4.3.0", - "System.ComponentModel": "4.3.0", - "System.ComponentModel.Primitives": "4.3.0", - "System.Globalization": "4.3.0", - "System.Linq": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Reflection.TypeExtensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - }, - "runtime": { - "lib/netstandard1.5/System.ComponentModel.TypeConverter.dll": { - "assemblyVersion": "4.1.1.0", - "fileVersion": "4.6.24705.1" - } - } - }, - "System.Diagnostics.Debug/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Dynamic.Runtime/4.3.0": { - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Linq": "4.3.0", - "System.Linq.Expressions": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit": "4.6.0", - "System.Reflection.Emit.ILGeneration": "4.6.0", - "System.Reflection.Primitives": "4.3.0", - "System.Reflection.TypeExtensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - }, - "runtime": { - "lib/netstandard1.3/System.Dynamic.Runtime.dll": { - "assemblyVersion": "4.0.12.0", - "fileVersion": "4.6.24705.1" - } - } - }, - "System.Globalization/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Extensions/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "System.IO/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.FileSystem/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.FileSystem.Primitives/4.3.0": { - "dependencies": { - "System.Runtime": "4.3.0" - }, - "runtime": { - "lib/netstandard1.3/System.IO.FileSystem.Primitives.dll": { - "assemblyVersion": "4.0.2.0", - "fileVersion": "4.6.24705.1" - } - } - }, - "System.Linq/4.3.0": { - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - }, - "runtime": { - "lib/netstandard1.6/System.Linq.dll": { - "assemblyVersion": "4.1.1.0", - "fileVersion": "4.6.24705.1" - } - } - }, - "System.Linq.Expressions/4.3.0": { - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Linq": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit": "4.6.0", - "System.Reflection.Emit.ILGeneration": "4.6.0", - "System.Reflection.Emit.Lightweight": "4.6.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Reflection.TypeExtensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - }, - "runtime": { - "lib/netstandard1.6/System.Linq.Expressions.dll": { - "assemblyVersion": "4.1.1.0", - "fileVersion": "4.6.24705.1" - } - } - }, - "System.Linq.Queryable/4.0.1": { - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Linq": "4.3.0", - "System.Linq.Expressions": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0" - }, - "runtime": { - "lib/netstandard1.3/System.Linq.Queryable.dll": { - "assemblyVersion": "4.0.1.0", - "fileVersion": "1.0.24212.1" - } - } - }, - "System.Memory/4.5.3": { - "dependencies": { - "System.Buffers": "4.4.0", - "System.Numerics.Vectors": "4.4.0", - "System.Runtime.CompilerServices.Unsafe": "5.0.0-preview.1.20120.5" - }, - "runtime": { - "lib/netstandard2.0/System.Memory.dll": { - "assemblyVersion": "4.0.1.1", - "fileVersion": "4.6.27617.2" - } - } - }, - "System.Numerics.Vectors/4.4.0": { - "runtime": { - "lib/netstandard2.0/System.Numerics.Vectors.dll": { - "assemblyVersion": "4.1.3.0", - "fileVersion": "4.6.25519.3" - } - } - }, - "System.ObjectModel/4.3.0": { - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - }, - "runtime": { - "lib/netstandard1.3/System.ObjectModel.dll": { - "assemblyVersion": "4.0.13.0", - "fileVersion": "4.6.24705.1" - } - } - }, - "System.Reflection/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit/4.6.0": { - "dependencies": { - "System.Reflection.Emit.ILGeneration": "4.6.0" - }, - "runtime": { - "lib/netstandard2.0/System.Reflection.Emit.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "4.700.19.46214" - } - } - }, - "System.Reflection.Emit.ILGeneration/4.6.0": { - "runtime": { - "lib/netstandard2.0/System.Reflection.Emit.ILGeneration.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "4.700.19.46214" - } - } - }, - "System.Reflection.Emit.Lightweight/4.6.0": { - "dependencies": { - "System.Reflection.Emit.ILGeneration": "4.6.0" - }, - "runtime": { - "lib/netstandard2.0/System.Reflection.Emit.Lightweight.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "4.700.19.46214" - } - } - }, - "System.Reflection.Extensions/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Primitives/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.TypeExtensions/4.3.0": { - "dependencies": { - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - }, - "runtime": { - "lib/netstandard1.5/System.Reflection.TypeExtensions.dll": { - "assemblyVersion": "4.1.1.0", - "fileVersion": "4.6.24705.1" - } - } - }, - "System.Resources.ResourceManager/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "System.Runtime.CompilerServices.Unsafe/5.0.0-preview.1.20120.5": { - "runtime": { - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": { - "assemblyVersion": "5.0.0.0", - "fileVersion": "5.0.20.12005" - } - } - }, - "System.Runtime.Extensions/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.Handles/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.InteropServices/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Runtime.Serialization.Formatters/4.3.0": { - "dependencies": { - "System.Collections": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Serialization.Primitives": "4.3.0" - }, - "runtime": { - "lib/netstandard1.4/System.Runtime.Serialization.Formatters.dll": { - "assemblyVersion": "4.0.1.0", - "fileVersion": "4.6.24705.1" - } - } - }, - "System.Runtime.Serialization.Primitives/4.3.0": { - "dependencies": { - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0" - }, - "runtime": { - "lib/netstandard1.3/System.Runtime.Serialization.Primitives.dll": { - "assemblyVersion": "4.1.2.0", - "fileVersion": "4.6.24705.1" - } - } - }, - "System.Text.Encoding/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Text.Encoding.Extensions/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Text.RegularExpressions/4.3.0": { - "dependencies": { - "System.Collections": "4.3.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - }, - "runtime": { - "lib/netstandard1.6/System.Text.RegularExpressions.dll": { - "assemblyVersion": "4.1.1.0", - "fileVersion": "4.6.24705.1" - } - } - }, - "System.Threading/4.3.0": { - "dependencies": { - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - }, - "runtime": { - "lib/netstandard1.3/System.Threading.dll": { - "assemblyVersion": "4.0.12.0", - "fileVersion": "4.6.24705.1" - } - } - }, - "System.Threading.Tasks/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Threading.Tasks.Extensions/4.5.3": { - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "5.0.0-preview.1.20120.5" - }, - "runtime": { - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll": { - "assemblyVersion": "4.2.0.1", - "fileVersion": "4.6.27818.1" - } - } - }, - "System.Xml.ReaderWriter/4.3.0": { - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Text.RegularExpressions": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Tasks.Extensions": "4.5.3" - }, - "runtime": { - "lib/netstandard1.3/System.Xml.ReaderWriter.dll": { - "assemblyVersion": "4.1.0.0", - "fileVersion": "4.6.24705.1" - } - } - }, - "System.Xml.XmlDocument/4.3.0": { - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0" - }, - "runtime": { - "lib/netstandard1.3/System.Xml.XmlDocument.dll": { - "assemblyVersion": "4.0.2.0", - "fileVersion": "4.6.24705.1" - } - } - } - } - }, - "libraries": { - "Economy.Shared/1.0.0": { - "type": "project", - "serviceable": false, - "sha512": "" - }, - "MessagePack/2.1.90": { - "type": "package", - "serviceable": true, - "sha512": "sha512-frdAkIQyILYjAhH8Q107N77eccLjnkYr8/L+3vHeCezI0rvfCB2xiZjin936QFtskLBmgW1D9y6bKs45zddVLQ==", - "path": "messagepack/2.1.90", - "hashPath": "messagepack.2.1.90.nupkg.sha512" - }, - "MessagePack.Annotations/2.1.90": { - "type": "package", - "serviceable": true, - "sha512": "sha512-YnS4qdOMFJuC8TDvXK8ECjWn+hI/B6apwMSgQsiynVXxsvFiiSyun7OXgVT7KxkR8qLinFuASzoG/5zv3kemwQ==", - "path": "messagepack.annotations/2.1.90", - "hashPath": "messagepack.annotations.2.1.90.nupkg.sha512" - }, - "MessagePack.MSBuild.Tasks/2.0.323": { - "type": "package", - "serviceable": true, - "sha512": "sha512-/VFfPPzO1x9uSBz7KpqX0mOJf6UKTRAN7Ozk5YOJ4vPNtgaFcacx2frxLACOgl0MoKUVC9oUn+G/KMeSc7NEPA==", - "path": "messagepack.msbuild.tasks/2.0.323", - "hashPath": "messagepack.msbuild.tasks.2.0.323.nupkg.sha512" - }, - "Microsoft.Bcl.AsyncInterfaces/1.0.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-K63Y4hORbBcKLWH5wnKgzyn7TOfYzevIEwIedQHBIkmkEBA9SCqgvom+XTuE+fAFGvINGkhFItaZ2dvMGdT5iw==", - "path": "microsoft.bcl.asyncinterfaces/1.0.0", - "hashPath": "microsoft.bcl.asyncinterfaces.1.0.0.nupkg.sha512" - }, - "Microsoft.CSharp/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-P+MBhIM0YX+JqROuf7i306ZLJEjQYA9uUyRDE+OqwUI5sh41e2ZbPQV3LfAPh+29cmceE1pUffXsGfR4eMY3KA==", - "path": "microsoft.csharp/4.3.0", - "hashPath": "microsoft.csharp.4.3.0.nupkg.sha512" - }, - "Microsoft.Extensions.Configuration/5.0.0-preview.1.20120.4": { - "type": "package", - "serviceable": true, - "sha512": "sha512-sxiJYEYRm1XEdndAyXdOTwSnT3cV7XDtyJlfs7bEVC4BZABrblopCmwVbLjE6/ZjaDxmuaPr8cVyYAnDM55iIg==", - "path": "microsoft.extensions.configuration/5.0.0-preview.1.20120.4", - "hashPath": "microsoft.extensions.configuration.5.0.0-preview.1.20120.4.nupkg.sha512" - }, - "Microsoft.Extensions.Configuration.Abstractions/5.0.0-preview.1.20120.4": { - "type": "package", - "serviceable": true, - "sha512": "sha512-52otpppSgAezHQ8v1TEfkNckX/qXJQAYShl97A03GG8kHTWkqS8Bv3zSLXJZ3084qj822eNcylKz/lMZkf/9CA==", - "path": "microsoft.extensions.configuration.abstractions/5.0.0-preview.1.20120.4", - "hashPath": "microsoft.extensions.configuration.abstractions.5.0.0-preview.1.20120.4.nupkg.sha512" - }, - "Microsoft.Extensions.Configuration.Binder/5.0.0-preview.1.20120.4": { - "type": "package", - "serviceable": true, - "sha512": "sha512-5gC3Rr0gj1r/olVBDMAqE5uL/2SBXoEU2iO3yqvT/uct94TwHBlvw9R96HQeDNBGlPn+DhBaX9XSSXb3ojzzsw==", - "path": "microsoft.extensions.configuration.binder/5.0.0-preview.1.20120.4", - "hashPath": "microsoft.extensions.configuration.binder.5.0.0-preview.1.20120.4.nupkg.sha512" - }, - "Microsoft.Extensions.DependencyInjection/5.0.0-preview.1.20120.4": { - "type": "package", - "serviceable": true, - "sha512": "sha512-CEmbKkrUhfIIDV9m2dhPrKfPqW+WmB3aAEZhWLqcVkX0On7f2R0FTWCSvWqgZkrY0g5+xaGdXw6CofIWmIyXng==", - "path": "microsoft.extensions.dependencyinjection/5.0.0-preview.1.20120.4", - "hashPath": "microsoft.extensions.dependencyinjection.5.0.0-preview.1.20120.4.nupkg.sha512" - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/5.0.0-preview.1.20120.4": { - "type": "package", - "serviceable": true, - "sha512": "sha512-nR8JGs9F4uKUJHA3rXZYVpU4kzQ7G38h3rYq7KgPr3vEWGuCFBL88ZMQMRNRXnBi5kogs9ZQtXZ6D8lo+ccv7A==", - "path": "microsoft.extensions.dependencyinjection.abstractions/5.0.0-preview.1.20120.4", - "hashPath": "microsoft.extensions.dependencyinjection.abstractions.5.0.0-preview.1.20120.4.nupkg.sha512" - }, - "Microsoft.Extensions.Logging/5.0.0-preview.1.20120.4": { - "type": "package", - "serviceable": true, - "sha512": "sha512-v/+7h5o7u980DKyx8sVP618InuzV5nsZa14NiN22sFs3J0WsuJUlBNi/2q3BymPGUKhW5a51J5Bqa/CWHJ0TYQ==", - "path": "microsoft.extensions.logging/5.0.0-preview.1.20120.4", - "hashPath": "microsoft.extensions.logging.5.0.0-preview.1.20120.4.nupkg.sha512" - }, - "Microsoft.Extensions.Logging.Abstractions/5.0.0-preview.1.20120.4": { - "type": "package", - "serviceable": true, - "sha512": "sha512-ChPPvivkV7B0nKuTKmhjA7R+4BfOPp8a/J3BzbHpSJRkCX6If9CGenP/5liLN9KuzTE+yCdK8H3n/JgLvpYS1w==", - "path": "microsoft.extensions.logging.abstractions/5.0.0-preview.1.20120.4", - "hashPath": "microsoft.extensions.logging.abstractions.5.0.0-preview.1.20120.4.nupkg.sha512" - }, - "Microsoft.Extensions.Options/5.0.0-preview.1.20120.4": { - "type": "package", - "serviceable": true, - "sha512": "sha512-xL0TKJZ9DTWSZWyhtux5gjxrXkBOlLr0Ga0MaprkBJFe4HBGNBz1qR5uiCqOQvmTCTeuajDCh51YHyLgby44lQ==", - "path": "microsoft.extensions.options/5.0.0-preview.1.20120.4", - "hashPath": "microsoft.extensions.options.5.0.0-preview.1.20120.4.nupkg.sha512" - }, - "Microsoft.Extensions.Primitives/5.0.0-preview.1.20120.4": { - "type": "package", - "serviceable": true, - "sha512": "sha512-TXN/iw+ZLtReje7mljcf7wUr3iiOx5ffCEYLu2T7st8N5hclsswbhFovw4pIUjrpj+NIdUhr6SCvTSGFhZvewA==", - "path": "microsoft.extensions.primitives/5.0.0-preview.1.20120.4", - "hashPath": "microsoft.extensions.primitives.5.0.0-preview.1.20120.4.nupkg.sha512" - }, - "Microsoft.NETCore.Platforms/1.1.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==", - "path": "microsoft.netcore.platforms/1.1.0", - "hashPath": "microsoft.netcore.platforms.1.1.0.nupkg.sha512" - }, - "Microsoft.NETCore.Targets/1.1.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg==", - "path": "microsoft.netcore.targets/1.1.0", - "hashPath": "microsoft.netcore.targets.1.1.0.nupkg.sha512" - }, - "NETStandard.Library/2.0.3": { - "type": "package", - "serviceable": true, - "sha512": "sha512-st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==", - "path": "netstandard.library/2.0.3", - "hashPath": "netstandard.library.2.0.3.nupkg.sha512" - }, - "Newtonsoft.Json/10.0.3": { - "type": "package", - "serviceable": true, - "sha512": "sha512-hSXaFmh7hNCuEoC4XNY5DrRkLDzYHqPx/Ik23R4J86Z7PE/Y6YidhG602dFVdLBRSdG6xp9NabH3dXpcoxWvww==", - "path": "newtonsoft.json/10.0.3", - "hashPath": "newtonsoft.json.10.0.3.nupkg.sha512" - }, - "Remotion.Linq/2.2.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-fK/76UmpC0FXBlGDFVPLJHQlDLYnGC+XY3eoDgCgbtrhi0vzbXDQ3n/IYHhqSKqXQfGw/u04A1drWs7rFVkRjw==", - "path": "remotion.linq/2.2.0", - "hashPath": "remotion.linq.2.2.0.nupkg.sha512" - }, - "System.Buffers/4.4.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-AwarXzzoDwX6BgrhjoJsk6tUezZEozOT5Y9QKF94Gl4JK91I4PIIBkBco9068Y9/Dra8Dkbie99kXB8+1BaYKw==", - "path": "system.buffers/4.4.0", - "hashPath": "system.buffers.4.4.0.nupkg.sha512" - }, - "System.Collections/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-3Dcj85/TBdVpL5Zr+gEEBUuFe2icOnLalmEh9hfck1PTYbbyWuZgh4fmm2ysCLTrqLQw6t3TgTyJ+VLp+Qb+Lw==", - "path": "system.collections/4.3.0", - "hashPath": "system.collections.4.3.0.nupkg.sha512" - }, - "System.Collections.NonGeneric/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-prtjIEMhGUnQq6RnPEYLpFt8AtLbp9yq2zxOSrY7KJJZrw25Fi97IzBqY7iqssbM61Ek5b8f3MG/sG1N2sN5KA==", - "path": "system.collections.nongeneric/4.3.0", - "hashPath": "system.collections.nongeneric.4.3.0.nupkg.sha512" - }, - "System.Collections.Specialized/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-Epx8PoVZR0iuOnJJDzp7pWvdfMMOAvpUo95pC4ScH2mJuXkKA2Y4aR3cG9qt2klHgSons1WFh4kcGW7cSXvrxg==", - "path": "system.collections.specialized/4.3.0", - "hashPath": "system.collections.specialized.4.3.0.nupkg.sha512" - }, - "System.ComponentModel/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-VyGn1jGRZVfxnh8EdvDCi71v3bMXrsu8aYJOwoV7SNDLVhiEqwP86pPMyRGsDsxhXAm2b3o9OIqeETfN5qfezw==", - "path": "system.componentmodel/4.3.0", - "hashPath": "system.componentmodel.4.3.0.nupkg.sha512" - }, - "System.ComponentModel.Annotations/5.0.0-preview.1.20120.5": { - "type": "package", - "serviceable": true, - "sha512": "sha512-GeaNNeis4umcr8dJH3nyeQH/lq7KsdOJjSegDaurBRJukOpW8fj1vervj1zix9ZJNT6UzphgpeDjS0BLA1OLqg==", - "path": "system.componentmodel.annotations/5.0.0-preview.1.20120.5", - "hashPath": "system.componentmodel.annotations.5.0.0-preview.1.20120.5.nupkg.sha512" - }, - "System.ComponentModel.Primitives/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-j8GUkCpM8V4d4vhLIIoBLGey2Z5bCkMVNjEZseyAlm4n5arcsJOeI3zkUP+zvZgzsbLTYh4lYeP/ZD/gdIAPrw==", - "path": "system.componentmodel.primitives/4.3.0", - "hashPath": "system.componentmodel.primitives.4.3.0.nupkg.sha512" - }, - "System.ComponentModel.TypeConverter/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-16pQ6P+EdhcXzPiEK4kbA953Fu0MNG2ovxTZU81/qsCd1zPRsKc3uif5NgvllCY598k6bI0KUyKW8fanlfaDQg==", - "path": "system.componentmodel.typeconverter/4.3.0", - "hashPath": "system.componentmodel.typeconverter.4.3.0.nupkg.sha512" - }, - "System.Diagnostics.Debug/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-ZUhUOdqmaG5Jk3Xdb8xi5kIyQYAA4PnTNlHx1mu9ZY3qv4ELIdKbnL/akbGaKi2RnNUWaZsAs31rvzFdewTj2g==", - "path": "system.diagnostics.debug/4.3.0", - "hashPath": "system.diagnostics.debug.4.3.0.nupkg.sha512" - }, - "System.Dynamic.Runtime/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-SNVi1E/vfWUAs/WYKhE9+qlS6KqK0YVhnlT0HQtr8pMIA8YX3lwy3uPMownDwdYISBdmAF/2holEIldVp85Wag==", - "path": "system.dynamic.runtime/4.3.0", - "hashPath": "system.dynamic.runtime.4.3.0.nupkg.sha512" - }, - "System.Globalization/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-kYdVd2f2PAdFGblzFswE4hkNANJBKRmsfa2X5LG2AcWE1c7/4t0pYae1L8vfZ5xvE2nK/R9JprtToA61OSHWIg==", - "path": "system.globalization/4.3.0", - "hashPath": "system.globalization.4.3.0.nupkg.sha512" - }, - "System.Globalization.Extensions/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-FhKmdR6MPG+pxow6wGtNAWdZh7noIOpdD5TwQ3CprzgIE1bBBoim0vbR1+AWsWjQmU7zXHgQo4TWSP6lCeiWcQ==", - "path": "system.globalization.extensions/4.3.0", - "hashPath": "system.globalization.extensions.4.3.0.nupkg.sha512" - }, - "System.IO/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==", - "path": "system.io/4.3.0", - "hashPath": "system.io.4.3.0.nupkg.sha512" - }, - "System.IO.FileSystem/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-3wEMARTnuio+ulnvi+hkRNROYwa1kylvYahhcLk4HSoVdl+xxTFVeVlYOfLwrDPImGls0mDqbMhrza8qnWPTdA==", - "path": "system.io.filesystem/4.3.0", - "hashPath": "system.io.filesystem.4.3.0.nupkg.sha512" - }, - "System.IO.FileSystem.Primitives/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-6QOb2XFLch7bEc4lIcJH49nJN2HV+OC3fHDgsLVsBVBk3Y4hFAnOBGzJ2lUu7CyDDFo9IBWkSsnbkT6IBwwiMw==", - "path": "system.io.filesystem.primitives/4.3.0", - "hashPath": "system.io.filesystem.primitives.4.3.0.nupkg.sha512" - }, - "System.Linq/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-5DbqIUpsDp0dFftytzuMmc0oeMdQwjcP/EWxsksIz/w1TcFRkZ3yKKz0PqiYFMmEwPSWw+qNVqD7PJ889JzHbw==", - "path": "system.linq/4.3.0", - "hashPath": "system.linq.4.3.0.nupkg.sha512" - }, - "System.Linq.Expressions/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-PGKkrd2khG4CnlyJwxwwaWWiSiWFNBGlgXvJpeO0xCXrZ89ODrQ6tjEWS/kOqZ8GwEOUATtKtzp1eRgmYNfclg==", - "path": "system.linq.expressions/4.3.0", - "hashPath": "system.linq.expressions.4.3.0.nupkg.sha512" - }, - "System.Linq.Queryable/4.0.1": { - "type": "package", - "serviceable": true, - "sha512": "sha512-Yn/WfYe9RoRfmSLvUt2JerP0BTGGykCZkQPgojaxgzF2N0oPo+/AhB8TXOpdCcNlrG3VRtsamtK2uzsp3cqRVw==", - "path": "system.linq.queryable/4.0.1", - "hashPath": "system.linq.queryable.4.0.1.nupkg.sha512" - }, - "System.Memory/4.5.3": { - "type": "package", - "serviceable": true, - "sha512": "sha512-3oDzvc/zzetpTKWMShs1AADwZjQ/36HnsufHRPcOjyRAAMLDlu2iD33MBI2opxnezcVUtXyqDXXjoFMOU9c7SA==", - "path": "system.memory/4.5.3", - "hashPath": "system.memory.4.5.3.nupkg.sha512" - }, - "System.Numerics.Vectors/4.4.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-UiLzLW+Lw6HLed1Hcg+8jSRttrbuXv7DANVj0DkL9g6EnnzbL75EB7EWsw5uRbhxd/4YdG8li5XizGWepmG3PQ==", - "path": "system.numerics.vectors/4.4.0", - "hashPath": "system.numerics.vectors.4.4.0.nupkg.sha512" - }, - "System.ObjectModel/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-bdX+80eKv9bN6K4N+d77OankKHGn6CH711a6fcOpMQu2Fckp/Ft4L/kW9WznHpyR0NRAvJutzOMHNNlBGvxQzQ==", - "path": "system.objectmodel/4.3.0", - "hashPath": "system.objectmodel.4.3.0.nupkg.sha512" - }, - "System.Reflection/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==", - "path": "system.reflection/4.3.0", - "hashPath": "system.reflection.4.3.0.nupkg.sha512" - }, - "System.Reflection.Emit/4.6.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-qAo4jyXtC9i71iElngX7P2r+zLaiHzxKwf66sc3X91tL5Ks6fnQ1vxL04o7ZSm3sYfLExySL7GN8aTpNYpU1qw==", - "path": "system.reflection.emit/4.6.0", - "hashPath": "system.reflection.emit.4.6.0.nupkg.sha512" - }, - "System.Reflection.Emit.ILGeneration/4.6.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-z3r/uEhMj+1wUNUa/EA2bWxEL9M8bgFt/22xCOQivES28ex3zWxE+2j0gQF/mdRwzlr0jir64HVlwV5J4zTOfw==", - "path": "system.reflection.emit.ilgeneration/4.6.0", - "hashPath": "system.reflection.emit.ilgeneration.4.6.0.nupkg.sha512" - }, - "System.Reflection.Emit.Lightweight/4.6.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-j/V5HVvxvBQ7uubYD0PptQW2KGsi1Pc2kZ9yfwLixv3ADdjL/4M78KyC5e+ymW612DY8ZE4PFoZmWpoNmN2mqg==", - "path": "system.reflection.emit.lightweight/4.6.0", - "hashPath": "system.reflection.emit.lightweight.4.6.0.nupkg.sha512" - }, - "System.Reflection.Extensions/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-rJkrJD3kBI5B712aRu4DpSIiHRtr6QlfZSQsb0hYHrDCZORXCFjQfoipo2LaMUHoT9i1B7j7MnfaEKWDFmFQNQ==", - "path": "system.reflection.extensions/4.3.0", - "hashPath": "system.reflection.extensions.4.3.0.nupkg.sha512" - }, - "System.Reflection.Primitives/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==", - "path": "system.reflection.primitives/4.3.0", - "hashPath": "system.reflection.primitives.4.3.0.nupkg.sha512" - }, - "System.Reflection.TypeExtensions/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-7u6ulLcZbyxB5Gq0nMkQttcdBTx57ibzw+4IOXEfR+sXYQoHvjW5LTLyNr8O22UIMrqYbchJQJnos4eooYzYJA==", - "path": "system.reflection.typeextensions/4.3.0", - "hashPath": "system.reflection.typeextensions.4.3.0.nupkg.sha512" - }, - "System.Resources.ResourceManager/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-/zrcPkkWdZmI4F92gL/TPumP98AVDu/Wxr3CSJGQQ+XN6wbRZcyfSKVoPo17ilb3iOr0cCRqJInGwNMolqhS8A==", - "path": "system.resources.resourcemanager/4.3.0", - "hashPath": "system.resources.resourcemanager.4.3.0.nupkg.sha512" - }, - "System.Runtime/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==", - "path": "system.runtime/4.3.0", - "hashPath": "system.runtime.4.3.0.nupkg.sha512" - }, - "System.Runtime.CompilerServices.Unsafe/5.0.0-preview.1.20120.5": { - "type": "package", - "serviceable": true, - "sha512": "sha512-vAVVRGUm4plmUFqwuXZ9OzfmYU6CEOlD7W4PlOs1wPyWj3JDi00rb9KK9cS/jwsoSmZEzzE6PG74JyYa88w4kg==", - "path": "system.runtime.compilerservices.unsafe/5.0.0-preview.1.20120.5", - "hashPath": "system.runtime.compilerservices.unsafe.5.0.0-preview.1.20120.5.nupkg.sha512" - }, - "System.Runtime.Extensions/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-guW0uK0fn5fcJJ1tJVXYd7/1h5F+pea1r7FLSOz/f8vPEqbR2ZAknuRDvTQ8PzAilDveOxNjSfr0CHfIQfFk8g==", - "path": "system.runtime.extensions/4.3.0", - "hashPath": "system.runtime.extensions.4.3.0.nupkg.sha512" - }, - "System.Runtime.Handles/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-OKiSUN7DmTWeYb3l51A7EYaeNMnvxwE249YtZz7yooT4gOZhmTjIn48KgSsw2k2lYdLgTKNJw/ZIfSElwDRVgg==", - "path": "system.runtime.handles/4.3.0", - "hashPath": "system.runtime.handles.4.3.0.nupkg.sha512" - }, - "System.Runtime.InteropServices/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-uv1ynXqiMK8mp1GM3jDqPCFN66eJ5w5XNomaK2XD+TuCroNTLFGeZ+WCmBMcBDyTFKou3P6cR6J/QsaqDp7fGQ==", - "path": "system.runtime.interopservices/4.3.0", - "hashPath": "system.runtime.interopservices.4.3.0.nupkg.sha512" - }, - "System.Runtime.Serialization.Formatters/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-KT591AkTNFOTbhZlaeMVvfax3RqhH1EJlcwF50Wm7sfnBLuHiOeZRRKrr1ns3NESkM20KPZ5Ol/ueMq5vg4QoQ==", - "path": "system.runtime.serialization.formatters/4.3.0", - "hashPath": "system.runtime.serialization.formatters.4.3.0.nupkg.sha512" - }, - "System.Runtime.Serialization.Primitives/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-Wz+0KOukJGAlXjtKr+5Xpuxf8+c8739RI1C+A2BoQZT+wMCCoMDDdO8/4IRHfaVINqL78GO8dW8G2lW/e45Mcw==", - "path": "system.runtime.serialization.primitives/4.3.0", - "hashPath": "system.runtime.serialization.primitives.4.3.0.nupkg.sha512" - }, - "System.Text.Encoding/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==", - "path": "system.text.encoding/4.3.0", - "hashPath": "system.text.encoding.4.3.0.nupkg.sha512" - }, - "System.Text.Encoding.Extensions/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-YVMK0Bt/A43RmwizJoZ22ei2nmrhobgeiYwFzC4YAN+nue8RF6djXDMog0UCn+brerQoYVyaS+ghy9P/MUVcmw==", - "path": "system.text.encoding.extensions/4.3.0", - "hashPath": "system.text.encoding.extensions.4.3.0.nupkg.sha512" - }, - "System.Text.RegularExpressions/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-RpT2DA+L660cBt1FssIE9CAGpLFdFPuheB7pLpKpn6ZXNby7jDERe8Ua/Ne2xGiwLVG2JOqziiaVCGDon5sKFA==", - "path": "system.text.regularexpressions/4.3.0", - "hashPath": "system.text.regularexpressions.4.3.0.nupkg.sha512" - }, - "System.Threading/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-VkUS0kOBcUf3Wwm0TSbrevDDZ6BlM+b/HRiapRFWjM5O0NS0LviG0glKmFK+hhPDd1XFeSdU1GmlLhb2CoVpIw==", - "path": "system.threading/4.3.0", - "hashPath": "system.threading.4.3.0.nupkg.sha512" - }, - "System.Threading.Tasks/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==", - "path": "system.threading.tasks/4.3.0", - "hashPath": "system.threading.tasks.4.3.0.nupkg.sha512" - }, - "System.Threading.Tasks.Extensions/4.5.3": { - "type": "package", - "serviceable": true, - "sha512": "sha512-+MvhNtcvIbqmhANyKu91jQnvIRVSTiaOiFNfKWwXGHG48YAb4I/TyH8spsySiPYla7gKal5ZnF3teJqZAximyQ==", - "path": "system.threading.tasks.extensions/4.5.3", - "hashPath": "system.threading.tasks.extensions.4.5.3.nupkg.sha512" - }, - "System.Xml.ReaderWriter/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-GrprA+Z0RUXaR4N7/eW71j1rgMnEnEVlgii49GZyAjTH7uliMnrOU3HNFBr6fEDBCJCIdlVNq9hHbaDR621XBA==", - "path": "system.xml.readerwriter/4.3.0", - "hashPath": "system.xml.readerwriter.4.3.0.nupkg.sha512" - }, - "System.Xml.XmlDocument/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-lJ8AxvkX7GQxpC6GFCeBj8ThYVyQczx2+f/cWHJU8tjS7YfI6Cv6bon70jVEgs2CiFbmmM8b9j1oZVx0dSI2Ww==", - "path": "system.xml.xmldocument/4.3.0", - "hashPath": "system.xml.xmldocument.4.3.0.nupkg.sha512" - } - } -} \ No newline at end of file diff --git a/Economy.Shared/bin/Debug/netstandard2.0/Economy.Shared.dll b/Economy.Shared/bin/Debug/netstandard2.0/Economy.Shared.dll deleted file mode 100644 index 9206cb340..000000000 --- a/Economy.Shared/bin/Debug/netstandard2.0/Economy.Shared.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:12df2dbc0f0a418429b9f6f6810e583ece9a361c508e3ba60cb70b7c8d04c2fe -size 1397248 diff --git a/Economy.Shared/obj/Debug/netstandard2.0/Economy.Shared.AssemblyInfo.cs b/Economy.Shared/obj/Debug/netstandard2.0/Economy.Shared.AssemblyInfo.cs deleted file mode 100644 index 5f8a76ebe..000000000 --- a/Economy.Shared/obj/Debug/netstandard2.0/Economy.Shared.AssemblyInfo.cs +++ /dev/null @@ -1,22 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using System; -using System.Reflection; - -[assembly: System.Reflection.AssemblyCompanyAttribute("Economy.Shared")] -[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] -[assembly: System.Reflection.AssemblyProductAttribute("Economy.Shared")] -[assembly: System.Reflection.AssemblyTitleAttribute("Economy.Shared")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] - -// Generated by the MSBuild WriteCodeFragment class. - diff --git a/Economy.Shared/obj/Debug/netstandard2.0/Economy.Shared.AssemblyInfoInputs.cache b/Economy.Shared/obj/Debug/netstandard2.0/Economy.Shared.AssemblyInfoInputs.cache deleted file mode 100644 index 1ec7c7bbc..000000000 --- a/Economy.Shared/obj/Debug/netstandard2.0/Economy.Shared.AssemblyInfoInputs.cache +++ /dev/null @@ -1 +0,0 @@ -ecad4115d1c4ba76d1858e8ed3f10aa2bfd108cd diff --git a/Economy.Shared/obj/Debug/netstandard2.0/Economy.Shared.assets.cache b/Economy.Shared/obj/Debug/netstandard2.0/Economy.Shared.assets.cache deleted file mode 100644 index 8c8834f53..000000000 Binary files a/Economy.Shared/obj/Debug/netstandard2.0/Economy.Shared.assets.cache and /dev/null differ diff --git a/Economy.Shared/obj/Debug/netstandard2.0/Economy.Shared.csproj.FileListAbsolute.txt b/Economy.Shared/obj/Debug/netstandard2.0/Economy.Shared.csproj.FileListAbsolute.txt deleted file mode 100644 index dfa3344bf..000000000 --- a/Economy.Shared/obj/Debug/netstandard2.0/Economy.Shared.csproj.FileListAbsolute.txt +++ /dev/null @@ -1,8 +0,0 @@ -C:\Users\rwvens\Documents\GitHub\Aetheria-Economy\Economy.Shared\bin\Debug\netstandard2.0\Economy.Shared.deps.json -C:\Users\rwvens\Documents\GitHub\Aetheria-Economy\Economy.Shared\bin\Debug\netstandard2.0\Economy.Shared.dll -C:\Users\rwvens\Documents\GitHub\Aetheria-Economy\Economy.Shared\bin\Debug\netstandard2.0\Economy.Shared.pdb -C:\Users\rwvens\Documents\GitHub\Aetheria-Economy\Economy.Shared\obj\Debug\netstandard2.0\Economy.Shared.csprojAssemblyReference.cache -C:\Users\rwvens\Documents\GitHub\Aetheria-Economy\Economy.Shared\obj\Debug\netstandard2.0\Economy.Shared.AssemblyInfoInputs.cache -C:\Users\rwvens\Documents\GitHub\Aetheria-Economy\Economy.Shared\obj\Debug\netstandard2.0\Economy.Shared.AssemblyInfo.cs -C:\Users\rwvens\Documents\GitHub\Aetheria-Economy\Economy.Shared\obj\Debug\netstandard2.0\Economy.Shared.dll -C:\Users\rwvens\Documents\GitHub\Aetheria-Economy\Economy.Shared\obj\Debug\netstandard2.0\Economy.Shared.pdb diff --git a/Economy.Shared/obj/Debug/netstandard2.0/Economy.Shared.csprojAssemblyReference.cache b/Economy.Shared/obj/Debug/netstandard2.0/Economy.Shared.csprojAssemblyReference.cache deleted file mode 100644 index bc04dc1de..000000000 Binary files a/Economy.Shared/obj/Debug/netstandard2.0/Economy.Shared.csprojAssemblyReference.cache and /dev/null differ diff --git a/Economy.Shared/obj/Debug/netstandard2.0/Economy.Shared.dll b/Economy.Shared/obj/Debug/netstandard2.0/Economy.Shared.dll deleted file mode 100644 index 9206cb340..000000000 --- a/Economy.Shared/obj/Debug/netstandard2.0/Economy.Shared.dll +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:12df2dbc0f0a418429b9f6f6810e583ece9a361c508e3ba60cb70b7c8d04c2fe -size 1397248 diff --git a/Economy.Shared/obj/Economy.Shared.csproj.nuget.cache b/Economy.Shared/obj/Economy.Shared.csproj.nuget.cache deleted file mode 100644 index afe0b382b..000000000 --- a/Economy.Shared/obj/Economy.Shared.csproj.nuget.cache +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 1, - "dgSpecHash": "LWHjlDMWUz8TPRS5a7r6naFyzLItidfPMbmWn1udgCrzRisAMKeP8Y4CLoU1Q2j1Ctqewo0hD8CLvcThHWwYfA==", - "success": true -} \ No newline at end of file diff --git a/Economy.Shared/obj/Economy.Shared.csproj.nuget.dgspec.json b/Economy.Shared/obj/Economy.Shared.csproj.nuget.dgspec.json deleted file mode 100644 index 81d15353c..000000000 --- a/Economy.Shared/obj/Economy.Shared.csproj.nuget.dgspec.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "format": 1, - "restore": { - "C:\\Users\\rwvens\\Documents\\GitHub\\Aetheria-Economy\\Economy.Shared\\Economy.Shared.csproj": {} - }, - "projects": { - "C:\\Users\\rwvens\\Documents\\GitHub\\Aetheria-Economy\\Economy.Shared\\Economy.Shared.csproj": { - "version": "1.0.0", - "restore": { - "projectUniqueName": "C:\\Users\\rwvens\\Documents\\GitHub\\Aetheria-Economy\\Economy.Shared\\Economy.Shared.csproj", - "projectName": "Economy.Shared", - "projectPath": "C:\\Users\\rwvens\\Documents\\GitHub\\Aetheria-Economy\\Economy.Shared\\Economy.Shared.csproj", - "packagesPath": "C:\\Users\\rwvens\\.nuget\\packages\\", - "outputPath": "C:\\Users\\rwvens\\Documents\\GitHub\\Aetheria-Economy\\Economy.Shared\\obj\\", - "projectStyle": "PackageReference", - "fallbackFolders": [ - "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" - ], - "configFilePaths": [ - "C:\\Users\\rwvens\\AppData\\Roaming\\NuGet\\NuGet.Config", - "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" - ], - "originalTargetFrameworks": [ - "netstandard2.0" - ], - "sources": { - "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, - "https://api.nuget.org/v3/index.json": {} - }, - "frameworks": { - "netstandard2.0": { - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "netstandard2.0": { - "dependencies": { - "MessagePack": { - "target": "Package", - "version": "[2.1.90, )" - }, - "MessagePack.MSBuild.Tasks": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.323, )" - }, - "Microsoft.Extensions.Logging": { - "target": "Package", - "version": "[5.0.0-preview.1.20120.4, )" - }, - "NETStandard.Library": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.3, )", - "autoReferenced": true - }, - "Newtonsoft.Json": { - "target": "Package", - "version": "[10.0.3, )" - }, - "Remotion.Linq": { - "target": "Package", - "version": "[2.2.0, )" - } - }, - "imports": [ - "net461", - "net462", - "net47", - "net471", - "net472", - "net48" - ], - "assetTargetFallback": true, - "warn": true, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.201\\RuntimeIdentifierGraph.json" - } - } - } - } -} \ No newline at end of file diff --git a/Economy.Shared/obj/Economy.Shared.csproj.nuget.g.props b/Economy.Shared/obj/Economy.Shared.csproj.nuget.g.props deleted file mode 100644 index beccea3f8..000000000 --- a/Economy.Shared/obj/Economy.Shared.csproj.nuget.g.props +++ /dev/null @@ -1,21 +0,0 @@ - - - - True - NuGet - $(MSBuildThisFileDirectory)project.assets.json - $(UserProfile)\.nuget\packages\ - C:\Users\rwvens\.nuget\packages\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder - PackageReference - 5.3.0 - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - - - - - C:\Users\rwvens\.nuget\packages\newtonsoft.json\10.0.3 - - \ No newline at end of file diff --git a/Economy.Shared/obj/Economy.Shared.csproj.nuget.g.targets b/Economy.Shared/obj/Economy.Shared.csproj.nuget.g.targets deleted file mode 100644 index f09823b85..000000000 --- a/Economy.Shared/obj/Economy.Shared.csproj.nuget.g.targets +++ /dev/null @@ -1,9 +0,0 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - - - - \ No newline at end of file diff --git a/Economy.Shared/obj/project.assets.json b/Economy.Shared/obj/project.assets.json deleted file mode 100644 index 4763a766b..000000000 --- a/Economy.Shared/obj/project.assets.json +++ /dev/null @@ -1,4107 +0,0 @@ -{ - "version": 3, - "targets": { - ".NETStandard,Version=v2.0": { - "MessagePack/2.1.90": { - "type": "package", - "dependencies": { - "MessagePack.Annotations": "2.1.90", - "Microsoft.Bcl.AsyncInterfaces": "1.0.0", - "System.Memory": "4.5.3", - "System.Reflection.Emit": "4.6.0", - "System.Reflection.Emit.Lightweight": "4.6.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.2", - "System.Threading.Tasks.Extensions": "4.5.3" - }, - "compile": { - "lib/netstandard2.0/MessagePack.dll": {} - }, - "runtime": { - "lib/netstandard2.0/MessagePack.dll": {} - } - }, - "MessagePack.Annotations/2.1.90": { - "type": "package", - "compile": { - "lib/netstandard2.0/MessagePack.Annotations.dll": {} - }, - "runtime": { - "lib/netstandard2.0/MessagePack.Annotations.dll": {} - } - }, - "MessagePack.MSBuild.Tasks/2.0.323": { - "type": "package", - "build": { - "build/MessagePack.MSBuild.Tasks.props": {} - } - }, - "Microsoft.Bcl.AsyncInterfaces/1.0.0": { - "type": "package", - "dependencies": { - "System.Threading.Tasks.Extensions": "4.5.2" - }, - "compile": { - "ref/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {} - } - }, - "Microsoft.CSharp/4.3.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Dynamic.Runtime": "4.3.0", - "System.Globalization": "4.3.0", - "System.Linq": "4.3.0", - "System.Linq.Expressions": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Reflection.TypeExtensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Threading": "4.3.0" - }, - "compile": { - "ref/netstandard1.0/Microsoft.CSharp.dll": {} - }, - "runtime": { - "lib/netstandard1.3/Microsoft.CSharp.dll": {} - } - }, - "Microsoft.Extensions.Configuration/5.0.0-preview.1.20120.4": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "5.0.0-preview.1.20120.4" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll": {} - } - }, - "Microsoft.Extensions.Configuration.Abstractions/5.0.0-preview.1.20120.4": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Primitives": "5.0.0-preview.1.20120.4" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Configuration.Binder/5.0.0-preview.1.20120.4": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration": "5.0.0-preview.1.20120.4" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll": {} - } - }, - "Microsoft.Extensions.DependencyInjection/5.0.0-preview.1.20120.4": { - "type": "package", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "1.0.0", - "Microsoft.Extensions.DependencyInjection.Abstractions": "5.0.0-preview.1.20120.4" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll": {} - } - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/5.0.0-preview.1.20120.4": { - "type": "package", - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Logging/5.0.0-preview.1.20120.4": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Binder": "5.0.0-preview.1.20120.4", - "Microsoft.Extensions.DependencyInjection": "5.0.0-preview.1.20120.4", - "Microsoft.Extensions.Logging.Abstractions": "5.0.0-preview.1.20120.4", - "Microsoft.Extensions.Options": "5.0.0-preview.1.20120.4" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll": {} - } - }, - "Microsoft.Extensions.Logging.Abstractions/5.0.0-preview.1.20120.4": { - "type": "package", - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Options/5.0.0-preview.1.20120.4": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "5.0.0-preview.1.20120.4", - "Microsoft.Extensions.Primitives": "5.0.0-preview.1.20120.4", - "System.ComponentModel.Annotations": "5.0.0-preview.1.20120.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Options.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Options.dll": {} - } - }, - "Microsoft.Extensions.Primitives/5.0.0-preview.1.20120.4": { - "type": "package", - "dependencies": { - "System.Memory": "4.5.2", - "System.Runtime.CompilerServices.Unsafe": "5.0.0-preview.1.20120.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll": {} - } - }, - "Microsoft.NETCore.Platforms/1.1.0": { - "type": "package", - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - } - }, - "Microsoft.NETCore.Targets/1.1.0": { - "type": "package", - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - } - }, - "NETStandard.Library/2.0.3": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0" - }, - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - }, - "build": { - "build/netstandard2.0/NETStandard.Library.targets": {} - } - }, - "Newtonsoft.Json/10.0.3": { - "type": "package", - "dependencies": { - "Microsoft.CSharp": "4.3.0", - "NETStandard.Library": "1.6.1", - "System.ComponentModel.TypeConverter": "4.3.0", - "System.Runtime.Serialization.Formatters": "4.3.0", - "System.Runtime.Serialization.Primitives": "4.3.0", - "System.Xml.XmlDocument": "4.3.0" - }, - "compile": { - "lib/netstandard1.3/Newtonsoft.Json.dll": {} - }, - "runtime": { - "lib/netstandard1.3/Newtonsoft.Json.dll": {} - } - }, - "Remotion.Linq/2.2.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Linq": "4.1.0", - "System.Linq.Expressions": "4.1.0", - "System.Linq.Queryable": "4.0.1", - "System.ObjectModel": "4.0.12", - "System.Reflection": "4.1.0", - "System.Reflection.Extensions": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Threading": "4.0.11" - }, - "compile": { - "lib/netstandard1.0/Remotion.Linq.dll": {} - }, - "runtime": { - "lib/netstandard1.0/Remotion.Linq.dll": {} - } - }, - "System.Buffers/4.4.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Buffers.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Buffers.dll": {} - } - }, - "System.Collections/4.3.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - }, - "compile": { - "ref/netstandard1.3/System.Collections.dll": {} - } - }, - "System.Collections.NonGeneric/4.3.0": { - "type": "package", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - }, - "compile": { - "ref/netstandard1.3/System.Collections.NonGeneric.dll": {} - }, - "runtime": { - "lib/netstandard1.3/System.Collections.NonGeneric.dll": {} - } - }, - "System.Collections.Specialized/4.3.0": { - "type": "package", - "dependencies": { - "System.Collections.NonGeneric": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Extensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - }, - "compile": { - "ref/netstandard1.3/_._": {} - }, - "runtime": { - "lib/netstandard1.3/System.Collections.Specialized.dll": {} - } - }, - "System.ComponentModel/4.3.0": { - "type": "package", - "dependencies": { - "System.Runtime": "4.3.0" - }, - "compile": { - "ref/netstandard1.0/System.ComponentModel.dll": {} - }, - "runtime": { - "lib/netstandard1.3/System.ComponentModel.dll": {} - } - }, - "System.ComponentModel.Annotations/5.0.0-preview.1.20120.5": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.ComponentModel.Annotations.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.ComponentModel.Annotations.dll": {} - } - }, - "System.ComponentModel.Primitives/4.3.0": { - "type": "package", - "dependencies": { - "System.ComponentModel": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0" - }, - "compile": { - "ref/netstandard1.0/System.ComponentModel.Primitives.dll": {} - }, - "runtime": { - "lib/netstandard1.0/System.ComponentModel.Primitives.dll": {} - } - }, - "System.ComponentModel.TypeConverter/4.3.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.3.0", - "System.Collections.NonGeneric": "4.3.0", - "System.Collections.Specialized": "4.3.0", - "System.ComponentModel": "4.3.0", - "System.ComponentModel.Primitives": "4.3.0", - "System.Globalization": "4.3.0", - "System.Linq": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Reflection.TypeExtensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - }, - "compile": { - "ref/netstandard1.5/System.ComponentModel.TypeConverter.dll": {} - }, - "runtime": { - "lib/netstandard1.5/System.ComponentModel.TypeConverter.dll": {} - } - }, - "System.Diagnostics.Debug/4.3.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - }, - "compile": { - "ref/netstandard1.3/System.Diagnostics.Debug.dll": {} - } - }, - "System.Dynamic.Runtime/4.3.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Linq": "4.3.0", - "System.Linq.Expressions": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Reflection.TypeExtensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - }, - "compile": { - "ref/netstandard1.3/System.Dynamic.Runtime.dll": {} - }, - "runtime": { - "lib/netstandard1.3/System.Dynamic.Runtime.dll": {} - } - }, - "System.Globalization/4.3.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - }, - "compile": { - "ref/netstandard1.3/System.Globalization.dll": {} - } - }, - "System.Globalization.Extensions/4.3.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - }, - "compile": { - "ref/netstandard1.3/_._": {} - }, - "runtimeTargets": { - "runtimes/unix/lib/netstandard1.3/System.Globalization.Extensions.dll": { - "assetType": "runtime", - "rid": "unix" - }, - "runtimes/win/lib/netstandard1.3/System.Globalization.Extensions.dll": { - "assetType": "runtime", - "rid": "win" - } - } - }, - "System.IO/4.3.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - }, - "compile": { - "ref/netstandard1.5/System.IO.dll": {} - } - }, - "System.IO.FileSystem/4.3.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - }, - "compile": { - "ref/netstandard1.3/_._": {} - } - }, - "System.IO.FileSystem.Primitives/4.3.0": { - "type": "package", - "dependencies": { - "System.Runtime": "4.3.0" - }, - "compile": { - "ref/netstandard1.3/_._": {} - }, - "runtime": { - "lib/netstandard1.3/System.IO.FileSystem.Primitives.dll": {} - } - }, - "System.Linq/4.3.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - }, - "compile": { - "ref/netstandard1.6/System.Linq.dll": {} - }, - "runtime": { - "lib/netstandard1.6/System.Linq.dll": {} - } - }, - "System.Linq.Expressions/4.3.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Linq": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Emit.Lightweight": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Reflection.TypeExtensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - }, - "compile": { - "ref/netstandard1.6/System.Linq.Expressions.dll": {} - }, - "runtime": { - "lib/netstandard1.6/System.Linq.Expressions.dll": {} - } - }, - "System.Linq.Queryable/4.0.1": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Linq": "4.1.0", - "System.Linq.Expressions": "4.1.0", - "System.Reflection": "4.1.0", - "System.Reflection.Extensions": "4.0.1", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0" - }, - "compile": { - "ref/netstandard1.0/System.Linq.Queryable.dll": {} - }, - "runtime": { - "lib/netstandard1.3/System.Linq.Queryable.dll": {} - } - }, - "System.Memory/4.5.3": { - "type": "package", - "dependencies": { - "System.Buffers": "4.4.0", - "System.Numerics.Vectors": "4.4.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.2" - }, - "compile": { - "lib/netstandard2.0/System.Memory.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Memory.dll": {} - } - }, - "System.Numerics.Vectors/4.4.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Numerics.Vectors.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Numerics.Vectors.dll": {} - } - }, - "System.ObjectModel/4.3.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - }, - "compile": { - "ref/netstandard1.3/System.ObjectModel.dll": {} - }, - "runtime": { - "lib/netstandard1.3/System.ObjectModel.dll": {} - } - }, - "System.Reflection/4.3.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - }, - "compile": { - "ref/netstandard1.5/System.Reflection.dll": {} - } - }, - "System.Reflection.Emit/4.6.0": { - "type": "package", - "dependencies": { - "System.Reflection.Emit.ILGeneration": "4.6.0" - }, - "compile": { - "ref/netstandard2.0/System.Reflection.Emit.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Reflection.Emit.dll": {} - } - }, - "System.Reflection.Emit.ILGeneration/4.6.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Reflection.Emit.ILGeneration.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Reflection.Emit.ILGeneration.dll": {} - } - }, - "System.Reflection.Emit.Lightweight/4.6.0": { - "type": "package", - "dependencies": { - "System.Reflection.Emit.ILGeneration": "4.6.0" - }, - "compile": { - "ref/netstandard2.0/System.Reflection.Emit.Lightweight.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Reflection.Emit.Lightweight.dll": {} - } - }, - "System.Reflection.Extensions/4.3.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - }, - "compile": { - "ref/netstandard1.0/System.Reflection.Extensions.dll": {} - } - }, - "System.Reflection.Primitives/4.3.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - }, - "compile": { - "ref/netstandard1.0/System.Reflection.Primitives.dll": {} - } - }, - "System.Reflection.TypeExtensions/4.3.0": { - "type": "package", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - }, - "compile": { - "ref/netstandard1.5/_._": {} - }, - "runtime": { - "lib/netstandard1.5/System.Reflection.TypeExtensions.dll": {} - } - }, - "System.Resources.ResourceManager/4.3.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - }, - "compile": { - "ref/netstandard1.0/_._": {} - } - }, - "System.Runtime/4.3.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - }, - "compile": { - "ref/netstandard1.5/System.Runtime.dll": {} - } - }, - "System.Runtime.CompilerServices.Unsafe/5.0.0-preview.1.20120.5": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {} - } - }, - "System.Runtime.Extensions/4.3.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - }, - "compile": { - "ref/netstandard1.5/System.Runtime.Extensions.dll": {} - } - }, - "System.Runtime.Handles/4.3.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - }, - "compile": { - "ref/netstandard1.3/_._": {} - } - }, - "System.Runtime.InteropServices/4.3.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - }, - "compile": { - "ref/netstandard1.5/_._": {} - } - }, - "System.Runtime.Serialization.Formatters/4.3.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Serialization.Primitives": "4.3.0" - }, - "compile": { - "ref/netstandard1.3/System.Runtime.Serialization.Formatters.dll": {} - }, - "runtime": { - "lib/netstandard1.4/System.Runtime.Serialization.Formatters.dll": {} - } - }, - "System.Runtime.Serialization.Primitives/4.3.0": { - "type": "package", - "dependencies": { - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0" - }, - "compile": { - "ref/netstandard1.3/System.Runtime.Serialization.Primitives.dll": {} - }, - "runtime": { - "lib/netstandard1.3/System.Runtime.Serialization.Primitives.dll": {} - } - }, - "System.Text.Encoding/4.3.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - }, - "compile": { - "ref/netstandard1.3/System.Text.Encoding.dll": {} - } - }, - "System.Text.Encoding.Extensions/4.3.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - }, - "compile": { - "ref/netstandard1.3/_._": {} - } - }, - "System.Text.RegularExpressions/4.3.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.3.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - }, - "compile": { - "ref/netstandard1.6/_._": {} - }, - "runtime": { - "lib/netstandard1.6/System.Text.RegularExpressions.dll": {} - } - }, - "System.Threading/4.3.0": { - "type": "package", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - }, - "compile": { - "ref/netstandard1.3/System.Threading.dll": {} - }, - "runtime": { - "lib/netstandard1.3/System.Threading.dll": {} - } - }, - "System.Threading.Tasks/4.3.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - }, - "compile": { - "ref/netstandard1.3/System.Threading.Tasks.dll": {} - } - }, - "System.Threading.Tasks.Extensions/4.5.3": { - "type": "package", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.2" - }, - "compile": { - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll": {} - } - }, - "System.Xml.ReaderWriter/4.3.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Text.RegularExpressions": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Tasks.Extensions": "4.3.0" - }, - "compile": { - "ref/netstandard1.3/System.Xml.ReaderWriter.dll": {} - }, - "runtime": { - "lib/netstandard1.3/System.Xml.ReaderWriter.dll": {} - } - }, - "System.Xml.XmlDocument/4.3.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0" - }, - "compile": { - "ref/netstandard1.3/System.Xml.XmlDocument.dll": {} - }, - "runtime": { - "lib/netstandard1.3/System.Xml.XmlDocument.dll": {} - } - } - } - }, - "libraries": { - "MessagePack/2.1.90": { - "sha512": "frdAkIQyILYjAhH8Q107N77eccLjnkYr8/L+3vHeCezI0rvfCB2xiZjin936QFtskLBmgW1D9y6bKs45zddVLQ==", - "type": "package", - "path": "messagepack/2.1.90", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE", - "lib/netcoreapp2.1/MessagePack.dll", - "lib/netcoreapp2.1/MessagePack.xml", - "lib/netstandard2.0/MessagePack.dll", - "lib/netstandard2.0/MessagePack.xml", - "messagepack.2.1.90.nupkg.sha512", - "messagepack.nuspec" - ] - }, - "MessagePack.Annotations/2.1.90": { - "sha512": "YnS4qdOMFJuC8TDvXK8ECjWn+hI/B6apwMSgQsiynVXxsvFiiSyun7OXgVT7KxkR8qLinFuASzoG/5zv3kemwQ==", - "type": "package", - "path": "messagepack.annotations/2.1.90", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE", - "lib/netstandard2.0/MessagePack.Annotations.dll", - "lib/netstandard2.0/MessagePack.Annotations.xml", - "messagepack.annotations.2.1.90.nupkg.sha512", - "messagepack.annotations.nuspec" - ] - }, - "MessagePack.MSBuild.Tasks/2.0.323": { - "sha512": "/VFfPPzO1x9uSBz7KpqX0mOJf6UKTRAN7Ozk5YOJ4vPNtgaFcacx2frxLACOgl0MoKUVC9oUn+G/KMeSc7NEPA==", - "type": "package", - "path": "messagepack.msbuild.tasks/2.0.323", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE", - "build/MessagePack.MSBuild.Tasks.props", - "messagepack.msbuild.tasks.2.0.323.nupkg.sha512", - "messagepack.msbuild.tasks.nuspec", - "tasks/netstandard2.0/MessagePack.GeneratorCore.dll", - "tasks/netstandard2.0/MessagePack.MSBuild.Tasks.dll", - "tasks/netstandard2.0/MessagePack.MSBuild.Tasks.xml", - "tasks/netstandard2.0/Microsoft.Build.Framework.dll", - "tasks/netstandard2.0/Microsoft.Build.Utilities.Core.dll", - "tasks/netstandard2.0/Microsoft.CodeAnalysis.CSharp.Workspaces.dll", - "tasks/netstandard2.0/Microsoft.CodeAnalysis.CSharp.dll", - "tasks/netstandard2.0/Microsoft.CodeAnalysis.Workspaces.dll", - "tasks/netstandard2.0/Microsoft.CodeAnalysis.dll", - "tasks/netstandard2.0/Microsoft.Extensions.FileSystemGlobbing.dll", - "tasks/netstandard2.0/System.Buffers.dll", - "tasks/netstandard2.0/System.CodeDom.dll", - "tasks/netstandard2.0/System.Collections.Immutable.dll", - "tasks/netstandard2.0/System.Composition.AttributedModel.dll", - "tasks/netstandard2.0/System.Composition.Convention.dll", - "tasks/netstandard2.0/System.Composition.Hosting.dll", - "tasks/netstandard2.0/System.Composition.Runtime.dll", - "tasks/netstandard2.0/System.Composition.TypedParts.dll", - "tasks/netstandard2.0/System.Linq.Expressions.dll", - "tasks/netstandard2.0/System.Linq.dll", - "tasks/netstandard2.0/System.Memory.dll", - "tasks/netstandard2.0/System.Numerics.Vectors.dll", - "tasks/netstandard2.0/System.ObjectModel.dll", - "tasks/netstandard2.0/System.Reflection.Emit.ILGeneration.dll", - "tasks/netstandard2.0/System.Reflection.Emit.Lightweight.dll", - "tasks/netstandard2.0/System.Reflection.Emit.dll", - "tasks/netstandard2.0/System.Reflection.Metadata.dll", - "tasks/netstandard2.0/System.Reflection.TypeExtensions.dll", - "tasks/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", - "tasks/netstandard2.0/System.Runtime.Serialization.Primitives.dll", - "tasks/netstandard2.0/System.Text.Encoding.CodePages.dll", - "tasks/netstandard2.0/System.Threading.Tasks.Extensions.dll", - "tasks/netstandard2.0/System.Threading.Thread.dll", - "tasks/netstandard2.0/System.Threading.dll", - "tasks/netstandard2.0/cs/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll", - "tasks/netstandard2.0/cs/Microsoft.CodeAnalysis.CSharp.resources.dll", - "tasks/netstandard2.0/cs/Microsoft.CodeAnalysis.Workspaces.resources.dll", - "tasks/netstandard2.0/cs/Microsoft.CodeAnalysis.resources.dll", - "tasks/netstandard2.0/de/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll", - "tasks/netstandard2.0/de/Microsoft.CodeAnalysis.CSharp.resources.dll", - "tasks/netstandard2.0/de/Microsoft.CodeAnalysis.Workspaces.resources.dll", - "tasks/netstandard2.0/de/Microsoft.CodeAnalysis.resources.dll", - "tasks/netstandard2.0/es/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll", - "tasks/netstandard2.0/es/Microsoft.CodeAnalysis.CSharp.resources.dll", - "tasks/netstandard2.0/es/Microsoft.CodeAnalysis.Workspaces.resources.dll", - "tasks/netstandard2.0/es/Microsoft.CodeAnalysis.resources.dll", - "tasks/netstandard2.0/fr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll", - "tasks/netstandard2.0/fr/Microsoft.CodeAnalysis.CSharp.resources.dll", - "tasks/netstandard2.0/fr/Microsoft.CodeAnalysis.Workspaces.resources.dll", - "tasks/netstandard2.0/fr/Microsoft.CodeAnalysis.resources.dll", - "tasks/netstandard2.0/it/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll", - "tasks/netstandard2.0/it/Microsoft.CodeAnalysis.CSharp.resources.dll", - "tasks/netstandard2.0/it/Microsoft.CodeAnalysis.Workspaces.resources.dll", - "tasks/netstandard2.0/it/Microsoft.CodeAnalysis.resources.dll", - "tasks/netstandard2.0/ja/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll", - "tasks/netstandard2.0/ja/Microsoft.CodeAnalysis.CSharp.resources.dll", - "tasks/netstandard2.0/ja/Microsoft.CodeAnalysis.Workspaces.resources.dll", - "tasks/netstandard2.0/ja/Microsoft.CodeAnalysis.resources.dll", - "tasks/netstandard2.0/ko/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll", - "tasks/netstandard2.0/ko/Microsoft.CodeAnalysis.CSharp.resources.dll", - "tasks/netstandard2.0/ko/Microsoft.CodeAnalysis.Workspaces.resources.dll", - "tasks/netstandard2.0/ko/Microsoft.CodeAnalysis.resources.dll", - "tasks/netstandard2.0/pl/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll", - "tasks/netstandard2.0/pl/Microsoft.CodeAnalysis.CSharp.resources.dll", - "tasks/netstandard2.0/pl/Microsoft.CodeAnalysis.Workspaces.resources.dll", - "tasks/netstandard2.0/pl/Microsoft.CodeAnalysis.resources.dll", - "tasks/netstandard2.0/pt-BR/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll", - "tasks/netstandard2.0/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll", - "tasks/netstandard2.0/pt-BR/Microsoft.CodeAnalysis.Workspaces.resources.dll", - "tasks/netstandard2.0/pt-BR/Microsoft.CodeAnalysis.resources.dll", - "tasks/netstandard2.0/ru/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll", - "tasks/netstandard2.0/ru/Microsoft.CodeAnalysis.CSharp.resources.dll", - "tasks/netstandard2.0/ru/Microsoft.CodeAnalysis.Workspaces.resources.dll", - "tasks/netstandard2.0/ru/Microsoft.CodeAnalysis.resources.dll", - "tasks/netstandard2.0/tr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll", - "tasks/netstandard2.0/tr/Microsoft.CodeAnalysis.CSharp.resources.dll", - "tasks/netstandard2.0/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll", - "tasks/netstandard2.0/tr/Microsoft.CodeAnalysis.resources.dll", - "tasks/netstandard2.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll", - "tasks/netstandard2.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll", - "tasks/netstandard2.0/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll", - "tasks/netstandard2.0/zh-Hans/Microsoft.CodeAnalysis.resources.dll", - "tasks/netstandard2.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll", - "tasks/netstandard2.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll", - "tasks/netstandard2.0/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll", - "tasks/netstandard2.0/zh-Hant/Microsoft.CodeAnalysis.resources.dll" - ] - }, - "Microsoft.Bcl.AsyncInterfaces/1.0.0": { - "sha512": "K63Y4hORbBcKLWH5wnKgzyn7TOfYzevIEwIedQHBIkmkEBA9SCqgvom+XTuE+fAFGvINGkhFItaZ2dvMGdT5iw==", - "type": "package", - "path": "microsoft.bcl.asyncinterfaces/1.0.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/net461/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/net461/Microsoft.Bcl.AsyncInterfaces.xml", - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.xml", - "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.xml", - "microsoft.bcl.asyncinterfaces.1.0.0.nupkg.sha512", - "microsoft.bcl.asyncinterfaces.nuspec", - "ref/net461/Microsoft.Bcl.AsyncInterfaces.dll", - "ref/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll", - "ref/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "Microsoft.CSharp/4.3.0": { - "sha512": "P+MBhIM0YX+JqROuf7i306ZLJEjQYA9uUyRDE+OqwUI5sh41e2ZbPQV3LfAPh+29cmceE1pUffXsGfR4eMY3KA==", - "type": "package", - "path": "microsoft.csharp/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/netcore50/Microsoft.CSharp.dll", - "lib/netstandard1.3/Microsoft.CSharp.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "microsoft.csharp.4.3.0.nupkg.sha512", - "microsoft.csharp.nuspec", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/Microsoft.CSharp.dll", - "ref/netcore50/Microsoft.CSharp.xml", - "ref/netcore50/de/Microsoft.CSharp.xml", - "ref/netcore50/es/Microsoft.CSharp.xml", - "ref/netcore50/fr/Microsoft.CSharp.xml", - "ref/netcore50/it/Microsoft.CSharp.xml", - "ref/netcore50/ja/Microsoft.CSharp.xml", - "ref/netcore50/ko/Microsoft.CSharp.xml", - "ref/netcore50/ru/Microsoft.CSharp.xml", - "ref/netcore50/zh-hans/Microsoft.CSharp.xml", - "ref/netcore50/zh-hant/Microsoft.CSharp.xml", - "ref/netstandard1.0/Microsoft.CSharp.dll", - "ref/netstandard1.0/Microsoft.CSharp.xml", - "ref/netstandard1.0/de/Microsoft.CSharp.xml", - "ref/netstandard1.0/es/Microsoft.CSharp.xml", - "ref/netstandard1.0/fr/Microsoft.CSharp.xml", - "ref/netstandard1.0/it/Microsoft.CSharp.xml", - "ref/netstandard1.0/ja/Microsoft.CSharp.xml", - "ref/netstandard1.0/ko/Microsoft.CSharp.xml", - "ref/netstandard1.0/ru/Microsoft.CSharp.xml", - "ref/netstandard1.0/zh-hans/Microsoft.CSharp.xml", - "ref/netstandard1.0/zh-hant/Microsoft.CSharp.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._" - ] - }, - "Microsoft.Extensions.Configuration/5.0.0-preview.1.20120.4": { - "sha512": "sxiJYEYRm1XEdndAyXdOTwSnT3cV7XDtyJlfs7bEVC4BZABrblopCmwVbLjE6/ZjaDxmuaPr8cVyYAnDM55iIg==", - "type": "package", - "path": "microsoft.extensions.configuration/5.0.0-preview.1.20120.4", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp5.0/Microsoft.Extensions.Configuration.dll", - "lib/netcoreapp5.0/Microsoft.Extensions.Configuration.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.xml", - "microsoft.extensions.configuration.5.0.0-preview.1.20120.4.nupkg.sha512", - "microsoft.extensions.configuration.nuspec" - ] - }, - "Microsoft.Extensions.Configuration.Abstractions/5.0.0-preview.1.20120.4": { - "sha512": "52otpppSgAezHQ8v1TEfkNckX/qXJQAYShl97A03GG8kHTWkqS8Bv3zSLXJZ3084qj822eNcylKz/lMZkf/9CA==", - "type": "package", - "path": "microsoft.extensions.configuration.abstractions/5.0.0-preview.1.20120.4", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp5.0/Microsoft.Extensions.Configuration.Abstractions.dll", - "lib/netcoreapp5.0/Microsoft.Extensions.Configuration.Abstractions.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.xml", - "microsoft.extensions.configuration.abstractions.5.0.0-preview.1.20120.4.nupkg.sha512", - "microsoft.extensions.configuration.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Configuration.Binder/5.0.0-preview.1.20120.4": { - "sha512": "5gC3Rr0gj1r/olVBDMAqE5uL/2SBXoEU2iO3yqvT/uct94TwHBlvw9R96HQeDNBGlPn+DhBaX9XSSXb3ojzzsw==", - "type": "package", - "path": "microsoft.extensions.configuration.binder/5.0.0-preview.1.20120.4", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp5.0/Microsoft.Extensions.Configuration.Binder.dll", - "lib/netcoreapp5.0/Microsoft.Extensions.Configuration.Binder.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.xml", - "microsoft.extensions.configuration.binder.5.0.0-preview.1.20120.4.nupkg.sha512", - "microsoft.extensions.configuration.binder.nuspec" - ] - }, - "Microsoft.Extensions.DependencyInjection/5.0.0-preview.1.20120.4": { - "sha512": "CEmbKkrUhfIIDV9m2dhPrKfPqW+WmB3aAEZhWLqcVkX0On7f2R0FTWCSvWqgZkrY0g5+xaGdXw6CofIWmIyXng==", - "type": "package", - "path": "microsoft.extensions.dependencyinjection/5.0.0-preview.1.20120.4", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/net461/Microsoft.Extensions.DependencyInjection.dll", - "lib/net461/Microsoft.Extensions.DependencyInjection.xml", - "lib/netcoreapp5.0/Microsoft.Extensions.DependencyInjection.dll", - "lib/netcoreapp5.0/Microsoft.Extensions.DependencyInjection.xml", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.xml", - "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.dll", - "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.xml", - "microsoft.extensions.dependencyinjection.5.0.0-preview.1.20120.4.nupkg.sha512", - "microsoft.extensions.dependencyinjection.nuspec" - ] - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/5.0.0-preview.1.20120.4": { - "sha512": "nR8JGs9F4uKUJHA3rXZYVpU4kzQ7G38h3rYq7KgPr3vEWGuCFBL88ZMQMRNRXnBi5kogs9ZQtXZ6D8lo+ccv7A==", - "type": "package", - "path": "microsoft.extensions.dependencyinjection.abstractions/5.0.0-preview.1.20120.4", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml", - "microsoft.extensions.dependencyinjection.abstractions.5.0.0-preview.1.20120.4.nupkg.sha512", - "microsoft.extensions.dependencyinjection.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Logging/5.0.0-preview.1.20120.4": { - "sha512": "v/+7h5o7u980DKyx8sVP618InuzV5nsZa14NiN22sFs3J0WsuJUlBNi/2q3BymPGUKhW5a51J5Bqa/CWHJ0TYQ==", - "type": "package", - "path": "microsoft.extensions.logging/5.0.0-preview.1.20120.4", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp5.0/Microsoft.Extensions.Logging.dll", - "lib/netcoreapp5.0/Microsoft.Extensions.Logging.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.xml", - "microsoft.extensions.logging.5.0.0-preview.1.20120.4.nupkg.sha512", - "microsoft.extensions.logging.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Abstractions/5.0.0-preview.1.20120.4": { - "sha512": "ChPPvivkV7B0nKuTKmhjA7R+4BfOPp8a/J3BzbHpSJRkCX6If9CGenP/5liLN9KuzTE+yCdK8H3n/JgLvpYS1w==", - "type": "package", - "path": "microsoft.extensions.logging.abstractions/5.0.0-preview.1.20120.4", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.xml", - "microsoft.extensions.logging.abstractions.5.0.0-preview.1.20120.4.nupkg.sha512", - "microsoft.extensions.logging.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Options/5.0.0-preview.1.20120.4": { - "sha512": "xL0TKJZ9DTWSZWyhtux5gjxrXkBOlLr0Ga0MaprkBJFe4HBGNBz1qR5uiCqOQvmTCTeuajDCh51YHyLgby44lQ==", - "type": "package", - "path": "microsoft.extensions.options/5.0.0-preview.1.20120.4", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp5.0/Microsoft.Extensions.Options.dll", - "lib/netcoreapp5.0/Microsoft.Extensions.Options.xml", - "lib/netstandard2.0/Microsoft.Extensions.Options.dll", - "lib/netstandard2.0/Microsoft.Extensions.Options.xml", - "microsoft.extensions.options.5.0.0-preview.1.20120.4.nupkg.sha512", - "microsoft.extensions.options.nuspec" - ] - }, - "Microsoft.Extensions.Primitives/5.0.0-preview.1.20120.4": { - "sha512": "TXN/iw+ZLtReje7mljcf7wUr3iiOx5ffCEYLu2T7st8N5hclsswbhFovw4pIUjrpj+NIdUhr6SCvTSGFhZvewA==", - "type": "package", - "path": "microsoft.extensions.primitives/5.0.0-preview.1.20120.4", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp5.0/Microsoft.Extensions.Primitives.dll", - "lib/netcoreapp5.0/Microsoft.Extensions.Primitives.xml", - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll", - "lib/netstandard2.0/Microsoft.Extensions.Primitives.xml", - "microsoft.extensions.primitives.5.0.0-preview.1.20120.4.nupkg.sha512", - "microsoft.extensions.primitives.nuspec" - ] - }, - "Microsoft.NETCore.Platforms/1.1.0": { - "sha512": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==", - "type": "package", - "path": "microsoft.netcore.platforms/1.1.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/netstandard1.0/_._", - "microsoft.netcore.platforms.1.1.0.nupkg.sha512", - "microsoft.netcore.platforms.nuspec", - "runtime.json" - ] - }, - "Microsoft.NETCore.Targets/1.1.0": { - "sha512": "aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg==", - "type": "package", - "path": "microsoft.netcore.targets/1.1.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/netstandard1.0/_._", - "microsoft.netcore.targets.1.1.0.nupkg.sha512", - "microsoft.netcore.targets.nuspec", - "runtime.json" - ] - }, - "NETStandard.Library/2.0.3": { - "sha512": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==", - "type": "package", - "path": "netstandard.library/2.0.3", - "files": [ - ".nupkg.metadata", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "build/netstandard2.0/NETStandard.Library.targets", - "build/netstandard2.0/ref/Microsoft.Win32.Primitives.dll", - "build/netstandard2.0/ref/System.AppContext.dll", - "build/netstandard2.0/ref/System.Collections.Concurrent.dll", - "build/netstandard2.0/ref/System.Collections.NonGeneric.dll", - "build/netstandard2.0/ref/System.Collections.Specialized.dll", - "build/netstandard2.0/ref/System.Collections.dll", - "build/netstandard2.0/ref/System.ComponentModel.Composition.dll", - "build/netstandard2.0/ref/System.ComponentModel.EventBasedAsync.dll", - "build/netstandard2.0/ref/System.ComponentModel.Primitives.dll", - "build/netstandard2.0/ref/System.ComponentModel.TypeConverter.dll", - "build/netstandard2.0/ref/System.ComponentModel.dll", - "build/netstandard2.0/ref/System.Console.dll", - "build/netstandard2.0/ref/System.Core.dll", - "build/netstandard2.0/ref/System.Data.Common.dll", - "build/netstandard2.0/ref/System.Data.dll", - "build/netstandard2.0/ref/System.Diagnostics.Contracts.dll", - "build/netstandard2.0/ref/System.Diagnostics.Debug.dll", - "build/netstandard2.0/ref/System.Diagnostics.FileVersionInfo.dll", - "build/netstandard2.0/ref/System.Diagnostics.Process.dll", - "build/netstandard2.0/ref/System.Diagnostics.StackTrace.dll", - "build/netstandard2.0/ref/System.Diagnostics.TextWriterTraceListener.dll", - "build/netstandard2.0/ref/System.Diagnostics.Tools.dll", - "build/netstandard2.0/ref/System.Diagnostics.TraceSource.dll", - "build/netstandard2.0/ref/System.Diagnostics.Tracing.dll", - "build/netstandard2.0/ref/System.Drawing.Primitives.dll", - "build/netstandard2.0/ref/System.Drawing.dll", - "build/netstandard2.0/ref/System.Dynamic.Runtime.dll", - "build/netstandard2.0/ref/System.Globalization.Calendars.dll", - "build/netstandard2.0/ref/System.Globalization.Extensions.dll", - "build/netstandard2.0/ref/System.Globalization.dll", - "build/netstandard2.0/ref/System.IO.Compression.FileSystem.dll", - "build/netstandard2.0/ref/System.IO.Compression.ZipFile.dll", - "build/netstandard2.0/ref/System.IO.Compression.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.DriveInfo.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.Primitives.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.Watcher.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.dll", - "build/netstandard2.0/ref/System.IO.IsolatedStorage.dll", - "build/netstandard2.0/ref/System.IO.MemoryMappedFiles.dll", - "build/netstandard2.0/ref/System.IO.Pipes.dll", - "build/netstandard2.0/ref/System.IO.UnmanagedMemoryStream.dll", - "build/netstandard2.0/ref/System.IO.dll", - "build/netstandard2.0/ref/System.Linq.Expressions.dll", - "build/netstandard2.0/ref/System.Linq.Parallel.dll", - "build/netstandard2.0/ref/System.Linq.Queryable.dll", - "build/netstandard2.0/ref/System.Linq.dll", - "build/netstandard2.0/ref/System.Net.Http.dll", - "build/netstandard2.0/ref/System.Net.NameResolution.dll", - "build/netstandard2.0/ref/System.Net.NetworkInformation.dll", - "build/netstandard2.0/ref/System.Net.Ping.dll", - "build/netstandard2.0/ref/System.Net.Primitives.dll", - "build/netstandard2.0/ref/System.Net.Requests.dll", - "build/netstandard2.0/ref/System.Net.Security.dll", - "build/netstandard2.0/ref/System.Net.Sockets.dll", - "build/netstandard2.0/ref/System.Net.WebHeaderCollection.dll", - "build/netstandard2.0/ref/System.Net.WebSockets.Client.dll", - "build/netstandard2.0/ref/System.Net.WebSockets.dll", - "build/netstandard2.0/ref/System.Net.dll", - "build/netstandard2.0/ref/System.Numerics.dll", - "build/netstandard2.0/ref/System.ObjectModel.dll", - "build/netstandard2.0/ref/System.Reflection.Extensions.dll", - "build/netstandard2.0/ref/System.Reflection.Primitives.dll", - "build/netstandard2.0/ref/System.Reflection.dll", - "build/netstandard2.0/ref/System.Resources.Reader.dll", - "build/netstandard2.0/ref/System.Resources.ResourceManager.dll", - "build/netstandard2.0/ref/System.Resources.Writer.dll", - "build/netstandard2.0/ref/System.Runtime.CompilerServices.VisualC.dll", - "build/netstandard2.0/ref/System.Runtime.Extensions.dll", - "build/netstandard2.0/ref/System.Runtime.Handles.dll", - "build/netstandard2.0/ref/System.Runtime.InteropServices.RuntimeInformation.dll", - "build/netstandard2.0/ref/System.Runtime.InteropServices.dll", - "build/netstandard2.0/ref/System.Runtime.Numerics.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Formatters.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Json.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Primitives.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Xml.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.dll", - "build/netstandard2.0/ref/System.Runtime.dll", - "build/netstandard2.0/ref/System.Security.Claims.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Algorithms.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Csp.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Encoding.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Primitives.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.X509Certificates.dll", - "build/netstandard2.0/ref/System.Security.Principal.dll", - "build/netstandard2.0/ref/System.Security.SecureString.dll", - "build/netstandard2.0/ref/System.ServiceModel.Web.dll", - "build/netstandard2.0/ref/System.Text.Encoding.Extensions.dll", - "build/netstandard2.0/ref/System.Text.Encoding.dll", - "build/netstandard2.0/ref/System.Text.RegularExpressions.dll", - "build/netstandard2.0/ref/System.Threading.Overlapped.dll", - "build/netstandard2.0/ref/System.Threading.Tasks.Parallel.dll", - "build/netstandard2.0/ref/System.Threading.Tasks.dll", - "build/netstandard2.0/ref/System.Threading.Thread.dll", - "build/netstandard2.0/ref/System.Threading.ThreadPool.dll", - "build/netstandard2.0/ref/System.Threading.Timer.dll", - "build/netstandard2.0/ref/System.Threading.dll", - "build/netstandard2.0/ref/System.Transactions.dll", - "build/netstandard2.0/ref/System.ValueTuple.dll", - "build/netstandard2.0/ref/System.Web.dll", - "build/netstandard2.0/ref/System.Windows.dll", - "build/netstandard2.0/ref/System.Xml.Linq.dll", - "build/netstandard2.0/ref/System.Xml.ReaderWriter.dll", - "build/netstandard2.0/ref/System.Xml.Serialization.dll", - "build/netstandard2.0/ref/System.Xml.XDocument.dll", - "build/netstandard2.0/ref/System.Xml.XPath.XDocument.dll", - "build/netstandard2.0/ref/System.Xml.XPath.dll", - "build/netstandard2.0/ref/System.Xml.XmlDocument.dll", - "build/netstandard2.0/ref/System.Xml.XmlSerializer.dll", - "build/netstandard2.0/ref/System.Xml.dll", - "build/netstandard2.0/ref/System.dll", - "build/netstandard2.0/ref/mscorlib.dll", - "build/netstandard2.0/ref/netstandard.dll", - "build/netstandard2.0/ref/netstandard.xml", - "lib/netstandard1.0/_._", - "netstandard.library.2.0.3.nupkg.sha512", - "netstandard.library.nuspec" - ] - }, - "Newtonsoft.Json/10.0.3": { - "sha512": "hSXaFmh7hNCuEoC4XNY5DrRkLDzYHqPx/Ik23R4J86Z7PE/Y6YidhG602dFVdLBRSdG6xp9NabH3dXpcoxWvww==", - "type": "package", - "path": "newtonsoft.json/10.0.3", - "hasTools": true, - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.md", - "lib/net20/Newtonsoft.Json.dll", - "lib/net20/Newtonsoft.Json.xml", - "lib/net35/Newtonsoft.Json.dll", - "lib/net35/Newtonsoft.Json.xml", - "lib/net40/Newtonsoft.Json.dll", - "lib/net40/Newtonsoft.Json.xml", - "lib/net45/Newtonsoft.Json.dll", - "lib/net45/Newtonsoft.Json.xml", - "lib/netstandard1.0/Newtonsoft.Json.dll", - "lib/netstandard1.0/Newtonsoft.Json.xml", - "lib/netstandard1.3/Newtonsoft.Json.dll", - "lib/netstandard1.3/Newtonsoft.Json.xml", - "lib/portable-net40+sl5+win8+wp8+wpa81/Newtonsoft.Json.dll", - "lib/portable-net40+sl5+win8+wp8+wpa81/Newtonsoft.Json.xml", - "lib/portable-net45+win8+wp8+wpa81/Newtonsoft.Json.dll", - "lib/portable-net45+win8+wp8+wpa81/Newtonsoft.Json.xml", - "newtonsoft.json.10.0.3.nupkg.sha512", - "newtonsoft.json.nuspec", - "tools/install.ps1" - ] - }, - "Remotion.Linq/2.2.0": { - "sha512": "fK/76UmpC0FXBlGDFVPLJHQlDLYnGC+XY3eoDgCgbtrhi0vzbXDQ3n/IYHhqSKqXQfGw/u04A1drWs7rFVkRjw==", - "type": "package", - "path": "remotion.linq/2.2.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "lib/net35/Remotion.Linq.XML", - "lib/net35/Remotion.Linq.dll", - "lib/net40/Remotion.Linq.XML", - "lib/net40/Remotion.Linq.dll", - "lib/net45/Remotion.Linq.XML", - "lib/net45/Remotion.Linq.dll", - "lib/netstandard1.0/Remotion.Linq.dll", - "lib/netstandard1.0/Remotion.Linq.xml", - "lib/portable-net45+win+wpa81+wp80/Remotion.Linq.dll", - "lib/portable-net45+win+wpa81+wp80/Remotion.Linq.xml", - "remotion.linq.2.2.0.nupkg.sha512", - "remotion.linq.nuspec" - ] - }, - "System.Buffers/4.4.0": { - "sha512": "AwarXzzoDwX6BgrhjoJsk6tUezZEozOT5Y9QKF94Gl4JK91I4PIIBkBco9068Y9/Dra8Dkbie99kXB8+1BaYKw==", - "type": "package", - "path": "system.buffers/4.4.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/netcoreapp2.0/_._", - "lib/netstandard1.1/System.Buffers.dll", - "lib/netstandard1.1/System.Buffers.xml", - "lib/netstandard2.0/System.Buffers.dll", - "lib/netstandard2.0/System.Buffers.xml", - "ref/netcoreapp2.0/_._", - "ref/netstandard1.1/System.Buffers.dll", - "ref/netstandard1.1/System.Buffers.xml", - "ref/netstandard2.0/System.Buffers.dll", - "ref/netstandard2.0/System.Buffers.xml", - "system.buffers.4.4.0.nupkg.sha512", - "system.buffers.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Collections/4.3.0": { - "sha512": "3Dcj85/TBdVpL5Zr+gEEBUuFe2icOnLalmEh9hfck1PTYbbyWuZgh4fmm2ysCLTrqLQw6t3TgTyJ+VLp+Qb+Lw==", - "type": "package", - "path": "system.collections/4.3.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.Collections.dll", - "ref/netcore50/System.Collections.xml", - "ref/netcore50/de/System.Collections.xml", - "ref/netcore50/es/System.Collections.xml", - "ref/netcore50/fr/System.Collections.xml", - "ref/netcore50/it/System.Collections.xml", - "ref/netcore50/ja/System.Collections.xml", - "ref/netcore50/ko/System.Collections.xml", - "ref/netcore50/ru/System.Collections.xml", - "ref/netcore50/zh-hans/System.Collections.xml", - "ref/netcore50/zh-hant/System.Collections.xml", - "ref/netstandard1.0/System.Collections.dll", - "ref/netstandard1.0/System.Collections.xml", - "ref/netstandard1.0/de/System.Collections.xml", - "ref/netstandard1.0/es/System.Collections.xml", - "ref/netstandard1.0/fr/System.Collections.xml", - "ref/netstandard1.0/it/System.Collections.xml", - "ref/netstandard1.0/ja/System.Collections.xml", - "ref/netstandard1.0/ko/System.Collections.xml", - "ref/netstandard1.0/ru/System.Collections.xml", - "ref/netstandard1.0/zh-hans/System.Collections.xml", - "ref/netstandard1.0/zh-hant/System.Collections.xml", - "ref/netstandard1.3/System.Collections.dll", - "ref/netstandard1.3/System.Collections.xml", - "ref/netstandard1.3/de/System.Collections.xml", - "ref/netstandard1.3/es/System.Collections.xml", - "ref/netstandard1.3/fr/System.Collections.xml", - "ref/netstandard1.3/it/System.Collections.xml", - "ref/netstandard1.3/ja/System.Collections.xml", - "ref/netstandard1.3/ko/System.Collections.xml", - "ref/netstandard1.3/ru/System.Collections.xml", - "ref/netstandard1.3/zh-hans/System.Collections.xml", - "ref/netstandard1.3/zh-hant/System.Collections.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.collections.4.3.0.nupkg.sha512", - "system.collections.nuspec" - ] - }, - "System.Collections.NonGeneric/4.3.0": { - "sha512": "prtjIEMhGUnQq6RnPEYLpFt8AtLbp9yq2zxOSrY7KJJZrw25Fi97IzBqY7iqssbM61Ek5b8f3MG/sG1N2sN5KA==", - "type": "package", - "path": "system.collections.nongeneric/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.Collections.NonGeneric.dll", - "lib/netstandard1.3/System.Collections.NonGeneric.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net46/System.Collections.NonGeneric.dll", - "ref/netstandard1.3/System.Collections.NonGeneric.dll", - "ref/netstandard1.3/System.Collections.NonGeneric.xml", - "ref/netstandard1.3/de/System.Collections.NonGeneric.xml", - "ref/netstandard1.3/es/System.Collections.NonGeneric.xml", - "ref/netstandard1.3/fr/System.Collections.NonGeneric.xml", - "ref/netstandard1.3/it/System.Collections.NonGeneric.xml", - "ref/netstandard1.3/ja/System.Collections.NonGeneric.xml", - "ref/netstandard1.3/ko/System.Collections.NonGeneric.xml", - "ref/netstandard1.3/ru/System.Collections.NonGeneric.xml", - "ref/netstandard1.3/zh-hans/System.Collections.NonGeneric.xml", - "ref/netstandard1.3/zh-hant/System.Collections.NonGeneric.xml", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.collections.nongeneric.4.3.0.nupkg.sha512", - "system.collections.nongeneric.nuspec" - ] - }, - "System.Collections.Specialized/4.3.0": { - "sha512": "Epx8PoVZR0iuOnJJDzp7pWvdfMMOAvpUo95pC4ScH2mJuXkKA2Y4aR3cG9qt2klHgSons1WFh4kcGW7cSXvrxg==", - "type": "package", - "path": "system.collections.specialized/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.Collections.Specialized.dll", - "lib/netstandard1.3/System.Collections.Specialized.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net46/System.Collections.Specialized.dll", - "ref/netstandard1.3/System.Collections.Specialized.dll", - "ref/netstandard1.3/System.Collections.Specialized.xml", - "ref/netstandard1.3/de/System.Collections.Specialized.xml", - "ref/netstandard1.3/es/System.Collections.Specialized.xml", - "ref/netstandard1.3/fr/System.Collections.Specialized.xml", - "ref/netstandard1.3/it/System.Collections.Specialized.xml", - "ref/netstandard1.3/ja/System.Collections.Specialized.xml", - "ref/netstandard1.3/ko/System.Collections.Specialized.xml", - "ref/netstandard1.3/ru/System.Collections.Specialized.xml", - "ref/netstandard1.3/zh-hans/System.Collections.Specialized.xml", - "ref/netstandard1.3/zh-hant/System.Collections.Specialized.xml", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.collections.specialized.4.3.0.nupkg.sha512", - "system.collections.specialized.nuspec" - ] - }, - "System.ComponentModel/4.3.0": { - "sha512": "VyGn1jGRZVfxnh8EdvDCi71v3bMXrsu8aYJOwoV7SNDLVhiEqwP86pPMyRGsDsxhXAm2b3o9OIqeETfN5qfezw==", - "type": "package", - "path": "system.componentmodel/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/netcore50/System.ComponentModel.dll", - "lib/netstandard1.3/System.ComponentModel.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.ComponentModel.dll", - "ref/netcore50/System.ComponentModel.xml", - "ref/netcore50/de/System.ComponentModel.xml", - "ref/netcore50/es/System.ComponentModel.xml", - "ref/netcore50/fr/System.ComponentModel.xml", - "ref/netcore50/it/System.ComponentModel.xml", - "ref/netcore50/ja/System.ComponentModel.xml", - "ref/netcore50/ko/System.ComponentModel.xml", - "ref/netcore50/ru/System.ComponentModel.xml", - "ref/netcore50/zh-hans/System.ComponentModel.xml", - "ref/netcore50/zh-hant/System.ComponentModel.xml", - "ref/netstandard1.0/System.ComponentModel.dll", - "ref/netstandard1.0/System.ComponentModel.xml", - "ref/netstandard1.0/de/System.ComponentModel.xml", - "ref/netstandard1.0/es/System.ComponentModel.xml", - "ref/netstandard1.0/fr/System.ComponentModel.xml", - "ref/netstandard1.0/it/System.ComponentModel.xml", - "ref/netstandard1.0/ja/System.ComponentModel.xml", - "ref/netstandard1.0/ko/System.ComponentModel.xml", - "ref/netstandard1.0/ru/System.ComponentModel.xml", - "ref/netstandard1.0/zh-hans/System.ComponentModel.xml", - "ref/netstandard1.0/zh-hant/System.ComponentModel.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.componentmodel.4.3.0.nupkg.sha512", - "system.componentmodel.nuspec" - ] - }, - "System.ComponentModel.Annotations/5.0.0-preview.1.20120.5": { - "sha512": "GeaNNeis4umcr8dJH3nyeQH/lq7KsdOJjSegDaurBRJukOpW8fj1vervj1zix9ZJNT6UzphgpeDjS0BLA1OLqg==", - "type": "package", - "path": "system.componentmodel.annotations/5.0.0-preview.1.20120.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net461/System.ComponentModel.Annotations.dll", - "lib/netcore50/System.ComponentModel.Annotations.dll", - "lib/netstandard1.4/System.ComponentModel.Annotations.dll", - "lib/netstandard2.0/System.ComponentModel.Annotations.dll", - "lib/netstandard2.1/System.ComponentModel.Annotations.dll", - "lib/netstandard2.1/System.ComponentModel.Annotations.xml", - "lib/portable-net45+win8/_._", - "lib/win8/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net461/System.ComponentModel.Annotations.dll", - "ref/net461/System.ComponentModel.Annotations.xml", - "ref/netcore50/System.ComponentModel.Annotations.dll", - "ref/netcore50/System.ComponentModel.Annotations.xml", - "ref/netcore50/de/System.ComponentModel.Annotations.xml", - "ref/netcore50/es/System.ComponentModel.Annotations.xml", - "ref/netcore50/fr/System.ComponentModel.Annotations.xml", - "ref/netcore50/it/System.ComponentModel.Annotations.xml", - "ref/netcore50/ja/System.ComponentModel.Annotations.xml", - "ref/netcore50/ko/System.ComponentModel.Annotations.xml", - "ref/netcore50/ru/System.ComponentModel.Annotations.xml", - "ref/netcore50/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netcore50/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/System.ComponentModel.Annotations.dll", - "ref/netstandard1.1/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/System.ComponentModel.Annotations.dll", - "ref/netstandard1.3/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/System.ComponentModel.Annotations.dll", - "ref/netstandard1.4/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard2.0/System.ComponentModel.Annotations.dll", - "ref/netstandard2.0/System.ComponentModel.Annotations.xml", - "ref/netstandard2.1/System.ComponentModel.Annotations.dll", - "ref/netstandard2.1/System.ComponentModel.Annotations.xml", - "ref/portable-net45+win8/_._", - "ref/win8/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.componentmodel.annotations.5.0.0-preview.1.20120.5.nupkg.sha512", - "system.componentmodel.annotations.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.ComponentModel.Primitives/4.3.0": { - "sha512": "j8GUkCpM8V4d4vhLIIoBLGey2Z5bCkMVNjEZseyAlm4n5arcsJOeI3zkUP+zvZgzsbLTYh4lYeP/ZD/gdIAPrw==", - "type": "package", - "path": "system.componentmodel.primitives/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/System.ComponentModel.Primitives.dll", - "lib/netstandard1.0/System.ComponentModel.Primitives.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/System.ComponentModel.Primitives.dll", - "ref/netstandard1.0/System.ComponentModel.Primitives.dll", - "ref/netstandard1.0/System.ComponentModel.Primitives.xml", - "ref/netstandard1.0/de/System.ComponentModel.Primitives.xml", - "ref/netstandard1.0/es/System.ComponentModel.Primitives.xml", - "ref/netstandard1.0/fr/System.ComponentModel.Primitives.xml", - "ref/netstandard1.0/it/System.ComponentModel.Primitives.xml", - "ref/netstandard1.0/ja/System.ComponentModel.Primitives.xml", - "ref/netstandard1.0/ko/System.ComponentModel.Primitives.xml", - "ref/netstandard1.0/ru/System.ComponentModel.Primitives.xml", - "ref/netstandard1.0/zh-hans/System.ComponentModel.Primitives.xml", - "ref/netstandard1.0/zh-hant/System.ComponentModel.Primitives.xml", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.componentmodel.primitives.4.3.0.nupkg.sha512", - "system.componentmodel.primitives.nuspec" - ] - }, - "System.ComponentModel.TypeConverter/4.3.0": { - "sha512": "16pQ6P+EdhcXzPiEK4kbA953Fu0MNG2ovxTZU81/qsCd1zPRsKc3uif5NgvllCY598k6bI0KUyKW8fanlfaDQg==", - "type": "package", - "path": "system.componentmodel.typeconverter/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/System.ComponentModel.TypeConverter.dll", - "lib/net462/System.ComponentModel.TypeConverter.dll", - "lib/netstandard1.0/System.ComponentModel.TypeConverter.dll", - "lib/netstandard1.5/System.ComponentModel.TypeConverter.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/System.ComponentModel.TypeConverter.dll", - "ref/net462/System.ComponentModel.TypeConverter.dll", - "ref/netstandard1.0/System.ComponentModel.TypeConverter.dll", - "ref/netstandard1.0/System.ComponentModel.TypeConverter.xml", - "ref/netstandard1.0/de/System.ComponentModel.TypeConverter.xml", - "ref/netstandard1.0/es/System.ComponentModel.TypeConverter.xml", - "ref/netstandard1.0/fr/System.ComponentModel.TypeConverter.xml", - "ref/netstandard1.0/it/System.ComponentModel.TypeConverter.xml", - "ref/netstandard1.0/ja/System.ComponentModel.TypeConverter.xml", - "ref/netstandard1.0/ko/System.ComponentModel.TypeConverter.xml", - "ref/netstandard1.0/ru/System.ComponentModel.TypeConverter.xml", - "ref/netstandard1.0/zh-hans/System.ComponentModel.TypeConverter.xml", - "ref/netstandard1.0/zh-hant/System.ComponentModel.TypeConverter.xml", - "ref/netstandard1.5/System.ComponentModel.TypeConverter.dll", - "ref/netstandard1.5/System.ComponentModel.TypeConverter.xml", - "ref/netstandard1.5/de/System.ComponentModel.TypeConverter.xml", - "ref/netstandard1.5/es/System.ComponentModel.TypeConverter.xml", - "ref/netstandard1.5/fr/System.ComponentModel.TypeConverter.xml", - "ref/netstandard1.5/it/System.ComponentModel.TypeConverter.xml", - "ref/netstandard1.5/ja/System.ComponentModel.TypeConverter.xml", - "ref/netstandard1.5/ko/System.ComponentModel.TypeConverter.xml", - "ref/netstandard1.5/ru/System.ComponentModel.TypeConverter.xml", - "ref/netstandard1.5/zh-hans/System.ComponentModel.TypeConverter.xml", - "ref/netstandard1.5/zh-hant/System.ComponentModel.TypeConverter.xml", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.componentmodel.typeconverter.4.3.0.nupkg.sha512", - "system.componentmodel.typeconverter.nuspec" - ] - }, - "System.Diagnostics.Debug/4.3.0": { - "sha512": "ZUhUOdqmaG5Jk3Xdb8xi5kIyQYAA4PnTNlHx1mu9ZY3qv4ELIdKbnL/akbGaKi2RnNUWaZsAs31rvzFdewTj2g==", - "type": "package", - "path": "system.diagnostics.debug/4.3.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.Diagnostics.Debug.dll", - "ref/netcore50/System.Diagnostics.Debug.xml", - "ref/netcore50/de/System.Diagnostics.Debug.xml", - "ref/netcore50/es/System.Diagnostics.Debug.xml", - "ref/netcore50/fr/System.Diagnostics.Debug.xml", - "ref/netcore50/it/System.Diagnostics.Debug.xml", - "ref/netcore50/ja/System.Diagnostics.Debug.xml", - "ref/netcore50/ko/System.Diagnostics.Debug.xml", - "ref/netcore50/ru/System.Diagnostics.Debug.xml", - "ref/netcore50/zh-hans/System.Diagnostics.Debug.xml", - "ref/netcore50/zh-hant/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/System.Diagnostics.Debug.dll", - "ref/netstandard1.0/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/de/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/es/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/fr/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/it/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/ja/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/ko/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/ru/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/zh-hans/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/zh-hant/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/System.Diagnostics.Debug.dll", - "ref/netstandard1.3/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/de/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/es/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/fr/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/it/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/ja/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/ko/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/ru/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/zh-hans/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/zh-hant/System.Diagnostics.Debug.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.diagnostics.debug.4.3.0.nupkg.sha512", - "system.diagnostics.debug.nuspec" - ] - }, - "System.Dynamic.Runtime/4.3.0": { - "sha512": "SNVi1E/vfWUAs/WYKhE9+qlS6KqK0YVhnlT0HQtr8pMIA8YX3lwy3uPMownDwdYISBdmAF/2holEIldVp85Wag==", - "type": "package", - "path": "system.dynamic.runtime/4.3.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/netcore50/System.Dynamic.Runtime.dll", - "lib/netstandard1.3/System.Dynamic.Runtime.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.Dynamic.Runtime.dll", - "ref/netcore50/System.Dynamic.Runtime.xml", - "ref/netcore50/de/System.Dynamic.Runtime.xml", - "ref/netcore50/es/System.Dynamic.Runtime.xml", - "ref/netcore50/fr/System.Dynamic.Runtime.xml", - "ref/netcore50/it/System.Dynamic.Runtime.xml", - "ref/netcore50/ja/System.Dynamic.Runtime.xml", - "ref/netcore50/ko/System.Dynamic.Runtime.xml", - "ref/netcore50/ru/System.Dynamic.Runtime.xml", - "ref/netcore50/zh-hans/System.Dynamic.Runtime.xml", - "ref/netcore50/zh-hant/System.Dynamic.Runtime.xml", - "ref/netstandard1.0/System.Dynamic.Runtime.dll", - "ref/netstandard1.0/System.Dynamic.Runtime.xml", - "ref/netstandard1.0/de/System.Dynamic.Runtime.xml", - "ref/netstandard1.0/es/System.Dynamic.Runtime.xml", - "ref/netstandard1.0/fr/System.Dynamic.Runtime.xml", - "ref/netstandard1.0/it/System.Dynamic.Runtime.xml", - "ref/netstandard1.0/ja/System.Dynamic.Runtime.xml", - "ref/netstandard1.0/ko/System.Dynamic.Runtime.xml", - "ref/netstandard1.0/ru/System.Dynamic.Runtime.xml", - "ref/netstandard1.0/zh-hans/System.Dynamic.Runtime.xml", - "ref/netstandard1.0/zh-hant/System.Dynamic.Runtime.xml", - "ref/netstandard1.3/System.Dynamic.Runtime.dll", - "ref/netstandard1.3/System.Dynamic.Runtime.xml", - "ref/netstandard1.3/de/System.Dynamic.Runtime.xml", - "ref/netstandard1.3/es/System.Dynamic.Runtime.xml", - "ref/netstandard1.3/fr/System.Dynamic.Runtime.xml", - "ref/netstandard1.3/it/System.Dynamic.Runtime.xml", - "ref/netstandard1.3/ja/System.Dynamic.Runtime.xml", - "ref/netstandard1.3/ko/System.Dynamic.Runtime.xml", - "ref/netstandard1.3/ru/System.Dynamic.Runtime.xml", - "ref/netstandard1.3/zh-hans/System.Dynamic.Runtime.xml", - "ref/netstandard1.3/zh-hant/System.Dynamic.Runtime.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "runtimes/aot/lib/netcore50/System.Dynamic.Runtime.dll", - "system.dynamic.runtime.4.3.0.nupkg.sha512", - "system.dynamic.runtime.nuspec" - ] - }, - "System.Globalization/4.3.0": { - "sha512": "kYdVd2f2PAdFGblzFswE4hkNANJBKRmsfa2X5LG2AcWE1c7/4t0pYae1L8vfZ5xvE2nK/R9JprtToA61OSHWIg==", - "type": "package", - "path": "system.globalization/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.Globalization.dll", - "ref/netcore50/System.Globalization.xml", - "ref/netcore50/de/System.Globalization.xml", - "ref/netcore50/es/System.Globalization.xml", - "ref/netcore50/fr/System.Globalization.xml", - "ref/netcore50/it/System.Globalization.xml", - "ref/netcore50/ja/System.Globalization.xml", - "ref/netcore50/ko/System.Globalization.xml", - "ref/netcore50/ru/System.Globalization.xml", - "ref/netcore50/zh-hans/System.Globalization.xml", - "ref/netcore50/zh-hant/System.Globalization.xml", - "ref/netstandard1.0/System.Globalization.dll", - "ref/netstandard1.0/System.Globalization.xml", - "ref/netstandard1.0/de/System.Globalization.xml", - "ref/netstandard1.0/es/System.Globalization.xml", - "ref/netstandard1.0/fr/System.Globalization.xml", - "ref/netstandard1.0/it/System.Globalization.xml", - "ref/netstandard1.0/ja/System.Globalization.xml", - "ref/netstandard1.0/ko/System.Globalization.xml", - "ref/netstandard1.0/ru/System.Globalization.xml", - "ref/netstandard1.0/zh-hans/System.Globalization.xml", - "ref/netstandard1.0/zh-hant/System.Globalization.xml", - "ref/netstandard1.3/System.Globalization.dll", - "ref/netstandard1.3/System.Globalization.xml", - "ref/netstandard1.3/de/System.Globalization.xml", - "ref/netstandard1.3/es/System.Globalization.xml", - "ref/netstandard1.3/fr/System.Globalization.xml", - "ref/netstandard1.3/it/System.Globalization.xml", - "ref/netstandard1.3/ja/System.Globalization.xml", - "ref/netstandard1.3/ko/System.Globalization.xml", - "ref/netstandard1.3/ru/System.Globalization.xml", - "ref/netstandard1.3/zh-hans/System.Globalization.xml", - "ref/netstandard1.3/zh-hant/System.Globalization.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.globalization.4.3.0.nupkg.sha512", - "system.globalization.nuspec" - ] - }, - "System.Globalization.Extensions/4.3.0": { - "sha512": "FhKmdR6MPG+pxow6wGtNAWdZh7noIOpdD5TwQ3CprzgIE1bBBoim0vbR1+AWsWjQmU7zXHgQo4TWSP6lCeiWcQ==", - "type": "package", - "path": "system.globalization.extensions/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.Globalization.Extensions.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net46/System.Globalization.Extensions.dll", - "ref/netstandard1.3/System.Globalization.Extensions.dll", - "ref/netstandard1.3/System.Globalization.Extensions.xml", - "ref/netstandard1.3/de/System.Globalization.Extensions.xml", - "ref/netstandard1.3/es/System.Globalization.Extensions.xml", - "ref/netstandard1.3/fr/System.Globalization.Extensions.xml", - "ref/netstandard1.3/it/System.Globalization.Extensions.xml", - "ref/netstandard1.3/ja/System.Globalization.Extensions.xml", - "ref/netstandard1.3/ko/System.Globalization.Extensions.xml", - "ref/netstandard1.3/ru/System.Globalization.Extensions.xml", - "ref/netstandard1.3/zh-hans/System.Globalization.Extensions.xml", - "ref/netstandard1.3/zh-hant/System.Globalization.Extensions.xml", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "runtimes/unix/lib/netstandard1.3/System.Globalization.Extensions.dll", - "runtimes/win/lib/net46/System.Globalization.Extensions.dll", - "runtimes/win/lib/netstandard1.3/System.Globalization.Extensions.dll", - "system.globalization.extensions.4.3.0.nupkg.sha512", - "system.globalization.extensions.nuspec" - ] - }, - "System.IO/4.3.0": { - "sha512": "3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==", - "type": "package", - "path": "system.io/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net462/System.IO.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net462/System.IO.dll", - "ref/netcore50/System.IO.dll", - "ref/netcore50/System.IO.xml", - "ref/netcore50/de/System.IO.xml", - "ref/netcore50/es/System.IO.xml", - "ref/netcore50/fr/System.IO.xml", - "ref/netcore50/it/System.IO.xml", - "ref/netcore50/ja/System.IO.xml", - "ref/netcore50/ko/System.IO.xml", - "ref/netcore50/ru/System.IO.xml", - "ref/netcore50/zh-hans/System.IO.xml", - "ref/netcore50/zh-hant/System.IO.xml", - "ref/netstandard1.0/System.IO.dll", - "ref/netstandard1.0/System.IO.xml", - "ref/netstandard1.0/de/System.IO.xml", - "ref/netstandard1.0/es/System.IO.xml", - "ref/netstandard1.0/fr/System.IO.xml", - "ref/netstandard1.0/it/System.IO.xml", - "ref/netstandard1.0/ja/System.IO.xml", - "ref/netstandard1.0/ko/System.IO.xml", - "ref/netstandard1.0/ru/System.IO.xml", - "ref/netstandard1.0/zh-hans/System.IO.xml", - "ref/netstandard1.0/zh-hant/System.IO.xml", - "ref/netstandard1.3/System.IO.dll", - "ref/netstandard1.3/System.IO.xml", - "ref/netstandard1.3/de/System.IO.xml", - "ref/netstandard1.3/es/System.IO.xml", - "ref/netstandard1.3/fr/System.IO.xml", - "ref/netstandard1.3/it/System.IO.xml", - "ref/netstandard1.3/ja/System.IO.xml", - "ref/netstandard1.3/ko/System.IO.xml", - "ref/netstandard1.3/ru/System.IO.xml", - "ref/netstandard1.3/zh-hans/System.IO.xml", - "ref/netstandard1.3/zh-hant/System.IO.xml", - "ref/netstandard1.5/System.IO.dll", - "ref/netstandard1.5/System.IO.xml", - "ref/netstandard1.5/de/System.IO.xml", - "ref/netstandard1.5/es/System.IO.xml", - "ref/netstandard1.5/fr/System.IO.xml", - "ref/netstandard1.5/it/System.IO.xml", - "ref/netstandard1.5/ja/System.IO.xml", - "ref/netstandard1.5/ko/System.IO.xml", - "ref/netstandard1.5/ru/System.IO.xml", - "ref/netstandard1.5/zh-hans/System.IO.xml", - "ref/netstandard1.5/zh-hant/System.IO.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.io.4.3.0.nupkg.sha512", - "system.io.nuspec" - ] - }, - "System.IO.FileSystem/4.3.0": { - "sha512": "3wEMARTnuio+ulnvi+hkRNROYwa1kylvYahhcLk4HSoVdl+xxTFVeVlYOfLwrDPImGls0mDqbMhrza8qnWPTdA==", - "type": "package", - "path": "system.io.filesystem/4.3.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.IO.FileSystem.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net46/System.IO.FileSystem.dll", - "ref/netstandard1.3/System.IO.FileSystem.dll", - "ref/netstandard1.3/System.IO.FileSystem.xml", - "ref/netstandard1.3/de/System.IO.FileSystem.xml", - "ref/netstandard1.3/es/System.IO.FileSystem.xml", - "ref/netstandard1.3/fr/System.IO.FileSystem.xml", - "ref/netstandard1.3/it/System.IO.FileSystem.xml", - "ref/netstandard1.3/ja/System.IO.FileSystem.xml", - "ref/netstandard1.3/ko/System.IO.FileSystem.xml", - "ref/netstandard1.3/ru/System.IO.FileSystem.xml", - "ref/netstandard1.3/zh-hans/System.IO.FileSystem.xml", - "ref/netstandard1.3/zh-hant/System.IO.FileSystem.xml", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.io.filesystem.4.3.0.nupkg.sha512", - "system.io.filesystem.nuspec" - ] - }, - "System.IO.FileSystem.Primitives/4.3.0": { - "sha512": "6QOb2XFLch7bEc4lIcJH49nJN2HV+OC3fHDgsLVsBVBk3Y4hFAnOBGzJ2lUu7CyDDFo9IBWkSsnbkT6IBwwiMw==", - "type": "package", - "path": "system.io.filesystem.primitives/4.3.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.IO.FileSystem.Primitives.dll", - "lib/netstandard1.3/System.IO.FileSystem.Primitives.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net46/System.IO.FileSystem.Primitives.dll", - "ref/netstandard1.3/System.IO.FileSystem.Primitives.dll", - "ref/netstandard1.3/System.IO.FileSystem.Primitives.xml", - "ref/netstandard1.3/de/System.IO.FileSystem.Primitives.xml", - "ref/netstandard1.3/es/System.IO.FileSystem.Primitives.xml", - "ref/netstandard1.3/fr/System.IO.FileSystem.Primitives.xml", - "ref/netstandard1.3/it/System.IO.FileSystem.Primitives.xml", - "ref/netstandard1.3/ja/System.IO.FileSystem.Primitives.xml", - "ref/netstandard1.3/ko/System.IO.FileSystem.Primitives.xml", - "ref/netstandard1.3/ru/System.IO.FileSystem.Primitives.xml", - "ref/netstandard1.3/zh-hans/System.IO.FileSystem.Primitives.xml", - "ref/netstandard1.3/zh-hant/System.IO.FileSystem.Primitives.xml", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.io.filesystem.primitives.4.3.0.nupkg.sha512", - "system.io.filesystem.primitives.nuspec" - ] - }, - "System.Linq/4.3.0": { - "sha512": "5DbqIUpsDp0dFftytzuMmc0oeMdQwjcP/EWxsksIz/w1TcFRkZ3yKKz0PqiYFMmEwPSWw+qNVqD7PJ889JzHbw==", - "type": "package", - "path": "system.linq/4.3.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net463/System.Linq.dll", - "lib/netcore50/System.Linq.dll", - "lib/netstandard1.6/System.Linq.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net463/System.Linq.dll", - "ref/netcore50/System.Linq.dll", - "ref/netcore50/System.Linq.xml", - "ref/netcore50/de/System.Linq.xml", - "ref/netcore50/es/System.Linq.xml", - "ref/netcore50/fr/System.Linq.xml", - "ref/netcore50/it/System.Linq.xml", - "ref/netcore50/ja/System.Linq.xml", - "ref/netcore50/ko/System.Linq.xml", - "ref/netcore50/ru/System.Linq.xml", - "ref/netcore50/zh-hans/System.Linq.xml", - "ref/netcore50/zh-hant/System.Linq.xml", - "ref/netstandard1.0/System.Linq.dll", - "ref/netstandard1.0/System.Linq.xml", - "ref/netstandard1.0/de/System.Linq.xml", - "ref/netstandard1.0/es/System.Linq.xml", - "ref/netstandard1.0/fr/System.Linq.xml", - "ref/netstandard1.0/it/System.Linq.xml", - "ref/netstandard1.0/ja/System.Linq.xml", - "ref/netstandard1.0/ko/System.Linq.xml", - "ref/netstandard1.0/ru/System.Linq.xml", - "ref/netstandard1.0/zh-hans/System.Linq.xml", - "ref/netstandard1.0/zh-hant/System.Linq.xml", - "ref/netstandard1.6/System.Linq.dll", - "ref/netstandard1.6/System.Linq.xml", - "ref/netstandard1.6/de/System.Linq.xml", - "ref/netstandard1.6/es/System.Linq.xml", - "ref/netstandard1.6/fr/System.Linq.xml", - "ref/netstandard1.6/it/System.Linq.xml", - "ref/netstandard1.6/ja/System.Linq.xml", - "ref/netstandard1.6/ko/System.Linq.xml", - "ref/netstandard1.6/ru/System.Linq.xml", - "ref/netstandard1.6/zh-hans/System.Linq.xml", - "ref/netstandard1.6/zh-hant/System.Linq.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.linq.4.3.0.nupkg.sha512", - "system.linq.nuspec" - ] - }, - "System.Linq.Expressions/4.3.0": { - "sha512": "PGKkrd2khG4CnlyJwxwwaWWiSiWFNBGlgXvJpeO0xCXrZ89ODrQ6tjEWS/kOqZ8GwEOUATtKtzp1eRgmYNfclg==", - "type": "package", - "path": "system.linq.expressions/4.3.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net463/System.Linq.Expressions.dll", - "lib/netcore50/System.Linq.Expressions.dll", - "lib/netstandard1.6/System.Linq.Expressions.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net463/System.Linq.Expressions.dll", - "ref/netcore50/System.Linq.Expressions.dll", - "ref/netcore50/System.Linq.Expressions.xml", - "ref/netcore50/de/System.Linq.Expressions.xml", - "ref/netcore50/es/System.Linq.Expressions.xml", - "ref/netcore50/fr/System.Linq.Expressions.xml", - "ref/netcore50/it/System.Linq.Expressions.xml", - "ref/netcore50/ja/System.Linq.Expressions.xml", - "ref/netcore50/ko/System.Linq.Expressions.xml", - "ref/netcore50/ru/System.Linq.Expressions.xml", - "ref/netcore50/zh-hans/System.Linq.Expressions.xml", - "ref/netcore50/zh-hant/System.Linq.Expressions.xml", - "ref/netstandard1.0/System.Linq.Expressions.dll", - "ref/netstandard1.0/System.Linq.Expressions.xml", - "ref/netstandard1.0/de/System.Linq.Expressions.xml", - "ref/netstandard1.0/es/System.Linq.Expressions.xml", - "ref/netstandard1.0/fr/System.Linq.Expressions.xml", - "ref/netstandard1.0/it/System.Linq.Expressions.xml", - "ref/netstandard1.0/ja/System.Linq.Expressions.xml", - "ref/netstandard1.0/ko/System.Linq.Expressions.xml", - "ref/netstandard1.0/ru/System.Linq.Expressions.xml", - "ref/netstandard1.0/zh-hans/System.Linq.Expressions.xml", - "ref/netstandard1.0/zh-hant/System.Linq.Expressions.xml", - "ref/netstandard1.3/System.Linq.Expressions.dll", - "ref/netstandard1.3/System.Linq.Expressions.xml", - "ref/netstandard1.3/de/System.Linq.Expressions.xml", - "ref/netstandard1.3/es/System.Linq.Expressions.xml", - "ref/netstandard1.3/fr/System.Linq.Expressions.xml", - "ref/netstandard1.3/it/System.Linq.Expressions.xml", - "ref/netstandard1.3/ja/System.Linq.Expressions.xml", - "ref/netstandard1.3/ko/System.Linq.Expressions.xml", - "ref/netstandard1.3/ru/System.Linq.Expressions.xml", - "ref/netstandard1.3/zh-hans/System.Linq.Expressions.xml", - "ref/netstandard1.3/zh-hant/System.Linq.Expressions.xml", - "ref/netstandard1.6/System.Linq.Expressions.dll", - "ref/netstandard1.6/System.Linq.Expressions.xml", - "ref/netstandard1.6/de/System.Linq.Expressions.xml", - "ref/netstandard1.6/es/System.Linq.Expressions.xml", - "ref/netstandard1.6/fr/System.Linq.Expressions.xml", - "ref/netstandard1.6/it/System.Linq.Expressions.xml", - "ref/netstandard1.6/ja/System.Linq.Expressions.xml", - "ref/netstandard1.6/ko/System.Linq.Expressions.xml", - "ref/netstandard1.6/ru/System.Linq.Expressions.xml", - "ref/netstandard1.6/zh-hans/System.Linq.Expressions.xml", - "ref/netstandard1.6/zh-hant/System.Linq.Expressions.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "runtimes/aot/lib/netcore50/System.Linq.Expressions.dll", - "system.linq.expressions.4.3.0.nupkg.sha512", - "system.linq.expressions.nuspec" - ] - }, - "System.Linq.Queryable/4.0.1": { - "sha512": "Yn/WfYe9RoRfmSLvUt2JerP0BTGGykCZkQPgojaxgzF2N0oPo+/AhB8TXOpdCcNlrG3VRtsamtK2uzsp3cqRVw==", - "type": "package", - "path": "system.linq.queryable/4.0.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/monoandroid10/_._", - "lib/monotouch10/_._", - "lib/net45/_._", - "lib/netcore50/System.Linq.Queryable.dll", - "lib/netstandard1.3/System.Linq.Queryable.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/monoandroid10/_._", - "ref/monotouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.Linq.Queryable.dll", - "ref/netcore50/System.Linq.Queryable.xml", - "ref/netcore50/de/System.Linq.Queryable.xml", - "ref/netcore50/es/System.Linq.Queryable.xml", - "ref/netcore50/fr/System.Linq.Queryable.xml", - "ref/netcore50/it/System.Linq.Queryable.xml", - "ref/netcore50/ja/System.Linq.Queryable.xml", - "ref/netcore50/ko/System.Linq.Queryable.xml", - "ref/netcore50/ru/System.Linq.Queryable.xml", - "ref/netcore50/zh-hans/System.Linq.Queryable.xml", - "ref/netcore50/zh-hant/System.Linq.Queryable.xml", - "ref/netstandard1.0/System.Linq.Queryable.dll", - "ref/netstandard1.0/System.Linq.Queryable.xml", - "ref/netstandard1.0/de/System.Linq.Queryable.xml", - "ref/netstandard1.0/es/System.Linq.Queryable.xml", - "ref/netstandard1.0/fr/System.Linq.Queryable.xml", - "ref/netstandard1.0/it/System.Linq.Queryable.xml", - "ref/netstandard1.0/ja/System.Linq.Queryable.xml", - "ref/netstandard1.0/ko/System.Linq.Queryable.xml", - "ref/netstandard1.0/ru/System.Linq.Queryable.xml", - "ref/netstandard1.0/zh-hans/System.Linq.Queryable.xml", - "ref/netstandard1.0/zh-hant/System.Linq.Queryable.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.linq.queryable.4.0.1.nupkg.sha512", - "system.linq.queryable.nuspec" - ] - }, - "System.Memory/4.5.3": { - "sha512": "3oDzvc/zzetpTKWMShs1AADwZjQ/36HnsufHRPcOjyRAAMLDlu2iD33MBI2opxnezcVUtXyqDXXjoFMOU9c7SA==", - "type": "package", - "path": "system.memory/4.5.3", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/netcoreapp2.1/_._", - "lib/netstandard1.1/System.Memory.dll", - "lib/netstandard1.1/System.Memory.xml", - "lib/netstandard2.0/System.Memory.dll", - "lib/netstandard2.0/System.Memory.xml", - "ref/netcoreapp2.1/_._", - "system.memory.4.5.3.nupkg.sha512", - "system.memory.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Numerics.Vectors/4.4.0": { - "sha512": "UiLzLW+Lw6HLed1Hcg+8jSRttrbuXv7DANVj0DkL9g6EnnzbL75EB7EWsw5uRbhxd/4YdG8li5XizGWepmG3PQ==", - "type": "package", - "path": "system.numerics.vectors/4.4.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.Numerics.Vectors.dll", - "lib/net46/System.Numerics.Vectors.xml", - "lib/netcoreapp2.0/_._", - "lib/netstandard1.0/System.Numerics.Vectors.dll", - "lib/netstandard1.0/System.Numerics.Vectors.xml", - "lib/netstandard2.0/System.Numerics.Vectors.dll", - "lib/netstandard2.0/System.Numerics.Vectors.xml", - "lib/portable-net45+win8+wp8+wpa81/System.Numerics.Vectors.dll", - "lib/portable-net45+win8+wp8+wpa81/System.Numerics.Vectors.xml", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net46/System.Numerics.Vectors.dll", - "ref/net46/System.Numerics.Vectors.xml", - "ref/netcoreapp2.0/_._", - "ref/netstandard1.0/System.Numerics.Vectors.dll", - "ref/netstandard1.0/System.Numerics.Vectors.xml", - "ref/netstandard2.0/System.Numerics.Vectors.dll", - "ref/netstandard2.0/System.Numerics.Vectors.xml", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.numerics.vectors.4.4.0.nupkg.sha512", - "system.numerics.vectors.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.ObjectModel/4.3.0": { - "sha512": "bdX+80eKv9bN6K4N+d77OankKHGn6CH711a6fcOpMQu2Fckp/Ft4L/kW9WznHpyR0NRAvJutzOMHNNlBGvxQzQ==", - "type": "package", - "path": "system.objectmodel/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/netcore50/System.ObjectModel.dll", - "lib/netstandard1.3/System.ObjectModel.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.ObjectModel.dll", - "ref/netcore50/System.ObjectModel.xml", - "ref/netcore50/de/System.ObjectModel.xml", - "ref/netcore50/es/System.ObjectModel.xml", - "ref/netcore50/fr/System.ObjectModel.xml", - "ref/netcore50/it/System.ObjectModel.xml", - "ref/netcore50/ja/System.ObjectModel.xml", - "ref/netcore50/ko/System.ObjectModel.xml", - "ref/netcore50/ru/System.ObjectModel.xml", - "ref/netcore50/zh-hans/System.ObjectModel.xml", - "ref/netcore50/zh-hant/System.ObjectModel.xml", - "ref/netstandard1.0/System.ObjectModel.dll", - "ref/netstandard1.0/System.ObjectModel.xml", - "ref/netstandard1.0/de/System.ObjectModel.xml", - "ref/netstandard1.0/es/System.ObjectModel.xml", - "ref/netstandard1.0/fr/System.ObjectModel.xml", - "ref/netstandard1.0/it/System.ObjectModel.xml", - "ref/netstandard1.0/ja/System.ObjectModel.xml", - "ref/netstandard1.0/ko/System.ObjectModel.xml", - "ref/netstandard1.0/ru/System.ObjectModel.xml", - "ref/netstandard1.0/zh-hans/System.ObjectModel.xml", - "ref/netstandard1.0/zh-hant/System.ObjectModel.xml", - "ref/netstandard1.3/System.ObjectModel.dll", - "ref/netstandard1.3/System.ObjectModel.xml", - "ref/netstandard1.3/de/System.ObjectModel.xml", - "ref/netstandard1.3/es/System.ObjectModel.xml", - "ref/netstandard1.3/fr/System.ObjectModel.xml", - "ref/netstandard1.3/it/System.ObjectModel.xml", - "ref/netstandard1.3/ja/System.ObjectModel.xml", - "ref/netstandard1.3/ko/System.ObjectModel.xml", - "ref/netstandard1.3/ru/System.ObjectModel.xml", - "ref/netstandard1.3/zh-hans/System.ObjectModel.xml", - "ref/netstandard1.3/zh-hant/System.ObjectModel.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.objectmodel.4.3.0.nupkg.sha512", - "system.objectmodel.nuspec" - ] - }, - "System.Reflection/4.3.0": { - "sha512": "KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==", - "type": "package", - "path": "system.reflection/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net462/System.Reflection.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net462/System.Reflection.dll", - "ref/netcore50/System.Reflection.dll", - "ref/netcore50/System.Reflection.xml", - "ref/netcore50/de/System.Reflection.xml", - "ref/netcore50/es/System.Reflection.xml", - "ref/netcore50/fr/System.Reflection.xml", - "ref/netcore50/it/System.Reflection.xml", - "ref/netcore50/ja/System.Reflection.xml", - "ref/netcore50/ko/System.Reflection.xml", - "ref/netcore50/ru/System.Reflection.xml", - "ref/netcore50/zh-hans/System.Reflection.xml", - "ref/netcore50/zh-hant/System.Reflection.xml", - "ref/netstandard1.0/System.Reflection.dll", - "ref/netstandard1.0/System.Reflection.xml", - "ref/netstandard1.0/de/System.Reflection.xml", - "ref/netstandard1.0/es/System.Reflection.xml", - "ref/netstandard1.0/fr/System.Reflection.xml", - "ref/netstandard1.0/it/System.Reflection.xml", - "ref/netstandard1.0/ja/System.Reflection.xml", - "ref/netstandard1.0/ko/System.Reflection.xml", - "ref/netstandard1.0/ru/System.Reflection.xml", - "ref/netstandard1.0/zh-hans/System.Reflection.xml", - "ref/netstandard1.0/zh-hant/System.Reflection.xml", - "ref/netstandard1.3/System.Reflection.dll", - "ref/netstandard1.3/System.Reflection.xml", - "ref/netstandard1.3/de/System.Reflection.xml", - "ref/netstandard1.3/es/System.Reflection.xml", - "ref/netstandard1.3/fr/System.Reflection.xml", - "ref/netstandard1.3/it/System.Reflection.xml", - "ref/netstandard1.3/ja/System.Reflection.xml", - "ref/netstandard1.3/ko/System.Reflection.xml", - "ref/netstandard1.3/ru/System.Reflection.xml", - "ref/netstandard1.3/zh-hans/System.Reflection.xml", - "ref/netstandard1.3/zh-hant/System.Reflection.xml", - "ref/netstandard1.5/System.Reflection.dll", - "ref/netstandard1.5/System.Reflection.xml", - "ref/netstandard1.5/de/System.Reflection.xml", - "ref/netstandard1.5/es/System.Reflection.xml", - "ref/netstandard1.5/fr/System.Reflection.xml", - "ref/netstandard1.5/it/System.Reflection.xml", - "ref/netstandard1.5/ja/System.Reflection.xml", - "ref/netstandard1.5/ko/System.Reflection.xml", - "ref/netstandard1.5/ru/System.Reflection.xml", - "ref/netstandard1.5/zh-hans/System.Reflection.xml", - "ref/netstandard1.5/zh-hant/System.Reflection.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.reflection.4.3.0.nupkg.sha512", - "system.reflection.nuspec" - ] - }, - "System.Reflection.Emit/4.6.0": { - "sha512": "qAo4jyXtC9i71iElngX7P2r+zLaiHzxKwf66sc3X91tL5Ks6fnQ1vxL04o7ZSm3sYfLExySL7GN8aTpNYpU1qw==", - "type": "package", - "path": "system.reflection.emit/4.6.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/monoandroid10/_._", - "lib/net45/_._", - "lib/netcore50/System.Reflection.Emit.dll", - "lib/netcoreapp2.0/_._", - "lib/netstandard1.1/System.Reflection.Emit.dll", - "lib/netstandard1.1/System.Reflection.Emit.xml", - "lib/netstandard1.3/System.Reflection.Emit.dll", - "lib/netstandard2.0/System.Reflection.Emit.dll", - "lib/netstandard2.0/System.Reflection.Emit.xml", - "lib/netstandard2.1/_._", - "lib/xamarinmac20/_._", - "ref/monoandroid10/_._", - "ref/net45/_._", - "ref/netcoreapp2.0/_._", - "ref/netstandard1.1/System.Reflection.Emit.dll", - "ref/netstandard1.1/System.Reflection.Emit.xml", - "ref/netstandard1.1/de/System.Reflection.Emit.xml", - "ref/netstandard1.1/es/System.Reflection.Emit.xml", - "ref/netstandard1.1/fr/System.Reflection.Emit.xml", - "ref/netstandard1.1/it/System.Reflection.Emit.xml", - "ref/netstandard1.1/ja/System.Reflection.Emit.xml", - "ref/netstandard1.1/ko/System.Reflection.Emit.xml", - "ref/netstandard1.1/ru/System.Reflection.Emit.xml", - "ref/netstandard1.1/zh-hans/System.Reflection.Emit.xml", - "ref/netstandard1.1/zh-hant/System.Reflection.Emit.xml", - "ref/netstandard2.0/System.Reflection.Emit.dll", - "ref/netstandard2.0/System.Reflection.Emit.xml", - "ref/netstandard2.1/_._", - "ref/xamarinmac20/_._", - "runtimes/aot/lib/netcore50/System.Reflection.Emit.dll", - "runtimes/aot/lib/netcore50/System.Reflection.Emit.xml", - "system.reflection.emit.4.6.0.nupkg.sha512", - "system.reflection.emit.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Reflection.Emit.ILGeneration/4.6.0": { - "sha512": "z3r/uEhMj+1wUNUa/EA2bWxEL9M8bgFt/22xCOQivES28ex3zWxE+2j0gQF/mdRwzlr0jir64HVlwV5J4zTOfw==", - "type": "package", - "path": "system.reflection.emit.ilgeneration/4.6.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/netcore50/System.Reflection.Emit.ILGeneration.dll", - "lib/netcoreapp2.0/_._", - "lib/netstandard1.0/System.Reflection.Emit.ILGeneration.dll", - "lib/netstandard1.0/System.Reflection.Emit.ILGeneration.xml", - "lib/netstandard1.3/System.Reflection.Emit.ILGeneration.dll", - "lib/netstandard2.0/System.Reflection.Emit.ILGeneration.dll", - "lib/netstandard2.0/System.Reflection.Emit.ILGeneration.xml", - "lib/netstandard2.1/_._", - "lib/portable-net45+wp8/_._", - "lib/wp80/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcoreapp2.0/_._", - "ref/netstandard1.0/System.Reflection.Emit.ILGeneration.dll", - "ref/netstandard1.0/System.Reflection.Emit.ILGeneration.xml", - "ref/netstandard1.0/de/System.Reflection.Emit.ILGeneration.xml", - "ref/netstandard1.0/es/System.Reflection.Emit.ILGeneration.xml", - "ref/netstandard1.0/fr/System.Reflection.Emit.ILGeneration.xml", - "ref/netstandard1.0/it/System.Reflection.Emit.ILGeneration.xml", - "ref/netstandard1.0/ja/System.Reflection.Emit.ILGeneration.xml", - "ref/netstandard1.0/ko/System.Reflection.Emit.ILGeneration.xml", - "ref/netstandard1.0/ru/System.Reflection.Emit.ILGeneration.xml", - "ref/netstandard1.0/zh-hans/System.Reflection.Emit.ILGeneration.xml", - "ref/netstandard1.0/zh-hant/System.Reflection.Emit.ILGeneration.xml", - "ref/netstandard2.0/System.Reflection.Emit.ILGeneration.dll", - "ref/netstandard2.0/System.Reflection.Emit.ILGeneration.xml", - "ref/netstandard2.1/_._", - "ref/portable-net45+wp8/_._", - "ref/wp80/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "runtimes/aot/lib/netcore50/System.Reflection.Emit.ILGeneration.dll", - "runtimes/aot/lib/netcore50/System.Reflection.Emit.ILGeneration.xml", - "system.reflection.emit.ilgeneration.4.6.0.nupkg.sha512", - "system.reflection.emit.ilgeneration.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Reflection.Emit.Lightweight/4.6.0": { - "sha512": "j/V5HVvxvBQ7uubYD0PptQW2KGsi1Pc2kZ9yfwLixv3ADdjL/4M78KyC5e+ymW612DY8ZE4PFoZmWpoNmN2mqg==", - "type": "package", - "path": "system.reflection.emit.lightweight/4.6.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/netcore50/System.Reflection.Emit.Lightweight.dll", - "lib/netcoreapp2.0/_._", - "lib/netstandard1.0/System.Reflection.Emit.Lightweight.dll", - "lib/netstandard1.0/System.Reflection.Emit.Lightweight.xml", - "lib/netstandard1.3/System.Reflection.Emit.Lightweight.dll", - "lib/netstandard2.0/System.Reflection.Emit.Lightweight.dll", - "lib/netstandard2.0/System.Reflection.Emit.Lightweight.xml", - "lib/netstandard2.1/_._", - "lib/portable-net45+wp8/_._", - "lib/wp80/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcoreapp2.0/_._", - "ref/netstandard1.0/System.Reflection.Emit.Lightweight.dll", - "ref/netstandard1.0/System.Reflection.Emit.Lightweight.xml", - "ref/netstandard1.0/de/System.Reflection.Emit.Lightweight.xml", - "ref/netstandard1.0/es/System.Reflection.Emit.Lightweight.xml", - "ref/netstandard1.0/fr/System.Reflection.Emit.Lightweight.xml", - "ref/netstandard1.0/it/System.Reflection.Emit.Lightweight.xml", - "ref/netstandard1.0/ja/System.Reflection.Emit.Lightweight.xml", - "ref/netstandard1.0/ko/System.Reflection.Emit.Lightweight.xml", - "ref/netstandard1.0/ru/System.Reflection.Emit.Lightweight.xml", - "ref/netstandard1.0/zh-hans/System.Reflection.Emit.Lightweight.xml", - "ref/netstandard1.0/zh-hant/System.Reflection.Emit.Lightweight.xml", - "ref/netstandard2.0/System.Reflection.Emit.Lightweight.dll", - "ref/netstandard2.0/System.Reflection.Emit.Lightweight.xml", - "ref/netstandard2.1/_._", - "ref/portable-net45+wp8/_._", - "ref/wp80/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "runtimes/aot/lib/netcore50/System.Reflection.Emit.Lightweight.dll", - "runtimes/aot/lib/netcore50/System.Reflection.Emit.Lightweight.xml", - "system.reflection.emit.lightweight.4.6.0.nupkg.sha512", - "system.reflection.emit.lightweight.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Reflection.Extensions/4.3.0": { - "sha512": "rJkrJD3kBI5B712aRu4DpSIiHRtr6QlfZSQsb0hYHrDCZORXCFjQfoipo2LaMUHoT9i1B7j7MnfaEKWDFmFQNQ==", - "type": "package", - "path": "system.reflection.extensions/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.Reflection.Extensions.dll", - "ref/netcore50/System.Reflection.Extensions.xml", - "ref/netcore50/de/System.Reflection.Extensions.xml", - "ref/netcore50/es/System.Reflection.Extensions.xml", - "ref/netcore50/fr/System.Reflection.Extensions.xml", - "ref/netcore50/it/System.Reflection.Extensions.xml", - "ref/netcore50/ja/System.Reflection.Extensions.xml", - "ref/netcore50/ko/System.Reflection.Extensions.xml", - "ref/netcore50/ru/System.Reflection.Extensions.xml", - "ref/netcore50/zh-hans/System.Reflection.Extensions.xml", - "ref/netcore50/zh-hant/System.Reflection.Extensions.xml", - "ref/netstandard1.0/System.Reflection.Extensions.dll", - "ref/netstandard1.0/System.Reflection.Extensions.xml", - "ref/netstandard1.0/de/System.Reflection.Extensions.xml", - "ref/netstandard1.0/es/System.Reflection.Extensions.xml", - "ref/netstandard1.0/fr/System.Reflection.Extensions.xml", - "ref/netstandard1.0/it/System.Reflection.Extensions.xml", - "ref/netstandard1.0/ja/System.Reflection.Extensions.xml", - "ref/netstandard1.0/ko/System.Reflection.Extensions.xml", - "ref/netstandard1.0/ru/System.Reflection.Extensions.xml", - "ref/netstandard1.0/zh-hans/System.Reflection.Extensions.xml", - "ref/netstandard1.0/zh-hant/System.Reflection.Extensions.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.reflection.extensions.4.3.0.nupkg.sha512", - "system.reflection.extensions.nuspec" - ] - }, - "System.Reflection.Primitives/4.3.0": { - "sha512": "5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==", - "type": "package", - "path": "system.reflection.primitives/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.Reflection.Primitives.dll", - "ref/netcore50/System.Reflection.Primitives.xml", - "ref/netcore50/de/System.Reflection.Primitives.xml", - "ref/netcore50/es/System.Reflection.Primitives.xml", - "ref/netcore50/fr/System.Reflection.Primitives.xml", - "ref/netcore50/it/System.Reflection.Primitives.xml", - "ref/netcore50/ja/System.Reflection.Primitives.xml", - "ref/netcore50/ko/System.Reflection.Primitives.xml", - "ref/netcore50/ru/System.Reflection.Primitives.xml", - "ref/netcore50/zh-hans/System.Reflection.Primitives.xml", - "ref/netcore50/zh-hant/System.Reflection.Primitives.xml", - "ref/netstandard1.0/System.Reflection.Primitives.dll", - "ref/netstandard1.0/System.Reflection.Primitives.xml", - "ref/netstandard1.0/de/System.Reflection.Primitives.xml", - "ref/netstandard1.0/es/System.Reflection.Primitives.xml", - "ref/netstandard1.0/fr/System.Reflection.Primitives.xml", - "ref/netstandard1.0/it/System.Reflection.Primitives.xml", - "ref/netstandard1.0/ja/System.Reflection.Primitives.xml", - "ref/netstandard1.0/ko/System.Reflection.Primitives.xml", - "ref/netstandard1.0/ru/System.Reflection.Primitives.xml", - "ref/netstandard1.0/zh-hans/System.Reflection.Primitives.xml", - "ref/netstandard1.0/zh-hant/System.Reflection.Primitives.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.reflection.primitives.4.3.0.nupkg.sha512", - "system.reflection.primitives.nuspec" - ] - }, - "System.Reflection.TypeExtensions/4.3.0": { - "sha512": "7u6ulLcZbyxB5Gq0nMkQttcdBTx57ibzw+4IOXEfR+sXYQoHvjW5LTLyNr8O22UIMrqYbchJQJnos4eooYzYJA==", - "type": "package", - "path": "system.reflection.typeextensions/4.3.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.Reflection.TypeExtensions.dll", - "lib/net462/System.Reflection.TypeExtensions.dll", - "lib/netcore50/System.Reflection.TypeExtensions.dll", - "lib/netstandard1.5/System.Reflection.TypeExtensions.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net46/System.Reflection.TypeExtensions.dll", - "ref/net462/System.Reflection.TypeExtensions.dll", - "ref/netstandard1.3/System.Reflection.TypeExtensions.dll", - "ref/netstandard1.3/System.Reflection.TypeExtensions.xml", - "ref/netstandard1.3/de/System.Reflection.TypeExtensions.xml", - "ref/netstandard1.3/es/System.Reflection.TypeExtensions.xml", - "ref/netstandard1.3/fr/System.Reflection.TypeExtensions.xml", - "ref/netstandard1.3/it/System.Reflection.TypeExtensions.xml", - "ref/netstandard1.3/ja/System.Reflection.TypeExtensions.xml", - "ref/netstandard1.3/ko/System.Reflection.TypeExtensions.xml", - "ref/netstandard1.3/ru/System.Reflection.TypeExtensions.xml", - "ref/netstandard1.3/zh-hans/System.Reflection.TypeExtensions.xml", - "ref/netstandard1.3/zh-hant/System.Reflection.TypeExtensions.xml", - "ref/netstandard1.5/System.Reflection.TypeExtensions.dll", - "ref/netstandard1.5/System.Reflection.TypeExtensions.xml", - "ref/netstandard1.5/de/System.Reflection.TypeExtensions.xml", - "ref/netstandard1.5/es/System.Reflection.TypeExtensions.xml", - "ref/netstandard1.5/fr/System.Reflection.TypeExtensions.xml", - "ref/netstandard1.5/it/System.Reflection.TypeExtensions.xml", - "ref/netstandard1.5/ja/System.Reflection.TypeExtensions.xml", - "ref/netstandard1.5/ko/System.Reflection.TypeExtensions.xml", - "ref/netstandard1.5/ru/System.Reflection.TypeExtensions.xml", - "ref/netstandard1.5/zh-hans/System.Reflection.TypeExtensions.xml", - "ref/netstandard1.5/zh-hant/System.Reflection.TypeExtensions.xml", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "runtimes/aot/lib/netcore50/System.Reflection.TypeExtensions.dll", - "system.reflection.typeextensions.4.3.0.nupkg.sha512", - "system.reflection.typeextensions.nuspec" - ] - }, - "System.Resources.ResourceManager/4.3.0": { - "sha512": "/zrcPkkWdZmI4F92gL/TPumP98AVDu/Wxr3CSJGQQ+XN6wbRZcyfSKVoPo17ilb3iOr0cCRqJInGwNMolqhS8A==", - "type": "package", - "path": "system.resources.resourcemanager/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.Resources.ResourceManager.dll", - "ref/netcore50/System.Resources.ResourceManager.xml", - "ref/netcore50/de/System.Resources.ResourceManager.xml", - "ref/netcore50/es/System.Resources.ResourceManager.xml", - "ref/netcore50/fr/System.Resources.ResourceManager.xml", - "ref/netcore50/it/System.Resources.ResourceManager.xml", - "ref/netcore50/ja/System.Resources.ResourceManager.xml", - "ref/netcore50/ko/System.Resources.ResourceManager.xml", - "ref/netcore50/ru/System.Resources.ResourceManager.xml", - "ref/netcore50/zh-hans/System.Resources.ResourceManager.xml", - "ref/netcore50/zh-hant/System.Resources.ResourceManager.xml", - "ref/netstandard1.0/System.Resources.ResourceManager.dll", - "ref/netstandard1.0/System.Resources.ResourceManager.xml", - "ref/netstandard1.0/de/System.Resources.ResourceManager.xml", - "ref/netstandard1.0/es/System.Resources.ResourceManager.xml", - "ref/netstandard1.0/fr/System.Resources.ResourceManager.xml", - "ref/netstandard1.0/it/System.Resources.ResourceManager.xml", - "ref/netstandard1.0/ja/System.Resources.ResourceManager.xml", - "ref/netstandard1.0/ko/System.Resources.ResourceManager.xml", - "ref/netstandard1.0/ru/System.Resources.ResourceManager.xml", - "ref/netstandard1.0/zh-hans/System.Resources.ResourceManager.xml", - "ref/netstandard1.0/zh-hant/System.Resources.ResourceManager.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.resources.resourcemanager.4.3.0.nupkg.sha512", - "system.resources.resourcemanager.nuspec" - ] - }, - "System.Runtime/4.3.0": { - "sha512": "JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==", - "type": "package", - "path": "system.runtime/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net462/System.Runtime.dll", - "lib/portable-net45+win8+wp80+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net462/System.Runtime.dll", - "ref/netcore50/System.Runtime.dll", - "ref/netcore50/System.Runtime.xml", - "ref/netcore50/de/System.Runtime.xml", - "ref/netcore50/es/System.Runtime.xml", - "ref/netcore50/fr/System.Runtime.xml", - "ref/netcore50/it/System.Runtime.xml", - "ref/netcore50/ja/System.Runtime.xml", - "ref/netcore50/ko/System.Runtime.xml", - "ref/netcore50/ru/System.Runtime.xml", - "ref/netcore50/zh-hans/System.Runtime.xml", - "ref/netcore50/zh-hant/System.Runtime.xml", - "ref/netstandard1.0/System.Runtime.dll", - "ref/netstandard1.0/System.Runtime.xml", - "ref/netstandard1.0/de/System.Runtime.xml", - "ref/netstandard1.0/es/System.Runtime.xml", - "ref/netstandard1.0/fr/System.Runtime.xml", - "ref/netstandard1.0/it/System.Runtime.xml", - "ref/netstandard1.0/ja/System.Runtime.xml", - "ref/netstandard1.0/ko/System.Runtime.xml", - "ref/netstandard1.0/ru/System.Runtime.xml", - "ref/netstandard1.0/zh-hans/System.Runtime.xml", - "ref/netstandard1.0/zh-hant/System.Runtime.xml", - "ref/netstandard1.2/System.Runtime.dll", - "ref/netstandard1.2/System.Runtime.xml", - "ref/netstandard1.2/de/System.Runtime.xml", - "ref/netstandard1.2/es/System.Runtime.xml", - "ref/netstandard1.2/fr/System.Runtime.xml", - "ref/netstandard1.2/it/System.Runtime.xml", - "ref/netstandard1.2/ja/System.Runtime.xml", - "ref/netstandard1.2/ko/System.Runtime.xml", - "ref/netstandard1.2/ru/System.Runtime.xml", - "ref/netstandard1.2/zh-hans/System.Runtime.xml", - "ref/netstandard1.2/zh-hant/System.Runtime.xml", - "ref/netstandard1.3/System.Runtime.dll", - "ref/netstandard1.3/System.Runtime.xml", - "ref/netstandard1.3/de/System.Runtime.xml", - "ref/netstandard1.3/es/System.Runtime.xml", - "ref/netstandard1.3/fr/System.Runtime.xml", - "ref/netstandard1.3/it/System.Runtime.xml", - "ref/netstandard1.3/ja/System.Runtime.xml", - "ref/netstandard1.3/ko/System.Runtime.xml", - "ref/netstandard1.3/ru/System.Runtime.xml", - "ref/netstandard1.3/zh-hans/System.Runtime.xml", - "ref/netstandard1.3/zh-hant/System.Runtime.xml", - "ref/netstandard1.5/System.Runtime.dll", - "ref/netstandard1.5/System.Runtime.xml", - "ref/netstandard1.5/de/System.Runtime.xml", - "ref/netstandard1.5/es/System.Runtime.xml", - "ref/netstandard1.5/fr/System.Runtime.xml", - "ref/netstandard1.5/it/System.Runtime.xml", - "ref/netstandard1.5/ja/System.Runtime.xml", - "ref/netstandard1.5/ko/System.Runtime.xml", - "ref/netstandard1.5/ru/System.Runtime.xml", - "ref/netstandard1.5/zh-hans/System.Runtime.xml", - "ref/netstandard1.5/zh-hant/System.Runtime.xml", - "ref/portable-net45+win8+wp80+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.runtime.4.3.0.nupkg.sha512", - "system.runtime.nuspec" - ] - }, - "System.Runtime.CompilerServices.Unsafe/5.0.0-preview.1.20120.5": { - "sha512": "vAVVRGUm4plmUFqwuXZ9OzfmYU6CEOlD7W4PlOs1wPyWj3JDi00rb9KK9cS/jwsoSmZEzzE6PG74JyYa88w4kg==", - "type": "package", - "path": "system.runtime.compilerservices.unsafe/5.0.0-preview.1.20120.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/net45/System.Runtime.CompilerServices.Unsafe.dll", - "lib/net45/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netstandard1.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netstandard1.0/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml", - "ref/netstandard1.0/System.Runtime.CompilerServices.Unsafe.dll", - "ref/netstandard1.0/System.Runtime.CompilerServices.Unsafe.xml", - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml", - "ref/netstandard2.1/System.Runtime.CompilerServices.Unsafe.dll", - "ref/netstandard2.1/System.Runtime.CompilerServices.Unsafe.xml", - "system.runtime.compilerservices.unsafe.5.0.0-preview.1.20120.5.nupkg.sha512", - "system.runtime.compilerservices.unsafe.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Runtime.Extensions/4.3.0": { - "sha512": "guW0uK0fn5fcJJ1tJVXYd7/1h5F+pea1r7FLSOz/f8vPEqbR2ZAknuRDvTQ8PzAilDveOxNjSfr0CHfIQfFk8g==", - "type": "package", - "path": "system.runtime.extensions/4.3.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net462/System.Runtime.Extensions.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net462/System.Runtime.Extensions.dll", - "ref/netcore50/System.Runtime.Extensions.dll", - "ref/netcore50/System.Runtime.Extensions.xml", - "ref/netcore50/de/System.Runtime.Extensions.xml", - "ref/netcore50/es/System.Runtime.Extensions.xml", - "ref/netcore50/fr/System.Runtime.Extensions.xml", - "ref/netcore50/it/System.Runtime.Extensions.xml", - "ref/netcore50/ja/System.Runtime.Extensions.xml", - "ref/netcore50/ko/System.Runtime.Extensions.xml", - "ref/netcore50/ru/System.Runtime.Extensions.xml", - "ref/netcore50/zh-hans/System.Runtime.Extensions.xml", - "ref/netcore50/zh-hant/System.Runtime.Extensions.xml", - "ref/netstandard1.0/System.Runtime.Extensions.dll", - "ref/netstandard1.0/System.Runtime.Extensions.xml", - "ref/netstandard1.0/de/System.Runtime.Extensions.xml", - "ref/netstandard1.0/es/System.Runtime.Extensions.xml", - "ref/netstandard1.0/fr/System.Runtime.Extensions.xml", - "ref/netstandard1.0/it/System.Runtime.Extensions.xml", - "ref/netstandard1.0/ja/System.Runtime.Extensions.xml", - "ref/netstandard1.0/ko/System.Runtime.Extensions.xml", - "ref/netstandard1.0/ru/System.Runtime.Extensions.xml", - "ref/netstandard1.0/zh-hans/System.Runtime.Extensions.xml", - "ref/netstandard1.0/zh-hant/System.Runtime.Extensions.xml", - "ref/netstandard1.3/System.Runtime.Extensions.dll", - "ref/netstandard1.3/System.Runtime.Extensions.xml", - "ref/netstandard1.3/de/System.Runtime.Extensions.xml", - "ref/netstandard1.3/es/System.Runtime.Extensions.xml", - "ref/netstandard1.3/fr/System.Runtime.Extensions.xml", - "ref/netstandard1.3/it/System.Runtime.Extensions.xml", - "ref/netstandard1.3/ja/System.Runtime.Extensions.xml", - "ref/netstandard1.3/ko/System.Runtime.Extensions.xml", - "ref/netstandard1.3/ru/System.Runtime.Extensions.xml", - "ref/netstandard1.3/zh-hans/System.Runtime.Extensions.xml", - "ref/netstandard1.3/zh-hant/System.Runtime.Extensions.xml", - "ref/netstandard1.5/System.Runtime.Extensions.dll", - "ref/netstandard1.5/System.Runtime.Extensions.xml", - "ref/netstandard1.5/de/System.Runtime.Extensions.xml", - "ref/netstandard1.5/es/System.Runtime.Extensions.xml", - "ref/netstandard1.5/fr/System.Runtime.Extensions.xml", - "ref/netstandard1.5/it/System.Runtime.Extensions.xml", - "ref/netstandard1.5/ja/System.Runtime.Extensions.xml", - "ref/netstandard1.5/ko/System.Runtime.Extensions.xml", - "ref/netstandard1.5/ru/System.Runtime.Extensions.xml", - "ref/netstandard1.5/zh-hans/System.Runtime.Extensions.xml", - "ref/netstandard1.5/zh-hant/System.Runtime.Extensions.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.runtime.extensions.4.3.0.nupkg.sha512", - "system.runtime.extensions.nuspec" - ] - }, - "System.Runtime.Handles/4.3.0": { - "sha512": "OKiSUN7DmTWeYb3l51A7EYaeNMnvxwE249YtZz7yooT4gOZhmTjIn48KgSsw2k2lYdLgTKNJw/ZIfSElwDRVgg==", - "type": "package", - "path": "system.runtime.handles/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net46/_._", - "ref/netstandard1.3/System.Runtime.Handles.dll", - "ref/netstandard1.3/System.Runtime.Handles.xml", - "ref/netstandard1.3/de/System.Runtime.Handles.xml", - "ref/netstandard1.3/es/System.Runtime.Handles.xml", - "ref/netstandard1.3/fr/System.Runtime.Handles.xml", - "ref/netstandard1.3/it/System.Runtime.Handles.xml", - "ref/netstandard1.3/ja/System.Runtime.Handles.xml", - "ref/netstandard1.3/ko/System.Runtime.Handles.xml", - "ref/netstandard1.3/ru/System.Runtime.Handles.xml", - "ref/netstandard1.3/zh-hans/System.Runtime.Handles.xml", - "ref/netstandard1.3/zh-hant/System.Runtime.Handles.xml", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.runtime.handles.4.3.0.nupkg.sha512", - "system.runtime.handles.nuspec" - ] - }, - "System.Runtime.InteropServices/4.3.0": { - "sha512": "uv1ynXqiMK8mp1GM3jDqPCFN66eJ5w5XNomaK2XD+TuCroNTLFGeZ+WCmBMcBDyTFKou3P6cR6J/QsaqDp7fGQ==", - "type": "package", - "path": "system.runtime.interopservices/4.3.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net462/System.Runtime.InteropServices.dll", - "lib/net463/System.Runtime.InteropServices.dll", - "lib/portable-net45+win8+wpa81/_._", - "lib/win8/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net462/System.Runtime.InteropServices.dll", - "ref/net463/System.Runtime.InteropServices.dll", - "ref/netcore50/System.Runtime.InteropServices.dll", - "ref/netcore50/System.Runtime.InteropServices.xml", - "ref/netcore50/de/System.Runtime.InteropServices.xml", - "ref/netcore50/es/System.Runtime.InteropServices.xml", - "ref/netcore50/fr/System.Runtime.InteropServices.xml", - "ref/netcore50/it/System.Runtime.InteropServices.xml", - "ref/netcore50/ja/System.Runtime.InteropServices.xml", - "ref/netcore50/ko/System.Runtime.InteropServices.xml", - "ref/netcore50/ru/System.Runtime.InteropServices.xml", - "ref/netcore50/zh-hans/System.Runtime.InteropServices.xml", - "ref/netcore50/zh-hant/System.Runtime.InteropServices.xml", - "ref/netcoreapp1.1/System.Runtime.InteropServices.dll", - "ref/netstandard1.1/System.Runtime.InteropServices.dll", - "ref/netstandard1.1/System.Runtime.InteropServices.xml", - "ref/netstandard1.1/de/System.Runtime.InteropServices.xml", - "ref/netstandard1.1/es/System.Runtime.InteropServices.xml", - "ref/netstandard1.1/fr/System.Runtime.InteropServices.xml", - "ref/netstandard1.1/it/System.Runtime.InteropServices.xml", - "ref/netstandard1.1/ja/System.Runtime.InteropServices.xml", - "ref/netstandard1.1/ko/System.Runtime.InteropServices.xml", - "ref/netstandard1.1/ru/System.Runtime.InteropServices.xml", - "ref/netstandard1.1/zh-hans/System.Runtime.InteropServices.xml", - "ref/netstandard1.1/zh-hant/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/System.Runtime.InteropServices.dll", - "ref/netstandard1.2/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/de/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/es/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/fr/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/it/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/ja/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/ko/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/ru/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/zh-hans/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/zh-hant/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/System.Runtime.InteropServices.dll", - "ref/netstandard1.3/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/de/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/es/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/fr/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/it/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/ja/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/ko/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/ru/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/zh-hans/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/zh-hant/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/System.Runtime.InteropServices.dll", - "ref/netstandard1.5/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/de/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/es/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/fr/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/it/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/ja/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/ko/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/ru/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/zh-hans/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/zh-hant/System.Runtime.InteropServices.xml", - "ref/portable-net45+win8+wpa81/_._", - "ref/win8/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.runtime.interopservices.4.3.0.nupkg.sha512", - "system.runtime.interopservices.nuspec" - ] - }, - "System.Runtime.Serialization.Formatters/4.3.0": { - "sha512": "KT591AkTNFOTbhZlaeMVvfax3RqhH1EJlcwF50Wm7sfnBLuHiOeZRRKrr1ns3NESkM20KPZ5Ol/ueMq5vg4QoQ==", - "type": "package", - "path": "system.runtime.serialization.formatters/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.Runtime.Serialization.Formatters.dll", - "lib/netstandard1.4/System.Runtime.Serialization.Formatters.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net46/System.Runtime.Serialization.Formatters.dll", - "ref/netstandard1.3/System.Runtime.Serialization.Formatters.dll", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.runtime.serialization.formatters.4.3.0.nupkg.sha512", - "system.runtime.serialization.formatters.nuspec" - ] - }, - "System.Runtime.Serialization.Primitives/4.3.0": { - "sha512": "Wz+0KOukJGAlXjtKr+5Xpuxf8+c8739RI1C+A2BoQZT+wMCCoMDDdO8/4IRHfaVINqL78GO8dW8G2lW/e45Mcw==", - "type": "package", - "path": "system.runtime.serialization.primitives/4.3.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net46/System.Runtime.Serialization.Primitives.dll", - "lib/netcore50/System.Runtime.Serialization.Primitives.dll", - "lib/netstandard1.3/System.Runtime.Serialization.Primitives.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net46/System.Runtime.Serialization.Primitives.dll", - "ref/netcore50/System.Runtime.Serialization.Primitives.dll", - "ref/netcore50/System.Runtime.Serialization.Primitives.xml", - "ref/netcore50/de/System.Runtime.Serialization.Primitives.xml", - "ref/netcore50/es/System.Runtime.Serialization.Primitives.xml", - "ref/netcore50/fr/System.Runtime.Serialization.Primitives.xml", - "ref/netcore50/it/System.Runtime.Serialization.Primitives.xml", - "ref/netcore50/ja/System.Runtime.Serialization.Primitives.xml", - "ref/netcore50/ko/System.Runtime.Serialization.Primitives.xml", - "ref/netcore50/ru/System.Runtime.Serialization.Primitives.xml", - "ref/netcore50/zh-hans/System.Runtime.Serialization.Primitives.xml", - "ref/netcore50/zh-hant/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.0/System.Runtime.Serialization.Primitives.dll", - "ref/netstandard1.0/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.0/de/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.0/es/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.0/fr/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.0/it/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.0/ja/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.0/ko/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.0/ru/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.0/zh-hans/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.0/zh-hant/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.3/System.Runtime.Serialization.Primitives.dll", - "ref/netstandard1.3/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.3/de/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.3/es/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.3/fr/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.3/it/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.3/ja/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.3/ko/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.3/ru/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.3/zh-hans/System.Runtime.Serialization.Primitives.xml", - "ref/netstandard1.3/zh-hant/System.Runtime.Serialization.Primitives.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "runtimes/aot/lib/netcore50/System.Runtime.Serialization.Primitives.dll", - "system.runtime.serialization.primitives.4.3.0.nupkg.sha512", - "system.runtime.serialization.primitives.nuspec" - ] - }, - "System.Text.Encoding/4.3.0": { - "sha512": "BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==", - "type": "package", - "path": "system.text.encoding/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.Text.Encoding.dll", - "ref/netcore50/System.Text.Encoding.xml", - "ref/netcore50/de/System.Text.Encoding.xml", - "ref/netcore50/es/System.Text.Encoding.xml", - "ref/netcore50/fr/System.Text.Encoding.xml", - "ref/netcore50/it/System.Text.Encoding.xml", - "ref/netcore50/ja/System.Text.Encoding.xml", - "ref/netcore50/ko/System.Text.Encoding.xml", - "ref/netcore50/ru/System.Text.Encoding.xml", - "ref/netcore50/zh-hans/System.Text.Encoding.xml", - "ref/netcore50/zh-hant/System.Text.Encoding.xml", - "ref/netstandard1.0/System.Text.Encoding.dll", - "ref/netstandard1.0/System.Text.Encoding.xml", - "ref/netstandard1.0/de/System.Text.Encoding.xml", - "ref/netstandard1.0/es/System.Text.Encoding.xml", - "ref/netstandard1.0/fr/System.Text.Encoding.xml", - "ref/netstandard1.0/it/System.Text.Encoding.xml", - "ref/netstandard1.0/ja/System.Text.Encoding.xml", - "ref/netstandard1.0/ko/System.Text.Encoding.xml", - "ref/netstandard1.0/ru/System.Text.Encoding.xml", - "ref/netstandard1.0/zh-hans/System.Text.Encoding.xml", - "ref/netstandard1.0/zh-hant/System.Text.Encoding.xml", - "ref/netstandard1.3/System.Text.Encoding.dll", - "ref/netstandard1.3/System.Text.Encoding.xml", - "ref/netstandard1.3/de/System.Text.Encoding.xml", - "ref/netstandard1.3/es/System.Text.Encoding.xml", - "ref/netstandard1.3/fr/System.Text.Encoding.xml", - "ref/netstandard1.3/it/System.Text.Encoding.xml", - "ref/netstandard1.3/ja/System.Text.Encoding.xml", - "ref/netstandard1.3/ko/System.Text.Encoding.xml", - "ref/netstandard1.3/ru/System.Text.Encoding.xml", - "ref/netstandard1.3/zh-hans/System.Text.Encoding.xml", - "ref/netstandard1.3/zh-hant/System.Text.Encoding.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.text.encoding.4.3.0.nupkg.sha512", - "system.text.encoding.nuspec" - ] - }, - "System.Text.Encoding.Extensions/4.3.0": { - "sha512": "YVMK0Bt/A43RmwizJoZ22ei2nmrhobgeiYwFzC4YAN+nue8RF6djXDMog0UCn+brerQoYVyaS+ghy9P/MUVcmw==", - "type": "package", - "path": "system.text.encoding.extensions/4.3.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.Text.Encoding.Extensions.dll", - "ref/netcore50/System.Text.Encoding.Extensions.xml", - "ref/netcore50/de/System.Text.Encoding.Extensions.xml", - "ref/netcore50/es/System.Text.Encoding.Extensions.xml", - "ref/netcore50/fr/System.Text.Encoding.Extensions.xml", - "ref/netcore50/it/System.Text.Encoding.Extensions.xml", - "ref/netcore50/ja/System.Text.Encoding.Extensions.xml", - "ref/netcore50/ko/System.Text.Encoding.Extensions.xml", - "ref/netcore50/ru/System.Text.Encoding.Extensions.xml", - "ref/netcore50/zh-hans/System.Text.Encoding.Extensions.xml", - "ref/netcore50/zh-hant/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.0/System.Text.Encoding.Extensions.dll", - "ref/netstandard1.0/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.0/de/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.0/es/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.0/fr/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.0/it/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.0/ja/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.0/ko/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.0/ru/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.0/zh-hans/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.0/zh-hant/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.3/System.Text.Encoding.Extensions.dll", - "ref/netstandard1.3/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.3/de/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.3/es/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.3/fr/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.3/it/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.3/ja/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.3/ko/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.3/ru/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.3/zh-hans/System.Text.Encoding.Extensions.xml", - "ref/netstandard1.3/zh-hant/System.Text.Encoding.Extensions.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.text.encoding.extensions.4.3.0.nupkg.sha512", - "system.text.encoding.extensions.nuspec" - ] - }, - "System.Text.RegularExpressions/4.3.0": { - "sha512": "RpT2DA+L660cBt1FssIE9CAGpLFdFPuheB7pLpKpn6ZXNby7jDERe8Ua/Ne2xGiwLVG2JOqziiaVCGDon5sKFA==", - "type": "package", - "path": "system.text.regularexpressions/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net463/System.Text.RegularExpressions.dll", - "lib/netcore50/System.Text.RegularExpressions.dll", - "lib/netstandard1.6/System.Text.RegularExpressions.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net463/System.Text.RegularExpressions.dll", - "ref/netcore50/System.Text.RegularExpressions.dll", - "ref/netcore50/System.Text.RegularExpressions.xml", - "ref/netcore50/de/System.Text.RegularExpressions.xml", - "ref/netcore50/es/System.Text.RegularExpressions.xml", - "ref/netcore50/fr/System.Text.RegularExpressions.xml", - "ref/netcore50/it/System.Text.RegularExpressions.xml", - "ref/netcore50/ja/System.Text.RegularExpressions.xml", - "ref/netcore50/ko/System.Text.RegularExpressions.xml", - "ref/netcore50/ru/System.Text.RegularExpressions.xml", - "ref/netcore50/zh-hans/System.Text.RegularExpressions.xml", - "ref/netcore50/zh-hant/System.Text.RegularExpressions.xml", - "ref/netcoreapp1.1/System.Text.RegularExpressions.dll", - "ref/netstandard1.0/System.Text.RegularExpressions.dll", - "ref/netstandard1.0/System.Text.RegularExpressions.xml", - "ref/netstandard1.0/de/System.Text.RegularExpressions.xml", - "ref/netstandard1.0/es/System.Text.RegularExpressions.xml", - "ref/netstandard1.0/fr/System.Text.RegularExpressions.xml", - "ref/netstandard1.0/it/System.Text.RegularExpressions.xml", - "ref/netstandard1.0/ja/System.Text.RegularExpressions.xml", - "ref/netstandard1.0/ko/System.Text.RegularExpressions.xml", - "ref/netstandard1.0/ru/System.Text.RegularExpressions.xml", - "ref/netstandard1.0/zh-hans/System.Text.RegularExpressions.xml", - "ref/netstandard1.0/zh-hant/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/System.Text.RegularExpressions.dll", - "ref/netstandard1.3/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/de/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/es/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/fr/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/it/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/ja/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/ko/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/ru/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/zh-hans/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/zh-hant/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/System.Text.RegularExpressions.dll", - "ref/netstandard1.6/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/de/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/es/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/fr/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/it/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/ja/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/ko/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/ru/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/zh-hans/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/zh-hant/System.Text.RegularExpressions.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.text.regularexpressions.4.3.0.nupkg.sha512", - "system.text.regularexpressions.nuspec" - ] - }, - "System.Threading/4.3.0": { - "sha512": "VkUS0kOBcUf3Wwm0TSbrevDDZ6BlM+b/HRiapRFWjM5O0NS0LviG0glKmFK+hhPDd1XFeSdU1GmlLhb2CoVpIw==", - "type": "package", - "path": "system.threading/4.3.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/netcore50/System.Threading.dll", - "lib/netstandard1.3/System.Threading.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.Threading.dll", - "ref/netcore50/System.Threading.xml", - "ref/netcore50/de/System.Threading.xml", - "ref/netcore50/es/System.Threading.xml", - "ref/netcore50/fr/System.Threading.xml", - "ref/netcore50/it/System.Threading.xml", - "ref/netcore50/ja/System.Threading.xml", - "ref/netcore50/ko/System.Threading.xml", - "ref/netcore50/ru/System.Threading.xml", - "ref/netcore50/zh-hans/System.Threading.xml", - "ref/netcore50/zh-hant/System.Threading.xml", - "ref/netstandard1.0/System.Threading.dll", - "ref/netstandard1.0/System.Threading.xml", - "ref/netstandard1.0/de/System.Threading.xml", - "ref/netstandard1.0/es/System.Threading.xml", - "ref/netstandard1.0/fr/System.Threading.xml", - "ref/netstandard1.0/it/System.Threading.xml", - "ref/netstandard1.0/ja/System.Threading.xml", - "ref/netstandard1.0/ko/System.Threading.xml", - "ref/netstandard1.0/ru/System.Threading.xml", - "ref/netstandard1.0/zh-hans/System.Threading.xml", - "ref/netstandard1.0/zh-hant/System.Threading.xml", - "ref/netstandard1.3/System.Threading.dll", - "ref/netstandard1.3/System.Threading.xml", - "ref/netstandard1.3/de/System.Threading.xml", - "ref/netstandard1.3/es/System.Threading.xml", - "ref/netstandard1.3/fr/System.Threading.xml", - "ref/netstandard1.3/it/System.Threading.xml", - "ref/netstandard1.3/ja/System.Threading.xml", - "ref/netstandard1.3/ko/System.Threading.xml", - "ref/netstandard1.3/ru/System.Threading.xml", - "ref/netstandard1.3/zh-hans/System.Threading.xml", - "ref/netstandard1.3/zh-hant/System.Threading.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "runtimes/aot/lib/netcore50/System.Threading.dll", - "system.threading.4.3.0.nupkg.sha512", - "system.threading.nuspec" - ] - }, - "System.Threading.Tasks/4.3.0": { - "sha512": "LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==", - "type": "package", - "path": "system.threading.tasks/4.3.0", - "files": [ - ".nupkg.metadata", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.Threading.Tasks.dll", - "ref/netcore50/System.Threading.Tasks.xml", - "ref/netcore50/de/System.Threading.Tasks.xml", - "ref/netcore50/es/System.Threading.Tasks.xml", - "ref/netcore50/fr/System.Threading.Tasks.xml", - "ref/netcore50/it/System.Threading.Tasks.xml", - "ref/netcore50/ja/System.Threading.Tasks.xml", - "ref/netcore50/ko/System.Threading.Tasks.xml", - "ref/netcore50/ru/System.Threading.Tasks.xml", - "ref/netcore50/zh-hans/System.Threading.Tasks.xml", - "ref/netcore50/zh-hant/System.Threading.Tasks.xml", - "ref/netstandard1.0/System.Threading.Tasks.dll", - "ref/netstandard1.0/System.Threading.Tasks.xml", - "ref/netstandard1.0/de/System.Threading.Tasks.xml", - "ref/netstandard1.0/es/System.Threading.Tasks.xml", - "ref/netstandard1.0/fr/System.Threading.Tasks.xml", - "ref/netstandard1.0/it/System.Threading.Tasks.xml", - "ref/netstandard1.0/ja/System.Threading.Tasks.xml", - "ref/netstandard1.0/ko/System.Threading.Tasks.xml", - "ref/netstandard1.0/ru/System.Threading.Tasks.xml", - "ref/netstandard1.0/zh-hans/System.Threading.Tasks.xml", - "ref/netstandard1.0/zh-hant/System.Threading.Tasks.xml", - "ref/netstandard1.3/System.Threading.Tasks.dll", - "ref/netstandard1.3/System.Threading.Tasks.xml", - "ref/netstandard1.3/de/System.Threading.Tasks.xml", - "ref/netstandard1.3/es/System.Threading.Tasks.xml", - "ref/netstandard1.3/fr/System.Threading.Tasks.xml", - "ref/netstandard1.3/it/System.Threading.Tasks.xml", - "ref/netstandard1.3/ja/System.Threading.Tasks.xml", - "ref/netstandard1.3/ko/System.Threading.Tasks.xml", - "ref/netstandard1.3/ru/System.Threading.Tasks.xml", - "ref/netstandard1.3/zh-hans/System.Threading.Tasks.xml", - "ref/netstandard1.3/zh-hant/System.Threading.Tasks.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.threading.tasks.4.3.0.nupkg.sha512", - "system.threading.tasks.nuspec" - ] - }, - "System.Threading.Tasks.Extensions/4.5.3": { - "sha512": "+MvhNtcvIbqmhANyKu91jQnvIRVSTiaOiFNfKWwXGHG48YAb4I/TyH8spsySiPYla7gKal5ZnF3teJqZAximyQ==", - "type": "package", - "path": "system.threading.tasks.extensions/4.5.3", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/netcoreapp2.1/_._", - "lib/netstandard1.0/System.Threading.Tasks.Extensions.dll", - "lib/netstandard1.0/System.Threading.Tasks.Extensions.xml", - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll", - "lib/netstandard2.0/System.Threading.Tasks.Extensions.xml", - "lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Extensions.dll", - "lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Extensions.xml", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/netcoreapp2.1/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.threading.tasks.extensions.4.5.3.nupkg.sha512", - "system.threading.tasks.extensions.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Xml.ReaderWriter/4.3.0": { - "sha512": "GrprA+Z0RUXaR4N7/eW71j1rgMnEnEVlgii49GZyAjTH7uliMnrOU3HNFBr6fEDBCJCIdlVNq9hHbaDR621XBA==", - "type": "package", - "path": "system.xml.readerwriter/4.3.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net46/System.Xml.ReaderWriter.dll", - "lib/netcore50/System.Xml.ReaderWriter.dll", - "lib/netstandard1.3/System.Xml.ReaderWriter.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net46/System.Xml.ReaderWriter.dll", - "ref/netcore50/System.Xml.ReaderWriter.dll", - "ref/netcore50/System.Xml.ReaderWriter.xml", - "ref/netcore50/de/System.Xml.ReaderWriter.xml", - "ref/netcore50/es/System.Xml.ReaderWriter.xml", - "ref/netcore50/fr/System.Xml.ReaderWriter.xml", - "ref/netcore50/it/System.Xml.ReaderWriter.xml", - "ref/netcore50/ja/System.Xml.ReaderWriter.xml", - "ref/netcore50/ko/System.Xml.ReaderWriter.xml", - "ref/netcore50/ru/System.Xml.ReaderWriter.xml", - "ref/netcore50/zh-hans/System.Xml.ReaderWriter.xml", - "ref/netcore50/zh-hant/System.Xml.ReaderWriter.xml", - "ref/netstandard1.0/System.Xml.ReaderWriter.dll", - "ref/netstandard1.0/System.Xml.ReaderWriter.xml", - "ref/netstandard1.0/de/System.Xml.ReaderWriter.xml", - "ref/netstandard1.0/es/System.Xml.ReaderWriter.xml", - "ref/netstandard1.0/fr/System.Xml.ReaderWriter.xml", - "ref/netstandard1.0/it/System.Xml.ReaderWriter.xml", - "ref/netstandard1.0/ja/System.Xml.ReaderWriter.xml", - "ref/netstandard1.0/ko/System.Xml.ReaderWriter.xml", - "ref/netstandard1.0/ru/System.Xml.ReaderWriter.xml", - "ref/netstandard1.0/zh-hans/System.Xml.ReaderWriter.xml", - "ref/netstandard1.0/zh-hant/System.Xml.ReaderWriter.xml", - "ref/netstandard1.3/System.Xml.ReaderWriter.dll", - "ref/netstandard1.3/System.Xml.ReaderWriter.xml", - "ref/netstandard1.3/de/System.Xml.ReaderWriter.xml", - "ref/netstandard1.3/es/System.Xml.ReaderWriter.xml", - "ref/netstandard1.3/fr/System.Xml.ReaderWriter.xml", - "ref/netstandard1.3/it/System.Xml.ReaderWriter.xml", - "ref/netstandard1.3/ja/System.Xml.ReaderWriter.xml", - "ref/netstandard1.3/ko/System.Xml.ReaderWriter.xml", - "ref/netstandard1.3/ru/System.Xml.ReaderWriter.xml", - "ref/netstandard1.3/zh-hans/System.Xml.ReaderWriter.xml", - "ref/netstandard1.3/zh-hant/System.Xml.ReaderWriter.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.xml.readerwriter.4.3.0.nupkg.sha512", - "system.xml.readerwriter.nuspec" - ] - }, - "System.Xml.XmlDocument/4.3.0": { - "sha512": "lJ8AxvkX7GQxpC6GFCeBj8ThYVyQczx2+f/cWHJU8tjS7YfI6Cv6bon70jVEgs2CiFbmmM8b9j1oZVx0dSI2Ww==", - "type": "package", - "path": "system.xml.xmldocument/4.3.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.Xml.XmlDocument.dll", - "lib/netstandard1.3/System.Xml.XmlDocument.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net46/System.Xml.XmlDocument.dll", - "ref/netstandard1.3/System.Xml.XmlDocument.dll", - "ref/netstandard1.3/System.Xml.XmlDocument.xml", - "ref/netstandard1.3/de/System.Xml.XmlDocument.xml", - "ref/netstandard1.3/es/System.Xml.XmlDocument.xml", - "ref/netstandard1.3/fr/System.Xml.XmlDocument.xml", - "ref/netstandard1.3/it/System.Xml.XmlDocument.xml", - "ref/netstandard1.3/ja/System.Xml.XmlDocument.xml", - "ref/netstandard1.3/ko/System.Xml.XmlDocument.xml", - "ref/netstandard1.3/ru/System.Xml.XmlDocument.xml", - "ref/netstandard1.3/zh-hans/System.Xml.XmlDocument.xml", - "ref/netstandard1.3/zh-hant/System.Xml.XmlDocument.xml", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.xml.xmldocument.4.3.0.nupkg.sha512", - "system.xml.xmldocument.nuspec" - ] - } - }, - "projectFileDependencyGroups": { - ".NETStandard,Version=v2.0": [ - "MessagePack >= 2.1.90", - "MessagePack.MSBuild.Tasks >= 2.0.323", - "Microsoft.Extensions.Logging >= 5.0.0-preview.1.20120.4", - "NETStandard.Library >= 2.0.3", - "Newtonsoft.Json >= 10.0.3", - "Remotion.Linq >= 2.2.0" - ] - }, - "packageFolders": { - "C:\\Users\\rwvens\\.nuget\\packages\\": {}, - "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder": {} - }, - "project": { - "version": "1.0.0", - "restore": { - "projectUniqueName": "C:\\Users\\rwvens\\Documents\\GitHub\\Aetheria-Economy\\Economy.Shared\\Economy.Shared.csproj", - "projectName": "Economy.Shared", - "projectPath": "C:\\Users\\rwvens\\Documents\\GitHub\\Aetheria-Economy\\Economy.Shared\\Economy.Shared.csproj", - "packagesPath": "C:\\Users\\rwvens\\.nuget\\packages\\", - "outputPath": "C:\\Users\\rwvens\\Documents\\GitHub\\Aetheria-Economy\\Economy.Shared\\obj\\", - "projectStyle": "PackageReference", - "fallbackFolders": [ - "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" - ], - "configFilePaths": [ - "C:\\Users\\rwvens\\AppData\\Roaming\\NuGet\\NuGet.Config", - "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" - ], - "originalTargetFrameworks": [ - "netstandard2.0" - ], - "sources": { - "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, - "https://api.nuget.org/v3/index.json": {} - }, - "frameworks": { - "netstandard2.0": { - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "netstandard2.0": { - "dependencies": { - "MessagePack": { - "target": "Package", - "version": "[2.1.90, )" - }, - "MessagePack.MSBuild.Tasks": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.323, )" - }, - "Microsoft.Extensions.Logging": { - "target": "Package", - "version": "[5.0.0-preview.1.20120.4, )" - }, - "NETStandard.Library": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.3, )", - "autoReferenced": true - }, - "Newtonsoft.Json": { - "target": "Package", - "version": "[10.0.3, )" - }, - "Remotion.Linq": { - "target": "Package", - "version": "[2.2.0, )" - } - }, - "imports": [ - "net461", - "net462", - "net47", - "net471", - "net472", - "net48" - ], - "assetTargetFallback": true, - "warn": true, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.201\\RuntimeIdentifierGraph.json" - } - } - } -} \ No newline at end of file diff --git a/Economy.Shared/obj/project.packagespec.json b/Economy.Shared/obj/project.packagespec.json deleted file mode 100644 index 5f4aa4f9d..000000000 --- a/Economy.Shared/obj/project.packagespec.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "version": "1.0.0", - "restore": { - "projectUniqueName": "C:\\Users\\rwvens\\Documents\\GitHub\\Aetheria-Economy\\Economy.Shared\\Economy.Shared.csproj", - "projectName": "Economy.Shared", - "projectPath": "C:\\Users\\rwvens\\Documents\\GitHub\\Aetheria-Economy\\Economy.Shared\\Economy.Shared.csproj", - "outputPath": "C:\\Users\\rwvens\\Documents\\GitHub\\Aetheria-Economy\\Economy.Shared\\obj\\", - "projectStyle": "PackageReference", - "fallbackFolders": [ - "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" - ], - "originalTargetFrameworks": [ - "netstandard2.0" - ], - "sources": { - "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, - "https://api.nuget.org/v3/index.json": {} - }, - "frameworks": { - "netstandard2.0": { - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "netstandard2.0": { - "dependencies": { - "MessagePack": { - "target": "Package", - "version": "[2.1.90, )" - }, - "MessagePack.MSBuild.Tasks": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.323, )" - }, - "Microsoft.Extensions.Logging": { - "target": "Package", - "version": "[5.0.0-preview.1.20120.4, )" - }, - "NETStandard.Library": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.3, )", - "autoReferenced": true - }, - "Newtonsoft.Json": { - "target": "Package", - "version": "[10.0.3, )" - }, - "Remotion.Linq": { - "target": "Package", - "version": "[2.2.0, )" - } - }, - "imports": [ - "net461", - "net462", - "net47", - "net471", - "net472", - "net48" - ], - "assetTargetFallback": true, - "warn": true, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.201\\RuntimeIdentifierGraph.json" - } - } -} \ No newline at end of file diff --git a/UpgradeLog.htm b/UpgradeLog.htm deleted file mode 100644 index efe074af9..000000000 Binary files a/UpgradeLog.htm and /dev/null differ