sparse-octree - v7.2.0
    Preparing search index...

    Interface Tree<T>

    A tree data structure.

    interface Tree<T extends Node = Node> {
        children?: Node[] | null;
        max: Vector3;
        min: Vector3;
        findNodesByLevel(level: number): T[];
        getCenter(result: Vector3): Vector3;
        getDepth(): number;
        getDimensions(result: Vector3): Vector3;
    }

    Type Parameters

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    children?: Node[] | null

    The children of this node.

    max: Vector3

    The upper bounds of the node.

    min: Vector3

    The lower bounds of this node.

    Methods

    • Fetches all nodes of a specific depth level.

      Parameters

      • level: number

        The depth level.

      Returns T[]

      The nodes.

    • Calculates the depth of this tree.

      Returns number

      The depth.