Files
Cesarus85--ringfall-mjolnir-vr/source/math/integer_math.h
T
2025-11-28 14:02:16 +00:00

38 lines
527 B
C

/*
INTEGER_MATH.H
*/
#ifndef __INTEGER_MATH_H
#define __INTEGER_MATH_H
#pragma once
/* ---------- constants */
/* ---------- macros */
/* ---------- structures */
union point2d
{
short n[2];
struct { short x, y; };
};
typedef union point2d point2d;
union rectangle2d
{
short v[4];
struct { short y0, x0, y1, x1; };
};
typedef union rectangle2d rectangle2d;
typedef unsigned long pixel32;
/* ---------- prototypes/INTEGER_MATH.C */
/* ---------- globals */
/* ---------- public code */
#endif // __INTEGER_MATH_H