< Summary

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

#LineLine coverage
 1//=======================================================================
 2// CollisionDetection.Support.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
 12internal readonly struct AxisPenetration
 13{
 14    public AxisPenetration(Vector3d axis, Fixed64 depth, bool depthIsClamped = false)
 15    {
 140916        Axis = axis;
 140917        Depth = depth;
 140918        DepthIsClamped = depthIsClamped;
 140919        HasValue = true;
 140920    }
 21
 22    public Vector3d Axis { get; }
 23
 24    public Fixed64 Depth { get; }
 25
 26    public bool DepthIsClamped { get; }
 27
 28    public bool HasValue { get; }
 29}