I need a formula that returns normalize numbers for xy point - similar to actionscript's normalize() function.
I'm brand new to this form, so if it the answer is simple, please be adviced that I was dropped on my head when I was very young. However, if it's more complex then I'm Matt Damon and there's a job opening for a janitor at my school.
Reply in Javascript - Thank you.
Code:
var normal = {x:pt1.x-pt2.x,y:pt1.y-pt2.y};
normal = Normalize(1) // this I do not know how to implement in javascript.
Reply in Javascript - Thank you.
Comment