< Summary

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

#LineLine coverage
 1//=======================================================================
 2// FixedContactLocalPoints.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>
 11/// Stores one compact local-point pair in a multi-contact relation.
 12/// </summary>
 13/// <remarks>
 14/// The pair reuses the rigid frames, normal, depth, and depth-clamping state
 15/// carried by the relation's primary <see cref="FixedContactAnchors"/>.
 16/// </remarks>
 17public readonly struct FixedContactLocalPoints
 18{
 19    internal FixedContactLocalPoints(
 20        Vector3d firstLocalPoint,
 21        Vector3d secondLocalPoint)
 22    {
 406123        FirstLocalPoint = firstLocalPoint;
 406124        SecondLocalPoint = secondLocalPoint;
 406125    }
 26
 27    /// <summary>
 28    /// The point in the primary relation's first rigid frame.
 29    /// </summary>
 30    public Vector3d FirstLocalPoint { get; }
 31
 32    /// <summary>
 33    /// The point in the primary relation's second rigid frame.
 34    /// </summary>
 35    public Vector3d SecondLocalPoint { get; }
 36}