ReC98/th03/math/vector1.cpp

14 lines
235 B
C++

#pragma option -zCSHARED -3
extern "C" {
#include "platform.h"
#include "pc98.h"
#include "th03/math/vector.hpp"
int vector1_at(int origin, int length, int angle)
{
return (((static_cast<long>(length) * angle) >> 8) + origin);
}
}