< Summary

Information
Class: FixedMathSharp.Geometry.CapsulePlaneRayEventSource
Assembly: FixedMathSharp
File(s): /home/runner/work/FixedMathSharp/FixedMathSharp/src/FixedMathSharp/Geometry/Wide/FiniteAxis/CapsulePlaneRayEventSource.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 20
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_Plane()100%11100%
.ctor(...)100%11100%

File(s)

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

#LineLine coverage
 1//=======================================================================
 2// CapsulePlaneRayEventSource.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 plane or one authored finite perimeter segment.</summary>
 13internal readonly struct CapsulePlaneRayEventSource
 14{
 15    internal readonly bool IsSegment;
 16    internal readonly Vector3d A, B;
 23617    internal static CapsulePlaneRayEventSource Plane => default;
 18    internal CapsulePlaneRayEventSource(FixedSegment segment)
 20819    { IsSegment = true; A = segment.Start; B = segment.End; }
 20}