linear-octree - v0.3.2
    Preparing search index...

    Class OctantWrapper<T>

    An octant wrapper that stores positional information.

    Type Parameters

    • T

      The type of the octant data.

    Implements

    • Node
    Index

    Constructors

    Properties

    The octant ID.

    max: Vector3

    The upper bounds of the node.

    min: Vector3

    The lower bounds of this node.

    octant: Octant<T> | null

    The octant.

    Methods

    • Checks if the given point lies inside the boundaries of this wrapper.

      Parameters

      Returns boolean

      Whether the given point lies inside the boundaries.

    • Calculates the squared distance from the center to the given point.

      Parameters

      Returns number

      The squared distance.

    • Calculates the squared distance to the given point.

      Parameters

      Returns number

      The squared distance.