7#ifndef MFRAME_EEC25F8B_68C8_45FC_A820_3773DB4D7EF7
8#define MFRAME_EEC25F8B_68C8_45FC_A820_3773DB4D7EF7
15#include "./../lang/Object.h"
54 virtual ~Maths(
void)
override;
90 static double acos(
double x);
98 static double asin(
double x);
115 static double atan2(
double y,
double x);
123 static double cos(
double x);
139 static double sin(
double x);
165 static double frexp(
double x,
int *exponent);
174 static double ldexp(
double x,
int exponent);
182 static double log(
double x);
199 static double modf(
double x,
double *integer);
208 static double pow(
double x,
double y);
257 static double fmod(
double x,
double y);
271 static inline int abs(
int a) {
290 static inline long abs(
long a) {
309 static inline float abs(
float a) {
323 if (value & 0x00000003)
324 return (value & 0xFFFFFFF4) + 4;
336 if (value & 0x00000007)
337 return (value & 0xFFFFFFF8) + 8;
349 static inline int ceil(
int dividend,
int divisor) {
350 return (dividend + (divisor - 1)) / divisor;
360 static inline uint32
ceil(uint32 dividend, uint32 divisor) {
361 return (dividend + (divisor - 1)) / divisor;
371 static inline uint32
min(uint32 a, uint32 b) {
372 return ((a) < (b) ? (a) : (b));
382 static inline int min(
int a,
int b) {
383 return ((a) < (b) ? (a) : (b));
393 static inline uint32
max(uint32 a, uint32 b) {
394 return ((a) > (b) ? (a) : (b));
static double log10(double x)
返回x的常用對數(以10為底)。
static double log(double x)
返回自然對數的x(基準-E對數)
static double atan(double x)
返回x的反正切值,以弧度為單位。
static double sqrt(double x)
返回x的平方根。
static uint32 align32bit(uint32 value)
Definition Maths.h:322
static uint32 align64bit(uint32 value)
Definition Maths.h:335
static float fabsf(float x)
返回x的絕對值
static double frexp(double x, int *exponent)
The returned value is the mantissa and the integer yiibaied to by exponent is the exponent....
static uint32 max(uint32 a, uint32 b)
Definition Maths.h:393
static int min(int a, int b)
Definition Maths.h:382
static double modf(double x, double *integer)
返回的值是小數成分(小數點後的部分),並設置整數的整數部分。
static double ceil(double x)
返回大於或等於x的最小整數值。
static double sinh(double x)
返回x的雙曲正弦。
static int ceil(int dividend, int divisor)
Definition Maths.h:349
static uint32 ceil(uint32 dividend, uint32 divisor)
Definition Maths.h:360
static double cosh(double x)
返回x的雙曲餘弦。
static double acos(double x)
返回x的反餘弦弧度。
static double pow(double x, double y)
返回x的y次方。
static double floor(double x)
返回的最大整數值小於或等於x。
static float abs(float a)
Returns the absolute value of a float value. If the argument is not negative, the argument is returne...
Definition Maths.h:309
static long abs(long a)
Returns the absolute value of a long value. If the argument is not negative, the argument is returned...
Definition Maths.h:290
static double fmod(double x, double y)
返回的x除以y的餘數。
static double atan2(double y, double x)
返回y/x的以弧度為單位的反正切值,根據這兩個值,以確定正確的象限上的標誌。
static double ldexp(double x, int exponent)
Returns x multiplied by 2 raised to the power of exponent.
static double fabs(double x)
返回x的絕對值
static uint32 min(uint32 a, uint32 b)
Definition Maths.h:371
static double tanh(double x)
返回x的雙曲正切。
static double asin(double x)
返回x的正弦弧線弧度。
static int abs(int a)
Returns the absolute value of an int value. If the argument is not negative, the argument is returned...
Definition Maths.h:271
static double sin(double x)
返回一個弧度角x的正弦。
static double cos(double x)
返回的弧度角x的餘弦值。
Definition Appendable.h:23