seems impracticable since the user would need to produce a formula for the arc
|
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.
seems impracticable since the user would need to produce a formula for the arc
Looks like a hyperbola cut in half
Formula and graph of a hyperbola. How to graph a hyperbola based on its formula
That's why i'm working on a formula like;
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 wrongCode:/* 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 } }
Bump - Any informative help is appreciated.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |