MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / vmax

Function vmax

source/core/StarVector.hpp:892–894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

890
891template <typename T, size_t N>
892Vector<T, N> vmax(Vector<T, N> const& a, Vector<T, N> const& b) {
893 return a.piecewiseMax(b);
894}
895
896template <typename T, size_t N>
897Vector<T, N> vclamp(Vector<T, N> const& a, Vector<T, N> const& min, Vector<T, N> const& max) {

Callers 1

maxMethod · 0.85

Calls 1

piecewiseMaxMethod · 0.80

Tested by

no test coverage detected