< Summary

Information
Class: Gravitas.Constraints.JointConstraintRow2D
Assembly: Gravitas
File(s): /home/runner/work/Gravitas/Gravitas/src/Gravitas/Constraints/2D/JointConstraintRow2D.cs
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 54
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/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
 12internal enum JointConstraintRowKind2D : byte
 13{
 14    Linear,
 15    Angular,
 16    Motor
 17}
 18
 19internal struct JointConstraintRow2D
 20{
 21    public JointConstraintRow2D(
 22        JointConstraintRowKind2D kind,
 23        Vector2d axis,
 24        Vector2d relativeAnchorA,
 25        Vector2d relativeAnchorB,
 26        Fixed64 biasVelocity,
 27        Fixed64 damping,
 28        Fixed64 lowerImpulse,
 29        Fixed64 upperImpulse,
 30        int cacheIndex)
 31    {
 328432        Kind = kind;
 328433        Axis = axis;
 328434        RelativeAnchorA = relativeAnchorA;
 328435        RelativeAnchorB = relativeAnchorB;
 328436        BiasVelocity = biasVelocity;
 328437        Damping = damping;
 328438        LowerImpulse = lowerImpulse;
 328439        UpperImpulse = upperImpulse;
 328440        CacheIndex = cacheIndex;
 328441        AccumulatedImpulse = Fixed64.Zero;
 328442    }
 43
 44    public JointConstraintRowKind2D Kind;
 45    public Vector2d Axis;
 46    public Vector2d RelativeAnchorA;
 47    public Vector2d RelativeAnchorB;
 48    public Fixed64 BiasVelocity;
 49    public Fixed64 Damping;
 50    public Fixed64 LowerImpulse;
 51    public Fixed64 UpperImpulse;
 52    public int CacheIndex;
 53    public Fixed64 AccumulatedImpulse;
 54}