MCPcopy Create free account
hub / github.com/MapServer/MapServer / get

Method get

renderers/agg/src/agg_bspline.cpp:214–231  ·  view source on GitHub ↗

------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

212
213 //------------------------------------------------------------------------
214 double bspline::get(double x) const
215 {
216 if(m_num > 2)
217 {
218 int i;
219
220 // Extrapolation on the left
221 if(x < m_x[0]) return extrapolation_left(x);
222
223 // Extrapolation on the right
224 if(x >= m_x[m_num - 1]) return extrapolation_right(x);
225
226 // Interpolation
227 bsearch(m_num, m_x, x, &i);
228 return interpolation(x, i);
229 }
230 return 0.0;
231 }
232
233
234 //------------------------------------------------------------------------

Callers 15

getPointFromLineMethod · 0.80
getLineFromShapeMethod · 0.80
testUseNonExistentKeyMethod · 0.80
testGetValueMethod · 0.80
testClearMethod · 0.80
testRemoveItemMethod · 0.80
draw_map_wfsFunction · 0.80
draw_map_wmsFunction · 0.80
testSetPointWKTMethod · 0.80
shpdump.pyFile · 0.80

Calls

no outgoing calls

Tested by 11

getPointFromLineMethod · 0.64
getLineFromShapeMethod · 0.64
testUseNonExistentKeyMethod · 0.64
testGetValueMethod · 0.64
testClearMethod · 0.64
testRemoveItemMethod · 0.64
draw_map_wfsFunction · 0.64
draw_map_wmsFunction · 0.64
testSetPointWKTMethod · 0.64