Rev 2097 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2097 | Rev 2107 | ||
---|---|---|---|
Line 75... | Line 75... | ||
75 | 75 | ||
76 | }
|
76 | }
|
77 | 77 | ||
78 | void lissajous::render () { |
78 | void lissajous::render () { |
79 | 79 | ||
80 | num_points = sp.num_points.f_value; |
80 | num_points = sp.num_points.value; |
81 | if (num_points == 0) return; |
81 | if (num_points == 0) return; |
82 | 82 | ||
83 | speed.x = sp.speed.x.f_value; |
83 | speed.x = sp.speed.x.value; |
84 | speed.y = sp.speed.y.f_value; |
84 | speed.y = sp.speed.y.value; |
85 | angle.start = sp.angle.start.f_value; |
85 | angle.start = sp.angle.start.value; |
86 | angle.end = sp.angle.end.f_value; |
86 | angle.end = sp.angle.end.value; |
87 | 87 | ||
88 | theta = angle.start * PI_BY_180; |
88 | theta = angle.start * PI_BY_180; |
89 | dtheta = (angle.end - angle.start) / num_points * PI_BY_180; |
89 | dtheta = (angle.end - angle.start) / num_points * PI_BY_180; |
90 | 90 | ||
91 | int j = num_points + 1; |
91 | int j = num_points + 1; |