Skip to content

Commit

Permalink
Zephyr: Math: fix some oversights in the Vector classes
Browse files Browse the repository at this point in the history
  • Loading branch information
fleroviux committed Nov 6, 2023
1 parent e513a30 commit daca982
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zephyr/math/include/zephyr/math/vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ namespace zephyr {
* @param other the other vector
* @returm the result vector
*/
[[nodiscard]] auto Cross(Vector3 const& other) const -> Vector3 {
[[nodiscard]] auto Cross(Vector3 const& other) const -> Derived {
return {
this->data[1] * other[2] - this->data[2] * other[1],
this->data[2] * other[0] - this->data[0] * other[2],
Expand Down Expand Up @@ -312,7 +312,7 @@ namespace zephyr {
/**
* Construct a Vector4 from a Vector3 and a scalar w-component.
*/
explicit Vector4(Vec3 const& xyz, T w = NumericConstants<T>::one()) {
explicit Vector4(Vec3 const& xyz, T w = NumericConstants<T>::One()) {
this->data[0] = xyz.X();
this->data[1] = xyz.Y();
this->data[2] = xyz.Z();
Expand Down

0 comments on commit daca982

Please sign in to comment.