Skip to content

Commit

Permalink
style: 调整 ege.h 部分代码排版
Browse files Browse the repository at this point in the history
  • Loading branch information
yixy-only committed Mar 7, 2024
1 parent c13ced3 commit f281ad1
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/ege.h
Original file line number Diff line number Diff line change
Expand Up @@ -741,13 +741,13 @@ struct MOUSEMSG

struct msg_createwindow
{
HANDLE hEvent;
HWND hwnd;
HANDLE hEvent;
HWND hwnd;
LPCWSTR classname;
DWORD style;
DWORD exstyle;
size_t id;
LPVOID param;
DWORD style;
DWORD exstyle;
size_t id;
LPVOID param;
};


Expand Down Expand Up @@ -808,13 +808,13 @@ struct VECTOR3D

VECTOR3D& operator+=(const VECTOR3D& _fp);
VECTOR3D& operator-=(const VECTOR3D& _fp);
VECTOR3D operator+(const VECTOR3D& _fp) const;
VECTOR3D operator-(const VECTOR3D& _fp) const;
VECTOR3D& operator*=(float f); // 缩放
VECTOR3D operator*(float f) const; // 缩放
float operator*(const VECTOR3D& _fp) const; // 点乘
VECTOR3D operator&(const VECTOR3D& _fp) const; // 叉乘
VECTOR3D& operator&=(const VECTOR3D& _fp); // 叉乘
VECTOR3D operator+ (const VECTOR3D& _fp) const;
VECTOR3D operator- (const VECTOR3D& _fp) const;
VECTOR3D& operator*=(float f); // 缩放
VECTOR3D operator* (float f) const; // 缩放
float operator* (const VECTOR3D& _fp) const; // 点乘
VECTOR3D operator& (const VECTOR3D& _fp) const; // 叉乘
VECTOR3D& operator&=(const VECTOR3D& _fp); // 叉乘
float GetModule() const;

float GetSqrModule() const { return float(x * x + y * y + z * z); }
Expand Down

0 comments on commit f281ad1

Please sign in to comment.