internal bool IsHitUnique(RawList<RayHit> hits, ref RayHit hit) { for (int i = 0; i < hits.Count; i++) { if (Math.Abs(hits.Elements[i].T - hit.T) < MeshHitUniquenessThreshold) return false; } hits.Add(hit); return true; }