< Summary

Information
Class: FixedMathSharp.Geometry.ConePlaneRayEventSource
Assembly: FixedMathSharp
File(s): /home/runner/work/FixedMathSharp/FixedMathSharp/src/FixedMathSharp/Geometry/Wide/FiniteAxis/ConePlaneRayEventSource.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 26
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
get_IsSegment()100%11100%
get_Plane()100%11100%
.ctor(...)100%11100%
get_NativeSegment()100%11100%
.ctor(...)100%11100%

File(s)

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

#LineLine coverage
 1//=======================================================================
 2// ConePlaneRayEventSource.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>An unbounded shared plane or one authored finite boundary segment.</summary>
 13internal readonly struct ConePlaneRayEventSource
 14{
 15    internal readonly ConePlaneRayEventScope Scope;
 25177316    internal bool IsSegment => Scope != ConePlaneRayEventScope.Plane;
 17    internal readonly Vector3d A, B;
 379718    internal static ConePlaneRayEventSource Plane => default;
 19    internal ConePlaneRayEventSource(FixedSegment segment)
 478020    { Scope = ConePlaneRayEventScope.Segment; A = segment.Start; B = segment.End; }
 21    // Native rational cuts are borrowed by the synchronous sink, never encoded
 22    // as rounded authored endpoints or replayed from this provenance record.
 1223    internal static ConePlaneRayEventSource NativeSegment => new(ConePlaneRayEventScope.NativeSegment);
 24    private ConePlaneRayEventSource(ConePlaneRayEventScope scope)
 3625    { Scope = scope; A = B = default; }
 26}