Thread: explain this please

Results 1 to 10 of 10
  1. #1 explain this please 
    Registered Member
    Join Date
    Sep 2009
    Posts
    527
    Thanks given
    22
    Thanks received
    10
    Rep Power
    30
    lol i always get confused with this >.<

    Code:
    if((absX >=  && absX <=  && absY >=  && absY <=))

    could u please fill in the missing gaps with like top left coord, bottom right or w/e


    thanks


    -Divine
    :trollface:
    Working on a Project with Shoopdawhoop =)
    Spoiler for lol:
    [img]http://2.bp.blogspot.com/_eQXh9P3bqks/S-ewcqWSXyI/AAAAAAAABUI/6i3xd_77cVk/s1600/****-bear-cake.jpg[/img]
    Reply With Quote  
     

  2. #2  
    Registered Member Mayday Parade's Avatar
    Join Date
    Apr 2009
    Age
    27
    Posts
    495
    Thanks given
    20
    Thanks received
    17
    Rep Power
    8
    Well, >= is Greater than or Equal to. So it means that the coordinate of "X" or "Y" is going to be Greater than or Equal to that coordinate. Which means that would be the bottom right.
    <= means Less than or Equal to. Which would make it the Upper Left corner.
    Up/Down is on the Y, Left/Right is on the X. I hope you already know that lol.

    Spoiler for LoL:
    Quote Originally Posted by Imbued View Post
    Quote Originally Posted by pasta186 View Post
    That tutorial doesnt walk.
    That's because it got no legs..
    Best report I've sent? "Mass spam? Also in wrong sexual"
    LOL
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Apr 2009
    Posts
    1,727
    Thanks given
    403
    Thanks received
    210
    Rep Power
    390
    (adding to what the dude above said) It makes a box if you didnt already know lol
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Sep 2009
    Posts
    527
    Thanks given
    22
    Thanks received
    10
    Rep Power
    30
    yeah im trying to make a box.
    :trollface:
    Working on a Project with Shoopdawhoop =)
    Spoiler for lol:
    [img]http://2.bp.blogspot.com/_eQXh9P3bqks/S-ewcqWSXyI/AAAAAAAABUI/6i3xd_77cVk/s1600/****-bear-cake.jpg[/img]
    Reply With Quote  
     

  5. #5  
    Registered Member
    Its paris's Avatar
    Join Date
    Apr 2009
    Posts
    1,141
    Thanks given
    56
    Thanks received
    234
    Rep Power
    689
    if((absX >= leftCoord && absX <= rightCoord && absY >= bottomCoord && absY <= topCoord))

    There you go, it'll be valid for every position within the box.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Sep 2008
    Posts
    144
    Thanks given
    0
    Thanks received
    2
    Rep Power
    1
    Quote Originally Posted by TheChosenOne View Post
    if((absX >= leftCoord && absX <= rightCoord && absY >= bottomCoord && absY <= topCoord))

    There you go, it'll be valid for every position within the box.

    heres an simple translation if its what he means
    left coord - south west Xcoord
    rightcoord - northeast X coord
    bottom coord - south west Ycoord
    Topcoord - northeast Y coord
    Reply With Quote  
     

  7. #7  
    Registered Member
    PSNB's Avatar
    Join Date
    Aug 2009
    Posts
    885
    Thanks given
    8
    Thanks received
    103
    Rep Power
    590
    This is surprisingly not the first thread I've seen with this question...

    Seriously; is simple math really that difficult? Are there really that many people who don't know what greater than and less than mean?
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Sep 2009
    Posts
    527
    Thanks given
    22
    Thanks received
    10
    Rep Power
    30
    Quote Originally Posted by PSNB View Post
    This is surprisingly not the first thread I've seen with this question...

    Seriously; is simple math really that difficult? Are there really that many people who don't know what greater than and less than mean?
    how about u stfu. we cant all be genius like u mr know it all.
    :trollface:
    Working on a Project with Shoopdawhoop =)
    Spoiler for lol:
    [img]http://2.bp.blogspot.com/_eQXh9P3bqks/S-ewcqWSXyI/AAAAAAAABUI/6i3xd_77cVk/s1600/****-bear-cake.jpg[/img]
    Reply With Quote  
     

  9. #9  
    Registered Member
    Darna's Avatar
    Join Date
    Jan 2008
    Age
    31
    Posts
    488
    Thanks given
    11
    Thanks received
    4
    Rep Power
    163
    PSNB was always fuckin pro and know what absX <= means when he first see it

    Divine now u understand all or u have more questions?

    Reply With Quote  
     

  10. #10  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,227
    Thanks given
    3,283
    Thanks received
    2,875
    Rep Power
    5000
    Quote Originally Posted by D-I-V-I-N-E View Post
    how about u stfu. we cant all be genius like u mr know it all.

    ARE YOU FUCKING JOKING?

    You learn harder math in kindergarten... Just leave..
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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