1
0
forked from josh/j3ml

Implement Vector2 functions

This commit is contained in:
2024-01-26 15:55:42 -05:00
parent 08974413ae
commit 79f6b2f154
2 changed files with 53 additions and 26 deletions

View File

@@ -231,5 +231,17 @@ namespace LinearAlgebra {
return *this / scalar;
}
bool Vector2::IsFinite(const Vector2 &v) {
return v.IsFinite();
}
float Vector2::MinElement() const {
return std::min(x, y);
}
float Vector2::MaxElement() const {
return std::max(x, y);
}
}