< Summary

Information
Class: Gravitas.CollisionHandling.AxisPenetration
Assembly: Gravitas
File(s): /home/runner/work/Gravitas/Gravitas/src/Gravitas/CollisionHandling/Detection/3D/Convex/AxisPenetration.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 32
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/Gravitas/Gravitas/src/Gravitas/CollisionHandling/Detection/3D/Convex/AxisPenetration.cs

#LineLine coverage
 1//=======================================================================
 2// AxisPenetration.cs
 3//=======================================================================
 4// MIT License, Copyright (c) 2026-present David Oravsky (mrdav30)
 5// See LICENSE file in the project root for full license information.
 6//=======================================================================
 7
 8using FixedMathSharp;
 9
 10namespace Gravitas.CollisionHandling;
 11
 12/// <summary>
 13/// Carries a penetration axis and depth, including whether the depth was clamped.
 14/// </summary>
 15internal readonly struct AxisPenetration
 16{
 17    public AxisPenetration(Vector3d axis, Fixed64 depth, bool depthIsClamped = false)
 18    {
 90519        Axis = axis;
 90520        Depth = depth;
 90521        DepthIsClamped = depthIsClamped;
 90522        HasValue = true;
 90523    }
 24
 25    public Vector3d Axis { get; }
 26
 27    public Fixed64 Depth { get; }
 28
 29    public bool DepthIsClamped { get; }
 30
 31    public bool HasValue { get; }
 32}