Subversion Repositories DIN Is Noise

Rev

Rev 2097 | Rev 2184 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2097 Rev 2180
Line 32... Line 32...
32
32
33
int hit_t::operator()(int) const { // hit an existing curve item?
33
int hit_t::operator()(int) const { // hit an existing curve item?
34
  return (crv_id != -1 && (id > -1) && (id < crv->num_vertices));
34
  return (crv_id != -1 && (id > -1) && (id < crv->num_vertices));
35
}
35
}
36
36
37
const point<float>& hit_t::get () {
37
pinpoint<float>& hit_t::get () {
38
  points_array* ptr[3] = {&crv->vertices, &crv->left_tangents, &crv->right_tangents};
38
  points_array* ptr[3] = {&crv->vertices, &crv->left_tangents, &crv->right_tangents};
39
  points_array& arr = *ptr[what-1];
39
  points_array& arr = *ptr[what-1];
40
  return arr[id];
40
  return arr[id];
41
}
41
}
42
42