When someone helps you with an issue, you should communicate your thanks. This is a special case of â€śTreat the list like peopleâ€ť. For more tips, see the â€śHow to get answersâ€ť link in the left sidebar of this Forum:

https://www.mikeash.com/getting_answers.html#guide_begin

```
/**
* Calculate the area of the specified triangle.
*
* @param triangle (not null, unaffected)
* @return the area (≥0)
*/
public static double area(Triangle triangle) {
Vector3f a = triangle.get1();
Vector3f b = triangle.get2();
Vector3f c = triangle.get3();
Vector3f ab = b.subtract(a);
Vector3f ac = c.subtract(a);
Vector3f cross = ab.cross(ac);
double areaSquared = lengthSquared(cross) / 4.0;
double area = Math.sqrt(areaSquared);
return area;
}
/**
* Calculate the squared length of a vector. Unlike
* {@link com.jme3.math.Vector3f#lengthSquared()}, this method returns a
* double-precision value for precise comparison of lengths.
*
* @param vector input (not null, unaffected)
* @return the squared length (≥0)
*/
public static double lengthSquared(Vector3f vector) {
double xx = vector.x;
double yy = vector.y;
double zz = vector.z;
double result = xx * xx + yy * yy + zz * zz;
return result;
}
```