Make spherical erosion diagnostics finite

This commit is contained in:
Meta Vens 2026-07-13 00:41:25 +01:00
commit e870663fe0
2 changed files with 8 additions and 1 deletions

View file

@ -67,6 +67,8 @@ public record struct float3(float x, float y, float z)
public static explicit operator System.Numerics.Vector3(float3 value) => new(value.x, value.y, value.z);
public static explicit operator float3(System.Numerics.Vector3 value) => new(value.X, value.Y, value.Z);
public override readonly string ToString() => $"float3({x:R}, {y:R}, {z:R})";
public static float3 operator +(float3 value) => value;
public static float3 operator -(float3 value) => new(-value.x, -value.y, -value.z);
public static float3 operator +(float3 left, float3 right) => new(left.x + right.x, left.y + right.y, left.z + right.z);