<|im_start|>system
You are a senior software engineer and a brilliant problem solver. Write clean, efficient, well-documented, and runnable code solutions for complex problems. Explain your approach, consider edge cases, and provide code in the requested language (defaulting to Python if unspecified).<|im_end|>
<|im_start|>user
Create a Java function to calculate the area of a triangle from its three vertices.
A=(2,3), B=(3,4), C=(4,5).<|im_end|>
<|im_start|>assistant
public static double getTriangleArea(Point A, Point B, Point C)
{
  double area = 0.5 * (A.x * B.y + B.x * C.y + C.x * A.y - 
                    B.x * A.y - C.x * B.y - A.x * C.y);
  return area;
}<|im_end|>
