Rev 2097 | Rev 2172 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2097 | Rev 2108 | ||
---|---|---|---|
Line 82... | Line 82... | ||
82 | void rose_milker::render () { |
82 | void rose_milker::render () { |
83 | 83 | ||
84 | funktion& f_sin = *scr.pf_sin; |
84 | funktion& f_sin = *scr.pf_sin; |
85 | funktion& f_cos = *scr.pf_cos; |
85 | funktion& f_cos = *scr.pf_cos; |
86 | 86 | ||
87 | N = sp.N.f_value; |
87 | N = sp.N.value; |
88 | D = sp.D.f_value; |
88 | D = sp.D.value; |
- | 89 | ||
89 | if (D == 0) return; |
90 | if (D == 0) return; |
90 | K = N * 1. / D; |
91 | K = N * 1. / D; |
91 | 92 | ||
92 | num_points = sp.num_points.f_value; |
93 | num_points = sp.num_points.value; |
93 | if (num_points == 0) return; |
94 | if (num_points == 0) return; |
94 | 95 | ||
95 | angle.start = sp.angle.start.f_value; |
96 | angle.start = sp.angle.start.value; |
96 | angle.end = sp.angle.end.f_value; |
97 | angle.end = sp.angle.end.value; |
- | 98 | ||
97 | float dtheta = (angle.end - angle.start) / num_points * PI_BY_180; |
99 | float dtheta = (angle.end - angle.start) / num_points * PI_BY_180; |
98 | float theta = angle.start * PI_BY_180; |
100 | float theta = angle.start * PI_BY_180; |
99 | float theta_k = theta; |
101 | float theta_k = theta; |
100 | int j = num_points + 1; |
102 | int j = num_points + 1; |
101 | points.resize (j); |
103 | points.resize (j); |