English Amiga Board


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

 
 
Thread Tools
Old 23 July 2017, 03:46   #1
earok
Moderator

 
Join Date: Dec 2013
Location: Auckland
Posts: 1,529
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  
AdSense AdSense  
Old 23 July 2017, 04:09   #2
earok
Moderator

 
Join Date: Dec 2013
Location: Auckland
Posts: 1,529
Aaaah I'm an idiot, I missed "QAngle" in the documentation..
earok is offline  
Old 23 July 2017, 04:10   #3
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 3,050
QAngle?
(edit: Saw you find it while I was reading the manual)
idrougge is offline  
Old 23 July 2017, 23:48   #4
Cylon
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  
AdSense AdSense  
 


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 01:35
SnoopDos equivalent tool for Windows? Shoonay request.Apps 36 20 March 2009 19:46
Skate Or Die - Amiga Equivalent? Fingerlickin_B Retrogaming General Discussion 18 01 July 2007 15:47
An RZX Equivalent? frankyboy request.UAE Wishlist 1 25 November 2006 18:28
Equivalent libraries from standard c to amiga c _ThEcRoW Coders. General 6 14 December 2005 18: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 01:15.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.15467 seconds with 12 queries