< Summary

Information
Class: FixedMathSharp.Geometry.CapsulePlaneRayEvent
Assembly: FixedMathSharp
File(s): /home/runner/work/FixedMathSharp/FixedMathSharp/src/FixedMathSharp/Geometry/Wide/FiniteAxis/CapsulePlaneRayEvent.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 21
Line coverage: 100%
Branch coverage
100%
Covered branches: 6
Total branches: 6
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

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

File(s)

/home/runner/work/FixedMathSharp/FixedMathSharp/src/FixedMathSharp/Geometry/Wide/FiniteAxis/CapsulePlaneRayEvent.cs

#LineLine coverage
 1//=======================================================================
 2// CapsulePlaneRayEvent.cs
 3//=======================================================================
 4// MIT License, Copyright (c) 2024-present David Oravsky (mrdav30)
 5// See LICENSE file in the project root for full license information.
 6//=======================================================================
 7
 8using System;
 9
 10namespace FixedMathSharp.Geometry;
 11
 12/// <summary>A reconstructible exact point in the plane or its finite perimeter.</summary>
 13internal readonly struct CapsulePlaneRayEvent
 14{
 15    internal readonly CapsulePlaneRayEventKind Kind;
 16    internal readonly sbyte Feature, Branch, Orientation;
 17    internal CapsulePlaneRayEvent(CapsulePlaneRayEventKind kind, int feature = 0, int branch = 0, int orientation = 0)
 1682518    { Kind = kind; Feature = (sbyte)feature; Branch = (sbyte)branch; Orientation = (sbyte)orientation; }
 19    internal bool Matches(in CapsulePlaneRayEvent other) =>
 144220        Kind == other.Kind && Feature == other.Feature && Branch == other.Branch && Orientation == other.Orientation;
 21}