< Summary

Information
Class: Gravitas.Diagnostics.GravitasWireConeDebugDrawView
Assembly: Gravitas
File(s): /home/runner/work/Gravitas/Gravitas/src/Gravitas/Diagnostics/DebugDraw/Views/GravitasWireConeDebugDrawView.cs
Line coverage
100%
Covered lines: 12
Uncovered lines: 0
Coverable lines: 12
Total lines: 55
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%
get_Frame()100%11100%
get_Sequence()100%11100%
get_ColliderId()100%11100%
get_ColliderDimension()100%11100%
get_ColliderType()100%11100%
get_Collider2DType()100%11100%
get_Center()100%11100%
get_Rotation()100%11100%
get_Radius()100%11100%
get_Height()100%11100%
get_Color()100%11100%

File(s)

/home/runner/work/Gravitas/Gravitas/src/Gravitas/Diagnostics/DebugDraw/Views/GravitasWireConeDebugDrawView.cs

#LineLine coverage
 1//=======================================================================
 2// GravitasWireConeDebugDrawView.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;
 9using Gravitas.Colliders;
 10
 11namespace Gravitas.Diagnostics;
 12
 13/// <summary>
 14/// Typed read-only view over a wire-cone draw command.
 15/// </summary>
 16public readonly struct GravitasWireConeDebugDrawView
 17{
 218    internal GravitasWireConeDebugDrawView(GravitasDebugDrawCommand command) => Command = command;
 19
 20    /// <summary>Gets the underlying draw command.</summary>
 21    public GravitasDebugDrawCommand Command { get; }
 22
 23    /// <summary>Gets the simulation frame in which the command was captured.</summary>
 124    public long Frame => Command.Frame;
 25
 26    /// <summary>Gets the command's sequence within its capture buffer.</summary>
 127    public int Sequence => Command.Sequence;
 28
 29    /// <summary>Gets the associated context-local collider identifier.</summary>
 130    public int ColliderId => Command.ColliderId;
 31
 32    /// <summary>Gets the associated collider dimension.</summary>
 133    public GravitasColliderDimension ColliderDimension => Command.ColliderDimension;
 34
 35    /// <summary>Gets the associated 3D collider type.</summary>
 136    public ColliderType ColliderType => Command.ColliderType;
 37
 38    /// <summary>Gets the associated 2D collider type.</summary>
 139    public ColliderType2D Collider2DType => Command.Collider2DType;
 40
 41    /// <summary>Gets the cone center.</summary>
 142    public Vector3d Center => Command.Center;
 43
 44    /// <summary>Gets the cone orientation.</summary>
 145    public FixedQuaternion Rotation => Command.Rotation;
 46
 47    /// <summary>Gets the cone base radius.</summary>
 148    public Fixed64 Radius => Command.Radius;
 49
 50    /// <summary>Gets the cone height.</summary>
 151    public Fixed64 Height => Command.Height;
 52
 53    /// <summary>Gets the cone color.</summary>
 154    public GravitasDiagnosticColor Color => Command.Color;
 55}