< Summary

Information
Class: Gravitas.CollisionHandling.BoundarySpan2D
Assembly: Gravitas
File(s): /home/runner/work/Gravitas/Gravitas/src/Gravitas/CollisionHandling/Detection/2D/Surfaces/BoundarySpan2D.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 30
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/CollisionHandling/Detection/2D/Surfaces/BoundarySpan2D.cs

#LineLine coverage
 1//=======================================================================
 2// BoundarySpan.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.CollisionHandling;
 12
 13/// <summary>
 14/// Stores a classified interval of an original planar perimeter edge and its adjacent member.
 15/// </summary>
 16internal readonly struct BoundarySpan2D
 17{
 18    internal readonly int First, Second, OtherMember;
 19    internal readonly Vector2d Start, End;
 20    internal readonly RationalSegmentInterval Interval;
 21    internal readonly SpanKind Kind;
 22    internal readonly FixedBoundArea Bounds;
 23    internal BoundarySpan2D(int first, int second, Vector2d start, Vector2d end,
 24        in RationalSegmentInterval interval, SpanKind kind, int otherMember, FixedBoundArea bounds)
 25    {
 4164826        First = first; Second = second; Start = start; End = end;
 3123627        Interval = interval; Kind = kind; OtherMember = otherMember;
 1041228        Bounds = bounds;
 1041229    }
 30}