diff options
| author | 2018-08-07 21:33:48 -0400 | |
|---|---|---|
| committer | 2018-08-07 21:33:48 -0400 | |
| commit | 766c1a2d501966d4e6944cd16b9cee9f35db7a89 (patch) | |
| tree | 30338cf69d6b024fb2562406994c70e364f7c542 /src/common | |
| parent | vector_math: Make functions constexpr where applicable (diff) | |
| download | yuzu-766c1a2d501966d4e6944cd16b9cee9f35db7a89.tar.gz yuzu-766c1a2d501966d4e6944cd16b9cee9f35db7a89.tar.xz yuzu-766c1a2d501966d4e6944cd16b9cee9f35db7a89.zip | |
vector_math: Remove unimplemented function prototypes
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/vector_math.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/common/vector_math.h b/src/common/vector_math.h index 7e5af651a..5c94fcda3 100644 --- a/src/common/vector_math.h +++ b/src/common/vector_math.h | |||
| @@ -113,10 +113,6 @@ public: | |||
| 113 | 113 | ||
| 114 | // Only implemented for T=float | 114 | // Only implemented for T=float |
| 115 | float Length() const; | 115 | float Length() const; |
| 116 | void SetLength(const float l); | ||
| 117 | Vec2 WithLength(const float l) const; | ||
| 118 | float Distance2To(Vec2& other); | ||
| 119 | Vec2 Normalized() const; | ||
| 120 | float Normalize(); // returns the previous length, which is often useful | 116 | float Normalize(); // returns the previous length, which is often useful |
| 121 | 117 | ||
| 122 | constexpr T& operator[](std::size_t i) { | 118 | constexpr T& operator[](std::size_t i) { |
| @@ -204,10 +200,6 @@ public: | |||
| 204 | return Vec3<T2>(static_cast<T2>(x), static_cast<T2>(y), static_cast<T2>(z)); | 200 | return Vec3<T2>(static_cast<T2>(x), static_cast<T2>(y), static_cast<T2>(z)); |
| 205 | } | 201 | } |
| 206 | 202 | ||
| 207 | // Only implemented for T=int and T=float | ||
| 208 | static Vec3 FromRGB(unsigned int rgb); | ||
| 209 | unsigned int ToRGB() const; // alpha bits set to zero | ||
| 210 | |||
| 211 | static constexpr Vec3 AssignToAll(const T& f) { | 203 | static constexpr Vec3 AssignToAll(const T& f) { |
| 212 | return Vec3(f, f, f); | 204 | return Vec3(f, f, f); |
| 213 | } | 205 | } |
| @@ -270,9 +262,6 @@ public: | |||
| 270 | 262 | ||
| 271 | // Only implemented for T=float | 263 | // Only implemented for T=float |
| 272 | float Length() const; | 264 | float Length() const; |
| 273 | void SetLength(const float l); | ||
| 274 | Vec3 WithLength(const float l) const; | ||
| 275 | float Distance2To(Vec3& other); | ||
| 276 | Vec3 Normalized() const; | 265 | Vec3 Normalized() const; |
| 277 | float Normalize(); // returns the previous length, which is often useful | 266 | float Normalize(); // returns the previous length, which is often useful |
| 278 | 267 | ||
| @@ -418,10 +407,6 @@ public: | |||
| 418 | static_cast<T2>(w)); | 407 | static_cast<T2>(w)); |
| 419 | } | 408 | } |
| 420 | 409 | ||
| 421 | // Only implemented for T=int and T=float | ||
| 422 | static Vec4 FromRGBA(unsigned int rgba); | ||
| 423 | unsigned int ToRGBA() const; | ||
| 424 | |||
| 425 | static constexpr Vec4 AssignToAll(const T& f) { | 410 | static constexpr Vec4 AssignToAll(const T& f) { |
| 426 | return Vec4(f, f, f, f); | 411 | return Vec4(f, f, f, f); |
| 427 | } | 412 | } |
| @@ -485,14 +470,6 @@ public: | |||
| 485 | return x * x + y * y + z * z + w * w; | 470 | return x * x + y * y + z * z + w * w; |
| 486 | } | 471 | } |
| 487 | 472 | ||
| 488 | // Only implemented for T=float | ||
| 489 | float Length() const; | ||
| 490 | void SetLength(const float l); | ||
| 491 | Vec4 WithLength(const float l) const; | ||
| 492 | float Distance2To(Vec4& other); | ||
| 493 | Vec4 Normalized() const; | ||
| 494 | float Normalize(); // returns the previous length, which is often useful | ||
| 495 | |||
| 496 | constexpr T& operator[](std::size_t i) { | 473 | constexpr T& operator[](std::size_t i) { |
| 497 | return *((&x) + i); | 474 | return *((&x) + i); |
| 498 | } | 475 | } |