h1z1-server
    Preparing search index...

    Function getRectangleCorners

    • Calculates the coordinates of the corners of a rectangle given the center point, angle, offset, and euler rotation.

      Parameters

      • centerPoint: Float32Array

        The center point of the rectangle.

      • angle: number

        The angle of the rectangle.

      • offset: number

        The offset of the rectangle.

      • eulerRot: number

        The euler rotation of the rectangle.

      Returns SquareBounds

      An array containing the coordinates of the rectangle's corners.