Skip to content Skip to sidebar Skip to footer
Showing posts with the label Trigonometry

Rotate Rectangle Around A Point

How would I get 4 points rotated a certain degrees around a pointer to form a rectangle? I can rota… Read more Rotate Rectangle Around A Point

Javascript Floating Point Precision Issue

I am encountering a floating point precision issue, does anybody know why this happens? Why is it t… Read more Javascript Floating Point Precision Issue

Moving A Triangular Ship In A Canvas Game In Plain Js

I am trying to move a triangle in the direction which the triangle is rotated by. When I press the … Read more Moving A Triangular Ship In A Canvas Game In Plain Js