Skip to main content
gamedev.net
🔒 Locked

math functions..

Started by sushi-one 7 replies 2k views
Original Post
sushi-one
sushi-one
once againg, a very basic question from me :) anyway, some (in fact, alot :D) math functions is making me cofused. "abs", "max" and "min" what is it that these does, and when do I use them etc..
Hans-Petter Harveg
jef_ti
jef_ti
aeww....

abs -> return the positive (integer)

min -> the min of the two numbers

max -> the max of the two numbers

when you begin with geometry you will know...

flw..
alksdhtadsjalks
sushi-one
sushi-one
Quote:
Original post by Zipster
MSDN, Google, etc.


ehh.. ok, I could of course use google, but I like to ask.. isnt this a math forum where I can ask math questions?
Hans-Petter Harveg
Muzzafarath
Muzzafarath
But then again, self-sufficiency (in the sense that you can find out things by looking them up) is a trait you'd want to develop.
I'm reminded of the day my daughter came in, looked over my shoulder at some Perl 4 code, and said, "What is that, swearing?" - Larry Wall
JohnBolton
JohnBolton
Quote:
Original post by sushi-one
Quote:
Original post by Zipster
MSDN, Google, etc.


ehh.. ok, I could of course use google, but I like to ask.. isnt this a math forum where I can ask math questions?

Sure, but:
  1. Why wait 20 minutes for an answer you can find on your own in 20 seconds? It probably takes longer to post the question than it takes to look up the answer.
  2. When the forums are spammed with questions like this, then the more interesting questions get lost in the muck.
John BoltonLocomotive Games (THQ)Current Project: Destroy All Humans (Wii). IN STORES NOW!
Tang of the Mountain
Tang of the Mountain
MSDN is your friend.....type abs( in .net....cli=ck on it..and hit f1....as for any question on a function etc...its a 3 second answer to your question...learn to use it...its helpful...*smile*
We have youth, how about a fountain of smart.e4 e5 f4 d5
sushi-one
sushi-one
to all the people who was helpfull: thanks alot, I got my answers :)

Hans-Petter Harveg

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.