Need math function (Collision detection of Ray line -> Ellipse)
$30-250 AUD
Completed
Posted about 9 years ago
$30-250 AUD
Paid on delivery
I need a programming function that takes in a ray (starting point, and angle direction), and ellipse (xy point, horizontal and vertical radius), and gives boolean value as to weather the ray has collided with ellipse or not. Thats it.
Function must be in Javascript. Thank you.
I have a PhD degree in computational physics and a strong background in math and Javascript. I've done many projects in math and programming, please see the reviews on my profile. It would be my pleasure to do yours. It's a small task that I can do correctly within mere hours.
I'm in USA to I'll be asleep for the next 7 hours or so. If you contact me, please be patient. Thanks.
$50 AUD in 1 day
4.8 (243 reviews)
7.3
7.3
6 freelancers are bidding on average $99 AUD for this job
Hello,
It is a matter of resolving an equation like
y = Ax + B for the ray A = tan ( alpha ) .... Alpha = direction
and
x2/a2 + y2/b2 = 1 that is an elipsis equation
The two shapes are colliding if and only if the result in the equation is not infinity.
If they are intersecting then the result are two points.
Everything else is a Javascript function.
Kind Regards,
Patrik
Hi I m very good at mathematics and just now tried solving the problem. it's Easy to implement. i have experience in java coding. Though i am new to Java script i m sure i can do that looking at some tutorial online.
Ping me if you are ok with it. then i will start coding.
awaiting your response.
thanks,
Shailesh