Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Help Archive
Threaded Mode
Degrees and radian...
¤Adas¤
Gangsta
Posts: 549
Threads: 20
Joined: Jan 2010
Reputation:
0
#1
16.01.2010, 14:35
Please, how can I convert degrees to radian and radian to degrees? Thanks..
Find
Reply
¤Adas¤
Gangsta
Posts: 549
Threads: 20
Joined: Jan 2010
Reputation:
0
#2
16.01.2010, 15:07
No one know? :O
Find
Reply
Nero_3D
High-roller
Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
#3
16.01.2010, 16:03
mh
360° = 2pi
x° = ypi
x° = (ypi * 360°) / 2pi;
ypi = (x° * 2pi) / 360°;
and with some simplifications
pawn Код:
#define DegToRad(%1) (%1 / 57.2957795)
#define RadToDeg(%1) (%1 * 57.2957795)
Note: the results arent 100% correct because - like you can see - it divides or multiplies with a number with seven fractional digits
Find
Reply
¤Adas¤
Gangsta
Posts: 549
Threads: 20
Joined: Jan 2010
Reputation:
0
#4
16.01.2010, 20:03
thanks
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Help Archive