note
FoxtrotUniform
<p><strike>Well, the quick-and-dirty way to do it is to scale your x component by <i>cos(t)</i> and your y component by <i>sin(t)</i>.</strike> You might be happier with a matrix-based solution in the long run, though.</p>
<p><b>Edit:</b> The math above is, of course, totally bogus. I plead momentary imbecility. [johnnywang] has the [id://400051|correct solution]. D'oh!</p>
<p>What kind of program are you writing, btw?</p>
<div class="pmsig"><div class="pmsig-95145">
<p><tt>-- </tt><br>
Yours in pedantry,<tt><br>
<font color="#330000">F</font>
<font color="#550000">o</font>
<font color="#770000">x</font>
<font color="#990000">t</font>
<font color="#bb0000">r</font>
<font color="#dd0000">o</font>
<font color="#ff0000">t</font>
<font color="#ff0000">U</font>
<font color="#dd0000">n</font>
<font color="#bb0000">i</font>
<font color="#990000">f</font>
<font color="#770000">o</font>
<font color="#550000">r</font>
<font color="#330000">m</font>
</tt><br>
[id://399880|"Lines of code don't matter as long as I'm not writing them."] -- [merlyn]</p>
</div></div>
399996
400007