This commit is contained in:
aozhiwei 2019-07-13 09:26:08 +08:00
parent 287a824201
commit 238bb8599f
2 changed files with 3 additions and 1 deletions

View File

@ -217,7 +217,9 @@ namespace a8
time_t GetDateTimeSeconds(const char* datetime_str)
{
#if 0
int g_time_zone = 8;
#endif
struct tm stm = {0};
strptime(datetime_str, "%Y-%m-%d %H:%M:%S", &stm);
long t = mktime(&stm);

View File

@ -92,9 +92,9 @@ namespace a8
float Vec2::CalcAngle(const Vec2& b)
{
float a1 = acos(Dot(b) / Norm() / b.Norm());
#if 0
float a2 = atan2(y, x);
float a3 = atan2(y, x) / 0.017 - 90.0f;
#if 0
return a2;
#else
bool at_right_side = Vec2::RIGHT.Dot(*this) > 0.0001f;