< Summary

Information
Class: Gravitas.Queries.ProjectedSurfaceRelation
Assembly: Gravitas
File(s): /home/runner/work/Gravitas/Gravitas/src/Gravitas/Queries/3D/ProjectedSurfaceRelation.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 46
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%

File(s)

/home/runner/work/Gravitas/Gravitas/src/Gravitas/Queries/3D/ProjectedSurfaceRelation.cs

#LineLine coverage
 1//=======================================================================
 2// ProjectedSurfaceRelation.cs
 3//=======================================================================
 4// MIT License, Copyright (c) 2026-present David Oravsky (mrdav30)
 5// See LICENSE file in the project root for full license information.
 6//=======================================================================
 7
 8using FixedMathSharp;
 9using FixedMathSharp.Geometry;
 10
 11namespace Gravitas.Queries;
 12
 13/// <summary>
 14/// Retains one admitted X/Z projected-surface relation and its independent
 15/// real 3D surface witness.
 16/// </summary>
 17internal readonly struct ProjectedSurfaceRelation
 18{
 19    internal ProjectedSurfaceRelation(
 20        Fixed64 distance,
 21        Vector2d offset,
 22        Vector2d direction,
 23        FixedPointAnchor contactAnchor,
 24        Vector3d outwardNormal,
 25        bool isContained)
 26    {
 152027        Distance = distance;
 152028        Offset = offset;
 152029        Direction = direction;
 152030        ContactAnchor = contactAnchor;
 152031        OutwardNormal = outwardNormal;
 152032        IsContained = isContained;
 152033    }
 34
 35    internal Fixed64 Distance { get; }
 36
 37    internal Vector2d Offset { get; }
 38
 39    internal Vector2d Direction { get; }
 40
 41    internal FixedPointAnchor ContactAnchor { get; }
 42
 43    internal Vector3d OutwardNormal { get; }
 44
 45    internal bool IsContained { get; }
 46}