coastline 0.0.4
Loading...
Searching...
No Matches
guint.h File Reference

The N64 tables and constants of the trigonometric routines. More...

#include <ultra64.h>
Include dependency graph for guint.h:

Go to the source code of this file.

Macros

#define MIN(a, b)
 The lesser of a and b, each evaluated twice.
#define FTOFRAC8(x)
 Clamp a direction component to a signed byte, where 1.0 is 128.
#define ROUND(d)
 Round d half away from zero to an int.

Detailed Description

The N64 tables and constants of the trigonometric routines.

Macro Definition Documentation

◆ MIN

#define MIN ( a,
b )
Value:
((a) < (b) ? (a) : (b))

The lesser of a and b, each evaluated twice.

◆ FTOFRAC8

#define FTOFRAC8 ( x)
Value:
((int)MIN(((x) * (128.0)), 127.0) & 0xff)
#define MIN(a, b)
The lesser of a and b, each evaluated twice.
Definition guint.h:17

Clamp a direction component to a signed byte, where 1.0 is 128.

◆ ROUND

#define ROUND ( d)
Value:
(int)(((d) >= 0.0) ? ((d) + 0.5) : ((d) - 0.5))

Round d half away from zero to an int.