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

Method evaluate

source/game/StarStoredFunctions.cpp:40–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40double StoredFunction::evaluate(double value) const {
41 return m_function.interpolate(value);
42}
43
44StoredFunction::SearchResult StoredFunction::search(double targetValue, double valueTolerance) const {
45 double minIndex = m_function.index(0);

Callers

nothing calls this directly

Calls 1

interpolateMethod · 0.45

Tested by

no test coverage detected