mirror of
https://github.com/thug1src/thug.git
synced 2025-01-21 21:33:46 +00:00
27 lines
433 B
C++
27 lines
433 B
C++
///////////////////////////////////////////////////////////////////////////////////////
|
|
// rot90.h
|
|
//
|
|
|
|
#ifndef __CORE_ROT90_H
|
|
#define __CORE_ROT90_H
|
|
|
|
namespace Mth
|
|
{
|
|
|
|
// Rotation values for 90 degree increment Rotation (uses no multiplication)
|
|
enum ERot90 {
|
|
ROT_0 = 0,
|
|
ROT_90,
|
|
ROT_180,
|
|
ROT_270,
|
|
NUM_ROTS
|
|
};
|
|
|
|
// Integer rotate
|
|
void RotateY90( ERot90 angle, int32& x, int32& y, int32& z );
|
|
|
|
}
|
|
|
|
#endif
|
|
|