mirror of
https://github.com/zeldaret/ss
synced 2026-05-26 23:47:22 -04:00
18 lines
339 B
C
18 lines
339 B
C
#ifndef D_ANGLE_H
|
|
#define D_ANGLE_H
|
|
|
|
#include "m/m_angle.h"
|
|
#include "m/m_vec.h"
|
|
|
|
inline void setRotXY(mAng3_c &rot, s32 x, s32 y) {
|
|
rot.x.mVal = x;
|
|
rot.y.mVal = y;
|
|
rot.z.mVal = 0;
|
|
}
|
|
|
|
inline void setRotXYVec(mAng3_c &rot, const mVec3_c &direction) {
|
|
setRotXY(rot, -direction.atan2sY_XZ(), direction.atan2sX_Z());
|
|
}
|
|
|
|
#endif
|