OpenHPS/openhps-core

View on GitHub
src/nodes/processing/TriangulationNode.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function processRelativePositions has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public processRelativePositions<P extends Absolute2DPosition | Absolute3DPosition | GeographicalPosition>(
        dataObject: DataObject,
        relativePositions: Map<RelativeAngle, DataObject>,
        dataFrame: DataFrame,
    ): Promise<DataObject> {
Severity: Minor
Found in src/nodes/processing/TriangulationNode.ts - About 1 hr to fix

    Function triangulate has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected triangulate<P extends AbsolutePosition>(points: P[], angles: number[]): Promise<P> {
            return new Promise<P>((resolve, reject) => {
                const vectors = [points[0].toVector3(), points[1].toVector3(), points[2].toVector3()];
    
                const x1 = vectors[0].x - vectors[1].x;
    Severity: Minor
    Found in src/nodes/processing/TriangulationNode.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status