08-28-2023, 12:41 PM
(08-28-2023, 01:54 AM)bplus Wrote: Gotta say I am impressed by math that uses both sin and cos for x and y calcs.one thing that's worth commiting to memory, bplus, is the rotation matrix formula for rotating any point (x,y) to a new point (p, q) across it's axis by angle (a)
p = x*cos(a) - y*sin(a)
q = x*sin(a) + y*cos(a)