{"action":"opened","issue":{"url":"https://api.github.com/repos/retuxx/tinyspline/issues/32","repository_url":"https://api.github.com/repos/retuxx/tinyspline","labels_url":"https://api.github.com/repos/retuxx/tinyspline/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/retuxx/tinyspline/issues/32/comments","events_url":"https://api.github.com/repos/retuxx/tinyspline/issues/32/events","html_url":"https://github.com/retuxx/tinyspline/issues/32","id":134694524,"number":32,"title":"Interpolation not passing through supplied points?","user":{"login":"voelkerp","id":17323542,"avatar_url":"https://avatars.githubusercontent.com/u/17323542?v=3","gravatar_id":"","url":"https://api.github.com/users/voelkerp","html_url":"https://github.com/voelkerp","followers_url":"https://api.github.com/users/voelkerp/followers","following_url":"https://api.github.com/users/voelkerp/following{/other_user}","gists_url":"https://api.github.com/users/voelkerp/gists{/gist_id}","starred_url":"https://api.github.com/users/voelkerp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voelkerp/subscriptions","organizations_url":"https://api.github.com/users/voelkerp/orgs","repos_url":"https://api.github.com/users/voelkerp/repos","events_url":"https://api.github.com/users/voelkerp/events{/privacy}","received_events_url":"https://api.github.com/users/voelkerp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-18T20:58:21Z","updated_at":"2016-02-18T20:58:21Z","closed_at":null,"body":"I'm trying to use tinyspline for the first time to do some cubic spline interpolation.  Very excited to use your library!  Please help me understand what I'm doing wrong.\r\n\r\nInput 2D data points are:\r\n{-1, 0.5}, {0, 0}, {3, 3}\r\n\r\nCalling:\r\n    ts_bspline_interpolate(points, 3, 2, &spline);\r\n\r\nWhen I evaluate knots from 0.0 to 1.0 with ts_bspline_evaluate() it appears that the interpolated values pass through the first and last point but don't reach the second point at {0, 0}.  It should, shouldn't it?\r\n\r\nKnot: 0.000 Result: -1.000 0.500\r\nKnot: 0.050 Result: -0.875 0.438\r\nKnot: 0.100 Result: -0.748 0.380\r\nKnot: 0.150 Result: -0.618 0.329\r\nKnot: 0.200 Result: -0.484 0.290\r\nKnot: 0.250 Result: -0.344 0.266\r\nKnot: 0.300 Result: -0.196 0.260\r\nKnot: 0.350 Result: -0.039 0.277\r\nKnot: 0.400 Result: 0.128 0.320\r\nKnot: 0.450 Result: 0.307 0.393\r\nKnot: 0.500 Result: 0.500 0.500\r\nKnot: 0.550 Result: 0.707 0.643\r\nKnot: 0.600 Result: 0.928 0.820\r\nKnot: 0.650 Result: 1.161 1.027\r\nKnot: 0.700 Result: 1.404 1.260\r\nKnot: 0.750 Result: 1.656 1.516\r\nKnot: 0.800 Result: 1.916 1.790\r\nKnot: 0.850 Result: 2.182 2.079\r\nKnot: 0.900 Result: 2.452 2.380\r\nKnot: 0.950 Result: 2.725 2.688\r\nKnot: 1.000 Result: 3.000 3.000\r\n\r\nWill supply any additional information as needed.\r\n"}}