< Summary

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

#LineLine coverage
 1//=======================================================================
 2// CapsulePlaneRayValueMetadata.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;
 9using System.Runtime.CompilerServices;
 10
 11namespace FixedMathSharp.Geometry;
 12
 13/// <summary>Copied metadata for a borrowed positive capsule boundary-ray value.</summary>
 14internal readonly struct CapsulePlaneRayValueMetadata
 15{
 16    internal readonly int ValueShift, Ordinal, RootCount, PolynomialCount, DenominatorShift;
 17    internal readonly bool IsRational, HasCompactCell, HasValue;
 18
 19    internal CapsulePlaneRayValueMetadata(int valueShift, int ordinal, int rootCount, int polynomialCount,
 20        int denominatorShift, bool rational, bool compact)
 21    {
 148022        ValueShift = valueShift; Ordinal = ordinal; RootCount = rootCount; PolynomialCount = polynomialCount;
 148023        DenominatorShift = denominatorShift; IsRational = rational; HasCompactCell = compact; HasValue = true;
 37024    }
 25}