< Summary

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

#LineLine coverage
 1//=======================================================================
 2// CenteredCylinderContactFeature.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
 8namespace FixedMathSharp.Geometry;
 9
 10/// <summary>Exact parallel box-face/cylinder-cap ownership for manifold clipping.</summary>
 11internal readonly struct CenteredCylinderContactFeature
 12{
 13    internal CenteredCylinderContactFeature(int boxFaceAxis, int boxFaceSign, int cylinderCapSign)
 14    {
 102115        BoxFaceAxis = boxFaceAxis;
 102116        BoxFaceSign = boxFaceSign;
 102117        CylinderCapSign = cylinderCapSign;
 102118        IsCapFace = true;
 102119    }
 20
 21    internal int BoxFaceAxis { get; }
 22    internal int BoxFaceSign { get; }
 23    internal int CylinderCapSign { get; }
 24    internal bool IsCapFace { get; }
 25}