![]() |
![]() |
#1 |
Registered User
Join Date: Dec 2013
Location: Auckland
Posts: 3,539
|
ATan2 or equivalent?
I've got an X/Y coordinate for two different objects, and I want to work out the compass angle from one to the other (in degrees).
In other languages I'd rely on the ATan2 function, which doesn't appear to be in Blitz. Has someone got some instructions for working this out? Cheers. |
![]() |
![]() |
#2 |
Registered User
Join Date: Dec 2013
Location: Auckland
Posts: 3,539
|
Aaaah I'm an idiot, I missed "QAngle" in the documentation..
|
![]() |
![]() |
#3 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
|
QAngle?
(edit: Saw you find it while I was reading the manual) |
![]() |
![]() |
#4 |
Registered User
Join Date: Oct 2014
Location: Europe
Posts: 470
|
There a quite some nice algorythms on the former blitzbasic(pc)/blitzmax site regarding maths and stuff. literally thousands of sourcecodes, sometimes easy to convert to blitzbasic2 amiga. well, it is basic, basically.
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
equivalent of block but with x not power of 2 | Raislin77it | Coders. Blitz Basic | 14 | 27 February 2016 00:35 |
SnoopDos equivalent tool for Windows? | Shoonay | request.Apps | 36 | 20 March 2009 18:46 |
Skate Or Die - Amiga Equivalent? | Fingerlickin_B | Retrogaming General Discussion | 18 | 01 July 2007 14:47 |
An RZX Equivalent? | frankyboy | request.UAE Wishlist | 1 | 25 November 2006 17:28 |
Equivalent libraries from standard c to amiga c | _ThEcRoW | Coders. General | 6 | 14 December 2005 17:01 |
|
|