< Summary

Information
Class: SwiftCollections.Query.SwiftBVH<T>
Assembly: SwiftCollections
File(s): /home/runner/work/SwiftCollections/SwiftCollections/src/SwiftCollections/Query/BoundingVolume/SwiftBVH.BoundVolume.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 22
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/SwiftCollections/SwiftCollections/src/SwiftCollections/Query/BoundingVolume/SwiftBVH.BoundVolume.cs

#LineLine coverage
 1//=======================================================================
 2// SwiftBVH.BoundVolume.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 SwiftCollections.Query;
 9
 10/// <summary>
 11/// Represents a numerics-backed Bounding Volume Hierarchy (BVH) optimized for spatial queries.
 12/// </summary>
 13public class SwiftBVH<T> : SwiftBVH<T, BoundVolume>
 14    where T : notnull
 15{
 16    /// <summary>
 17    /// Initializes a new instance of the <see cref="SwiftBVH{T}"/> class with the specified capacity.
 18    /// </summary>
 19    /// <param name="capacity">Initial tree capacity.</param>
 20    public SwiftBVH(int capacity)
 7821        : base(capacity) { }
 22}

Methods/Properties

.ctor(System.Int32)