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.

DarkBASIC Professional Discussion / Programmer's trigonometry tutorial for beginners

Author
Message
Diggsey
17
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 22nd Jan 2008 22:26
At Slooper's suggestion, I wrote this trigonometry tutorial for all those programmers who wish they knew how to use Sin and Cos and the rest, but have either forgotten how, or just never got around to learning It comes with code examples in both DBP and C++.

It's available as a .PDF file, or a .DOC file.

Enjoy

PS
If you find the theory section boring, you might find the practical use section more interesting.

Slooper
21
Years of Service
User Offline
Joined: 13th Feb 2003
Location: Sweden
Posted: 22nd Jan 2008 23:38
Very nice Diggsey very nice, you should a new dbp book


You never fail, only make mistakes.
Mugen Wizardry
User Banned
Posted: 23rd Jan 2008 01:44
@Diggsey: Honestly, Slooper's got a point =)

~M.W~
tiresius
21
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 23rd Jan 2008 04:47
This is good. I pretty much knew it all, but searching the web for math pages to refresh my memory was getting tiresome. Now I have a printout next to my desk. Nice!

I'm not a real programmer but I play one with DBPro!
Diggsey
17
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Alquerian
18
Years of Service
User Offline
Joined: 29th Mar 2006
Location: Reno Nevada
Posted: 24th Jan 2008 17:19
I was at the bookstore yesterday browsing through the little study guides which cost $5 each, and they weren't nearly as valuable as this. I am positive this will come in handy, and I (like Tiresius) have it printed out and sitting on my desk.

I will try to get through all of it when I get the opportunity. In the mean time, Thank you for doing this. I am positive others will find it useful as well.

Support the indie!
Sumo
20
Years of Service
User Offline
Joined: 29th Sep 2003
Location:
Posted: 24th Jan 2008 18:41
Thanks Diggsey

this is exactly what I was looking for

If animals weren't meant to be eaten
Why are they made out of meat?
hyrichter
20
Years of Service
User Offline
Joined: 15th Feb 2004
Location: Arizona
Posted: 25th Jan 2008 02:31
That's very nicely written Diggsey. This is definitely handy to keep around as a quick reference. Thanks for taking the time to write it.

CodeSurge
Version 1.0 finally released! Code your DBP projects in style. (And save the kittens!)
david w
18
Years of Service
User Offline
Joined: 18th Dec 2005
Location: U.S.A. Michigan
Posted: 25th Jan 2008 12:14
Thank you.
Diggsey
17
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 25th Jan 2008 19:07
Thanks for the feedback, it was no trouble writing it

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 25th Jan 2008 19:19
Want me to put this in the Newcomer's Corner tutorials thread? I think I will do just that.

Your signature has been erased by a mod
Diggsey
17
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 26th Jan 2008 14:58
Nice examples of showing code in both DBP and C++. May help some with migrating languages


SpyDaniel
18
Years of Service
User Offline
Joined: 4th Feb 2006
Location: United Kingdom
Posted: 28th Jan 2008 11:51
I'm lost at what θ means. Can anyone help me there?

nz0
AGK Developer
16
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 28th Jan 2008 14:11
This is great thanks!
Just answered a question for me as well!

My Robotron remake - http://norrish.force9.co.uk/robotron
My I,Robot remake WIP - http://norrish.force9.co.uk/irobot
Diggsey
17
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 28th Jan 2008 17:50
@Higgins
That is the symbol for theta. I think I put it in brackets immediately after

gbark
18
Years of Service
User Offline
Joined: 14th Oct 2005
Location: US - Virginia
Posted: 28th Jan 2008 19:30 Edited at: 28th Jan 2008 19:31
Yeah, θ means theta, which is just what is usually used when dealing with variable angles in radians, rather than using 'x'.

Nice tutorial Diggsey, simple and to the point.
Diggsey
17
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 28th Jan 2008 22:50
@gbark
I usually just use the greek letters for angles, and the normal letters for lengths and points and things

Thanks everybody for the comments

EdzUp
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: UK
Posted: 1st Feb 2008 14:27
Brilliant stuff ive always wanted to learn trig now I can have a look hopefully something will sink into the ol' noodle.

-EdzUp
EdzUp
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: UK
Posted: 3rd Feb 2008 23:03
Anyone have a plot point in 3d world function thats the only bit I dont understand as yet

Ive always been interested in 3d math but wanted to know how to plot a point in 3d space and then make a polygonal model in 3d software mode sort of thing

-EdzUp

Login to post a reply

Server time is: 2024-04-20 13:45:04
Your offset time is: 2024-04-20 13:45:04