Swap Unity.Mathematics usings for CultMath

Every Unity.Mathematics using, alias and qualified name under Assets\Scripts
and tools now names CultMath. The nine `using static ...noise;` lines are
gone: snoise lives on CultMath's math. UnityExtensions loses float4.ToColor
and Color.ToFloat4, which duplicate the bridge's ToColor and ToCultMath; the
float3 colour pair stays because the bridge has none.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-14 17:39:12 +02:00
commit 6140a06a0a
130 changed files with 281 additions and 293 deletions

View file

@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
using Unity.Mathematics;
using CultMath;
namespace DataStructures.ViliWonka.KDTree {

View file

@ -35,8 +35,8 @@ KDQuery can query different KDTrees.
using System.Collections.Generic;
using System;
using Unity.Mathematics;
using static Unity.Mathematics.math;
using CultMath;
using static CultMath.math;
namespace DataStructures.ViliWonka.KDTree {

View file

@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
using Unity.Mathematics;
using CultMath;
namespace DataStructures.ViliWonka.KDTree {

View file

@ -23,8 +23,8 @@ SOFTWARE.
using System.Collections.Generic;
using System;
using Unity.Mathematics;
using static Unity.Mathematics.math;
using CultMath;
using static CultMath.math;
namespace DataStructures.ViliWonka.KDTree {

View file

@ -23,8 +23,8 @@ SOFTWARE.
using System.Collections.Generic;
using System;
using Unity.Mathematics;
using static Unity.Mathematics.math;
using CultMath;
using static CultMath.math;
namespace DataStructures.ViliWonka.KDTree {

View file

@ -25,8 +25,8 @@ SOFTWARE.
using System.Collections.Generic;
using System;
using Unity.Mathematics;
using static Unity.Mathematics.math;
using CultMath;
using static CultMath.math;
namespace DataStructures.ViliWonka.KDTree {

View file

@ -23,8 +23,8 @@ SOFTWARE.
using System.Collections.Generic;
using System;
using Unity.Mathematics;
using static Unity.Mathematics.math;
using CultMath;
using static CultMath.math;
namespace DataStructures.ViliWonka.KDTree {

View file

@ -28,9 +28,9 @@ SOFTWARE.
using System.Collections;
using System.Collections.Generic;
using System;
using Unity.Mathematics;
using static Unity.Mathematics.math;
using float2 = Unity.Mathematics.float2;
using CultMath;
using static CultMath.math;
using float2 = CultMath.float2;
namespace DataStructures.ViliWonka.KDTree {

View file

@ -1,8 +1,8 @@
using System.Collections;
using System.Linq;
using MIConvexHull;
using Unity.Mathematics;
using static Unity.Mathematics.math;
using CultMath;
using static CultMath.math;
/// <summary>
/// A vertex is a simple class that stores the postion of a point, node or vertex.

View file

@ -1,8 +1,8 @@
using System.Collections;
using System.Linq;
using MIConvexHull;
using Unity.Mathematics;
using static Unity.Mathematics.math;
using CultMath;
using static CultMath.math;
/// <summary>
/// A vertex is a simple class that stores the postion of a point, node or vertex.

View file

@ -26,9 +26,9 @@
using System;
using System.Collections.Generic;
using Unity.Mathematics;
using static Unity.Mathematics.math;
using Random = Unity.Mathematics.Random;
using CultMath;
using static CultMath.math;
using Random = CultMath.Random;
namespace MIConvexHull
{

View file

@ -1,8 +1,8 @@
using System;
using System.Collections;
using MIConvexHull;
using Unity.Mathematics;
using static Unity.Mathematics.math;
using CultMath;
using static CultMath.math;
public class Vertex2 : IVertex
{

View file

@ -1,4 +1,4 @@
using Unity.Mathematics;
using CultMath;
public class Vertex2<T> : Vertex2
{

View file

@ -1,7 +1,7 @@
using System.Collections;
using MIConvexHull;
using Unity.Mathematics;
using static Unity.Mathematics.math;
using CultMath;
using static CultMath.math;
public class Vertex3 : IVertex
{