Triangle Area in 3D
Calculate the surface area of a triangle from three vertices anywhere in 3D space.
View the Unity C# source on GitHubResult
The same calculation as a Unity C# helper.
using UnityEngine;
public static class TriangleArea
{
public static float Calculate(Vector3 a, Vector3 b, Vector3 c)
{
return Vector3.Cross(b - a, c - a).magnitude * 0.5f;
}
}