ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed May 22, 2019 8:36 am

All times are UTC




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun Mar 31, 2019 4:30 pm 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1122
i just want to know if sine, cosine and other kinds of trigonometric functions can be done within this quickBMS language

_________________
the number one killer is time
it destroys us all


Top
   
PostPosted: Sun Mar 31, 2019 5:43 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10256
The answer is yes and no.
The math operators are there but keep in mind that quickbms doesn't support float numbers, just integers, so I don't know if the result is exactly what you expect.
Anyway:
math VAR1 sin VAR2
math VAR1 cos VAR2
math VAR1 log VAR2
math VAR1 pow VAR2
math VAR1 sqrt VAR2
math VAR1 ceil VAR2
...
All the C math operators are supported so you have a huge choice.


Top
   
PostPosted: Sun Mar 31, 2019 6:20 pm 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1122
okay
what about xmath operators?

_________________
the number one killer is time
it destroys us all


Top
   
PostPosted: Sun Mar 31, 2019 6:27 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10256
ah I need to correct my previous post.
It's NOT sin, it's ?sin:
math VAR1 ?sin VAR2
math VAR1 ?cos VAR2
math VAR1 ?log VAR2
math VAR1 ?pow VAR2
math VAR1 ?sqrt VAR2
math VAR1 ?ceil VAR2

In theory xmath uses the same operators of math but in practice it doesn't support these "textual" operators.


Top
   
PostPosted: Sun Mar 31, 2019 6:28 pm 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1122
well it's about time i take notes with this

_________________
the number one killer is time
it destroys us all


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited