From 6eb503c287d3a32fce9c53ae12099ec8b253138c Mon Sep 17 00:00:00 2001 From: ikpil Date: Sun, 23 Apr 2023 14:19:49 +0900 Subject: [PATCH] change --- src/DotRecast.Core/RecastMath.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/DotRecast.Core/RecastMath.cs b/src/DotRecast.Core/RecastMath.cs index 6aeffe1..03e6c4c 100644 --- a/src/DotRecast.Core/RecastMath.cs +++ b/src/DotRecast.Core/RecastMath.cs @@ -507,10 +507,10 @@ namespace DotRecast.Core public static float triArea2D(Vector3f a, Vector3f b, Vector3f c) { - float abx = b[0] - a[0]; - float abz = b[2] - a[2]; - float acx = c[0] - a[0]; - float acz = c[2] - a[2]; + float abx = b.x - a.x; + float abz = b.z - a.z; + float acx = c.x - a.x; + float acz = c.z - a.z; return acx * abz - abx * acz; }