If you mean the angle that P1 is the vertex of then using the Law of Cosines should work:
arccos((P122
+ P132 – P232) / (2 *
P12 * P13))
where P12 is the length of the segment from P1 to P2, calculated by
sqrt((P1x –
P2x)2 +
(P1y –
P2y)2)
More Related Contents:
- How to determine if a point is in a 2D triangle? [closed]
- Circle line-segment collision detection algorithm?
- Algorithm to detect intersection of two rectangles?
- Sort points in clockwise order?
- How do you calculate the average of a set of circular data? [closed]
- Puzzle: Find largest rectangle (maximal rectangle problem)
- Calculate largest inscribed rectangle in a rotated rectangle
- Circle-circle intersection points
- Determining if two line segments intersect? [duplicate]
- Calculating the position of points in a circle
- How do you find a point at a given perpendicular distance from a line?
- determine if a point sits inside an arbitrary shape?
- How can I perform Collision Detection on rotated rectangles? [closed]
- Location of highest density on a sphere
- Sum a number with divisors to get another number
- Equation for testing if a point is inside a circle
- Algorithm for finding the fewest rectangles to cover a set of rectangles without overlapping
- Least common multiple for 3 or more numbers
- Is it possible to express “t” variable from Cubic Bezier Curve equation?
- Need help in mod 1000000007 questions
- Check if one integer is an integer power of another
- Modulus power of big numbers
- How can I calculate the age of a person in year, month, days?
- How to find two most distant points?
- Polygon enclosing a set of points
- What is the most efficient algorithm to find a straight line that goes through most points?
- finding a^b^c^… mod m
- Mesh generation from points with x, y and z coordinates
- How to find distance from the latitude and longitude of two locations?
- Algorithm for reflecting a point across a line