Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] arrow function

Author
Message
Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 8th Aug 2010 10:50 Edited at: 8th Aug 2010 10:50
I MA3d a function to draw arrows.

if you're wondering what that weird code is for the arrow drawing... well... I didn't want to use trig (bored n' I like math). It actually isn't as complicated as it looks. These two vectors

are unit vectors at 45 degree angles to vector B, so we define vector B to be <fromx-tox,fromy-toy>, and then normalize it. Thats all that that gibberish is doing.


Is't life, I ask, is't even prudence, to bore thyself and bore thy students?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 9th Aug 2010 20:46
Neat, Brilliant, an equations that look like a nightmare made simple when it put into code.

Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2024-11-21 21:14:57
Your offset time is: 2024-11-21 21:14:57