Vixen
02b45cc4
csharp
public readonly record struct RayHit

What a ray found in a triangle mesh, or did not.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (6)

  • public bool Hit

    Whether it reached a surface.

  • public float Distance

    How far along the ray, when it did.

  • public Vector3 Position

    Where it stopped.

  • public Vector3 Normal

    The triangle's geometric normal, facing the ray.

  • public int Triangle

    Which triangle, as an index into the build's list.

  • public int Visited

    How many nodes the traversal touched — the cost, and worth seeing.

Methods (1)

  • public RayHit(bool Hit, float Distance, Vector3 Position, Vector3 Normal, int Triangle, int Visited)

    What a ray found in a triangle mesh, or did not.

Used by (3)

  • QueriedFieldVixen.Rendering.RayTracing
  • TriangleBvhVixen.Rendering.RayTracing
  • TriangleBvhTestsVixen.Rendering.RayTracing.Tests