1
This commit is contained in:
parent
287a824201
commit
238bb8599f
@ -217,7 +217,9 @@ namespace a8
|
|||||||
|
|
||||||
time_t GetDateTimeSeconds(const char* datetime_str)
|
time_t GetDateTimeSeconds(const char* datetime_str)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
int g_time_zone = 8;
|
int g_time_zone = 8;
|
||||||
|
#endif
|
||||||
struct tm stm = {0};
|
struct tm stm = {0};
|
||||||
strptime(datetime_str, "%Y-%m-%d %H:%M:%S", &stm);
|
strptime(datetime_str, "%Y-%m-%d %H:%M:%S", &stm);
|
||||||
long t = mktime(&stm);
|
long t = mktime(&stm);
|
||||||
|
@ -92,9 +92,9 @@ namespace a8
|
|||||||
float Vec2::CalcAngle(const Vec2& b)
|
float Vec2::CalcAngle(const Vec2& b)
|
||||||
{
|
{
|
||||||
float a1 = acos(Dot(b) / Norm() / b.Norm());
|
float a1 = acos(Dot(b) / Norm() / b.Norm());
|
||||||
|
#if 0
|
||||||
float a2 = atan2(y, x);
|
float a2 = atan2(y, x);
|
||||||
float a3 = atan2(y, x) / 0.017 - 90.0f;
|
float a3 = atan2(y, x) / 0.017 - 90.0f;
|
||||||
#if 0
|
|
||||||
return a2;
|
return a2;
|
||||||
#else
|
#else
|
||||||
bool at_right_side = Vec2::RIGHT.Dot(*this) > 0.0001f;
|
bool at_right_side = Vec2::RIGHT.Dot(*this) > 0.0001f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user