h1z1-server
    Preparing search index...

    Function isPosInRadius

    • Checks if a position is within a specified radius from another position in 2D space.

      Parameters

      • radius: number

        The radius to check.

      • position1: Float32Array

        The position of the first point.

      • position2: Float32Array

        The position of the second point.

      Returns boolean

      A boolean indicating whether the second point is within the specified radius of the first point.