| 23 | // Extension classes for XMFLOAT* classes |
| 24 | |
| 25 | struct Float2 |
| 26 | { |
| 27 | float x, y; |
| 28 | |
| 29 | Float2(); |
| 30 | Float2(float x); |
| 31 | Float2(float x, float y); |
| 32 | explicit Float2(const DirectX::XMFLOAT2& xy); |
| 33 | explicit Float2(DirectX::FXMVECTOR xy); |
| 34 | |
| 35 | Float2& operator+=(const Float2& other); |
| 36 | Float2 operator+(const Float2& other) const; |
| 37 | |
| 38 | Float2& operator-=(const Float2& other); |
| 39 | Float2 operator-(const Float2& other) const; |
| 40 | |
| 41 | Float2& operator*=(const Float2& other); |
| 42 | Float2 operator*(const Float2& other) const; |
| 43 | |
| 44 | Float2& operator*=(float s); |
| 45 | Float2 operator*(float s) const; |
| 46 | |
| 47 | Float2& operator/=(const Float2& other); |
| 48 | Float2 operator/(const Float2& other) const; |
| 49 | |
| 50 | Float2& operator/=(float s); |
| 51 | Float2 operator/(float s) const; |
| 52 | |
| 53 | bool operator==(const Float2& other) const; |
| 54 | bool operator!=(const Float2& other) const; |
| 55 | |
| 56 | Float2 operator-() const; |
| 57 | |
| 58 | DirectX::XMVECTOR ToSIMD() const; |
| 59 | |
| 60 | static Float2 Clamp(const Float2& val, const Float2& min, const Float2& max); |
| 61 | static float Length(const Float2& val); |
| 62 | }; |
| 63 | |
| 64 | struct Float3 |
| 65 | { |
no outgoing calls
no test coverage detected