Thread: Using an Arc

Results 1 to 5 of 5
  1. #1 Using an Arc 
    Donator

    Jason's Avatar
    Join Date
    Aug 2009
    Posts
    6,092
    Thanks given
    2,402
    Thanks received
    2,823
    Rep Power
    4550
    It's quite hard to explain but I was wondering if anyone knows a decent arc algorithm. I'm trying to check if a player is in a specific area but instead of using a rectangle I was wondering if I could theoretically use a scalene triangle with one side displaying an arc instead. For example: Ape atoll.



    ^These are the plain walls before the gate in ape atoll in the south location.



    ^ This is the walls with the current checking system that all/most servers supply which is fucking time consuming and can lead to technical issues.



    ^ This is the idea that I'm trying to represent. The blue filled triangles wit the red outline are scalene with the longest side displaying the arc as shown on both sides. The square that's filled blue in the middle displays the current method which is just one square.

    EDIT: Once this is solved weather it's by myself or another community member I will be releasing the method for users to use because of how efficient this would be.
    Reply With Quote  
     

  2. #2  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    seems impracticable since the user would need to produce a formula for the arc
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Shamon King's Avatar
    Join Date
    Aug 2007
    Posts
    3,335
    Thanks given
    90
    Thanks received
    228
    Rep Power
    1363
    Reply With Quote  
     

  5. Thankful users:


  6. #4  
    Donator

    Jason's Avatar
    Join Date
    Aug 2009
    Posts
    6,092
    Thanks given
    2,402
    Thanks received
    2,823
    Rep Power
    4550
    Quote Originally Posted by Harlan View Post
    seems impracticable since the user would need to produce a formula for the arc
    That's why i'm working on a formula like;

    Code:
    /* I'm doing this all in notepad at the public library because I don't have a laptop
     * I'm not sure if i'm able to use Point in this sense because im not using an IDE and i'm not familiar with the point class
     * Ha, gayyyyyyy
     */
    public int setClippedArc(Point one, Point two, Point three, double arc, boolean isFlipped) {
        one = new Point(one.getX(), one.getY());
        two = new Point(two.getX(), two.getY());
        three = new Point(three.getX(), three.getY());
        if(!isFlipped) {
            //Do the work for creating an arced triangle with the arc on the left
        } else {
            //Do the work for creating an arced triangle with the arc on the right
        }
        
    }
    Quote Originally Posted by Shamon King View Post
    Thanks for the information that helps me with something else but the issue with that is that there is no end to a hyperbola, if I'm correct therefor it's unusable for this situation. Please correct me if I am wrong
    Reply With Quote  
     

  7. #5  
    Donator

    Jason's Avatar
    Join Date
    Aug 2009
    Posts
    6,092
    Thanks given
    2,402
    Thanks received
    2,823
    Rep Power
    4550
    Bump - Any informative help is appreciated.
    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

Similar Threads

  1. The Arc
    By Thee Wolf in forum Showcase
    Replies: 15
    Last Post: 10-30-2011, 05:11 PM
  2. Scape-Arc! ( With HD Webclient )
    By Master Mind55 in forum Advertise
    Replies: 3
    Last Post: 03-26-2009, 04:43 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •