< Summary

Information
Class: FixedMathSharp.Geometry.ConePlaneRayEvent
Assembly: FixedMathSharp
File(s): /home/runner/work/FixedMathSharp/FixedMathSharp/src/FixedMathSharp/Geometry/Wide/FiniteAxis/ConePlaneRayEvent.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 30
Line coverage: 100%
Branch coverage
100%
Covered branches: 8
Total branches: 8
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%88100%

File(s)

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

#LineLine coverage
 1//=======================================================================
 2// ConePlaneRayEvent.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 finite feature in its shared plane or finite segment.</summary>
 13internal readonly struct ConePlaneRayEvent
 14{
 15    internal readonly ConePlaneRayEventKind Kind;
 16    internal readonly byte Feature, Quadrant;
 17    internal readonly sbyte Branch, Endpoint, Orientation;
 18
 19    internal ConePlaneRayEvent(ConePlaneRayEventKind kind, int feature = 0, int quadrant = 0,
 20        int branch = 0, int endpoint = -1, int orientation = 0)
 21    {
 31023622        Kind = kind; Feature = (byte)feature; Quadrant = (byte)quadrant;
 31023623        Branch = (sbyte)branch; Endpoint = (sbyte)endpoint; Orientation = (sbyte)orientation;
 10341224    }
 25
 4260526    internal bool Matches(in ConePlaneRayEvent other) => Kind == other.Kind && Feature == other.Feature
 4260527        && Quadrant == other.Quadrant && Branch == other.Branch && Endpoint == other.Endpoint;
 28
 29
 30}