Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnewport committed Feb 10, 2019
1 parent d876009 commit 03a1641
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions MathLib/include/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ class Vector : private detail::MakeVectorBase_t<Vector<T, N>> {

// Common swizzles
constexpr auto xy() const noexcept { return this->swizzled<X, Y>(); }
constexpr auto yx() const noexcept { return this->swizzled<Y, X>(); }
constexpr auto xz() const noexcept { return this->swizzled<X, Z>(); }
constexpr auto xyz() const noexcept { return this->swizzled<X, Y, Z>(); }
constexpr auto yzx() const noexcept { return this->swizzled<Y, Z, X>(); }
Expand Down Expand Up @@ -370,11 +371,6 @@ constexpr auto get(const mathlib::Vector<T, N>& x) noexcept -> const T& {
return x[I];
}

template <std::size_t I, typename T, std::size_t N>
constexpr auto get(mathlib::Vector<T, N>& x) noexcept -> T& {
return x[I];
}

// Returns a basis vector with 1 in the specified position and 0 elsewhere,
// e.g. basisVector<float, 3>(2) == Vec3f{0.0f, 1.0f, 0.0f}
template <typename T, size_t N>
Expand Down

0 comments on commit 03a1641

Please sign in to comment.