Lines Matching refs:rate
70 var rate = h / w;
72 ctx.scale(1.0, rate); // 縦変形
73 ctx.arc(x0+r, y0/rate+r, r, 0, 2 * Math.PI, false);
93 var rate = h / w;
95 ctx.scale(1.0, rate); // 縦変形
96 ctx.arc(x0+r, y0/rate+r, r, 0, 2 * Math.PI, false);
132 var rate = b / Math.sqrt(ax * ax + ay * ay);
133 ax *= rate;
134 ay *= rate;
151 var rate = b / Math.sqrt(ax * ax + ay * ay);
152 ax *= rate;
153 ay *= rate;