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.

Dark GDK .NET / Math production

Author
Message
VB and GDK
14
Years of Service
User Offline
Joined: 2nd Jun 2009
Location:
Posted: 28th Nov 2009 03:41
How do you do an equation using sin and cos.
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 28th Nov 2009 05:05
It's a PITA but you have to use a lot of math functions as static members of the Math class. So

Math.Cos (...)
Math.Sin (...)

Angles are in radians, of course, just to tick us off.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
VB and GDK
14
Years of Service
User Offline
Joined: 2nd Jun 2009
Location:
Posted: 28th Nov 2009 09:47
That only works when coding inside the form and not on the class coding for the darkgdk subs. therefore it doesn't work
VB and GDK
14
Years of Service
User Offline
Joined: 2nd Jun 2009
Location:
Posted: 28th Nov 2009 10:23
I've got it. its darkgdk.core.sin(###)
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 28th Nov 2009 16:31 Edited at: 28th Nov 2009 16:32
Works fine inside a class/module as well.




EDP Map Editor[2D]

Login to post a reply

Server time is: 2024-04-18 22:45:06
Your offset time is: 2024-04-18 22:45:06