< Summary

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

File(s)

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

#LineLine coverage
 1//=======================================================================
 2// ConeSurfaceFamilyWitness.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 static FixedMathSharp.Geometry.ContactQuadratic;
 10
 11namespace FixedMathSharp.Geometry;
 12
 13// Slots 0..2 are a cone-local unnormalized normal; 3..5 and 6..8 are
 14// centered raw p/q numerators over common slot 9; 10..11 retain segment t.
 15internal readonly ref struct ConeSurfaceFamilyWitness
 16{
 17    internal readonly Span<ulong> Values, Root;
 18    internal readonly Span<int> Signs;
 19466019    internal int FieldWords => Values.Length / 24;
 16260520    internal ContactQuadratic this[int index] => ContactQuadratic.At(Values, Signs, index, FieldWords);
 21    internal ConeSurfaceFamilyWitness(Span<ulong> values, Span<int> signs, Span<ulong> root)
 3569322    { Values = values; Signs = signs; Root = root; values.Clear(); signs.Clear(); root.Clear(); }
 23}