mirror of
https://github.com/celisej567/mcpe.git
synced 2026-01-03 05:49:04 +03:00
42 lines
1.0 KiB
C++
42 lines
1.0 KiB
C++
/********************************************************************
|
|
Minecraft: Pocket Edition - Decompilation Project
|
|
Copyright (C) 2023 iProgramInCpp
|
|
|
|
The following code is licensed under the BSD 1 clause license.
|
|
SPDX-License-Identifier: BSD-1-Clause
|
|
********************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#include <cmath>
|
|
|
|
#include "Random.hpp"
|
|
|
|
class Mth
|
|
{
|
|
static Random g_Random;
|
|
|
|
public:
|
|
static float Max(float, float);
|
|
static int Max(int, int);
|
|
static float Min(float, float);
|
|
static int Min(int, int);
|
|
static float abs(float);
|
|
static int abs(int);
|
|
static float absMax(float, float);
|
|
static float absMaxSigned(float, float);
|
|
static float atan(float);
|
|
static float atan2(float y, float x);
|
|
static float cos(float);
|
|
static int floor(float);
|
|
static void initMth();
|
|
static int intFloorDiv(int, int);
|
|
static float invSqrt(float);
|
|
static int random(int);
|
|
static float random(void);
|
|
static float sin(float);
|
|
static float sqrt(float);
|
|
static unsigned fastRandom();
|
|
};
|
|
|