mirror of
https://github.com/pret/pmd-sky.git
synced 2026-04-21 17:17:20 -05:00
18 lines
485 B
C
18 lines
485 B
C
#ifndef PMDSKY_MATH_H
|
|
#define PMDSKY_MATH_H
|
|
|
|
#define INFINITY 999
|
|
#define INFINITY_2 999999
|
|
#define INFINITY_3 10000
|
|
|
|
#define F248LessThanFloat(x, y) (x < (int)(y * 0x100))
|
|
#define F248LessThanInt(x, y) (x < 0x100 * y)
|
|
#define FloatToF248(x) (x * 0x100)
|
|
#define FloatLessThanF248(x, y) ((int)(x * 0x100) < y)
|
|
#define F248LessThan(x, y) (x < y)
|
|
#define F248GreaterThan(x, y) (x > y)
|
|
#define F248Equal(x, y) (x == y)
|
|
#define F248EqualsInt(x, y) (x == 0x100 * y)
|
|
|
|
#endif // PMDSKY_MATH_H
|