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

Method normal

source/core/StarRect.hpp:636–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634
635template <typename T, size_t N>
636auto Box<T, N>::normal(Coord const& coord) const -> Coord {
637 return (coord - m_min).piecewiseDivide(m_max - m_min);
638}
639
640template <typename T, size_t N>
641auto Box<T, N>::eval(Coord const& normalizedCoord) const -> Coord {

Callers 1

lineCollisionMethod · 0.45

Calls 1

piecewiseDivideMethod · 0.80

Tested by

no test coverage detected