English Amiga Board

Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

Thread Tools
Old 23 July 2017, 02:46   #1
Registered User

Join Date: Dec 2013
Location: Auckland
Posts: 1,826
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.
earok is offline  
Old 23 July 2017, 03:09   #2
Registered User

Join Date: Dec 2013
Location: Auckland
Posts: 1,826
Aaaah I'm an idiot, I missed "QAngle" in the documentation..
earok is offline  
Old 23 July 2017, 03:10   #3
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 3,637
(edit: Saw you find it while I was reading the manual)
idrougge is offline  
Old 23 July 2017, 22:48   #4
Registered User

Join Date: Oct 2014
Location: Europe
Posts: 466
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.
Cylon is offline  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Similar Threads
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 05:22.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.05823 seconds with 15 queries