< Summary

Information
Class: Gravitas.Constraints.JointConstraintRow2D
Assembly: Gravitas
File(s): /home/runner/work/Gravitas/Gravitas/src/Gravitas/Constraints/2D/Joints/JointConstraintRow2D.cs
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 52
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/Constraints/2D/Joints/JointConstraintRow2D.cs

#LineLine coverage
 1//=======================================================================
 2// JointConstraintRow2D.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.Constraints;
 11
 12
 13
 14/// <summary>
 15/// Stores a planar joint row with its anchors, impulse limits, and warm-start state.
 16/// </summary>
 17internal struct JointConstraintRow2D
 18{
 19    public JointConstraintRow2D(
 20        JointConstraintRowKind2D kind,
 21        Vector2d axis,
 22        Vector2d relativeAnchorA,
 23        Vector2d relativeAnchorB,
 24        Fixed64 biasVelocity,
 25        Fixed64 damping,
 26        Fixed64 lowerImpulse,
 27        Fixed64 upperImpulse,
 28        int cacheIndex)
 29    {
 357630        Kind = kind;
 357631        Axis = axis;
 357632        RelativeAnchorA = relativeAnchorA;
 357633        RelativeAnchorB = relativeAnchorB;
 357634        BiasVelocity = biasVelocity;
 357635        Damping = damping;
 357636        LowerImpulse = lowerImpulse;
 357637        UpperImpulse = upperImpulse;
 357638        CacheIndex = cacheIndex;
 357639        AccumulatedImpulse = Fixed64.Zero;
 357640    }
 41
 42    public JointConstraintRowKind2D Kind;
 43    public Vector2d Axis;
 44    public Vector2d RelativeAnchorA;
 45    public Vector2d RelativeAnchorB;
 46    public Fixed64 BiasVelocity;
 47    public Fixed64 Damping;
 48    public Fixed64 LowerImpulse;
 49    public Fixed64 UpperImpulse;
 50    public int CacheIndex;
 51    public Fixed64 AccumulatedImpulse;
 52}