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

Method piecewiseMin

source/core/StarVector.hpp:386–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384
385template <typename T, size_t N>
386Vector<T, N> Vector<T, N>::piecewiseMin(Vector const& v2) const {
387 Vector r;
388 for (size_t i = 0; i < N; ++i)
389 r[i] = Star::min((*this)[i], v2[i]);
390 return r;
391}
392
393template <typename T, size_t N>
394Vector<T, N> Vector<T, N>::piecewiseMax(Vector const& v2) const {

Callers 6

renderMethod · 0.80
vminFunction · 0.80
combineMethod · 0.80
limitMethod · 0.80
copyIntoMethod · 0.80
drawIntoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected