Editor/Core/Geometry/MeshHit.cs

A small readonly record struct used by the editor geometry code. Stores the result of a ray/triangle intersection: distance, triangle index, hit point and normal.

#nullable enable annotations

using System.Numerics;

namespace WeaponImporter.EditorTools.Core.Geometry;

using Vector3 = System.Numerics.Vector3;

/// <summary>A ray/triangle hit.</summary>
public readonly record struct MeshHit(float Distance, int Triangle, Vector3 Point, Vector3 Normal);