h1z1-server
    Preparing search index...

    Function getDistance

    • Calculates the Euclidean distance between two 3D points.

      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.