h1z1-server
    Preparing search index...

    Function getDistance2d

    • Calculates the Euclidean distance between two 2D points (ignoring the y-axis).

      Parameters

      • p1: Float32Array

        The position of the first point.

      • p2: Float32Array

        The position of the second point.

      Returns number

      The Euclidean distance between the two points in 2D space.