h1z1-server
    Preparing search index...

    Function getAngleAndDistance

    • Calculates the angle and distance between two points in a 2D plane.

      Parameters

      • p1: Float32Array

        The first point.

      • p2: Float32Array

        The second point.

      Returns { angle: number; distance: number }

      An object containing the calculated angle (in degrees) and distance.