From 8214842151d81a683b058ba80561412855980287 Mon Sep 17 00:00:00 2001 From: ikpil Date: Sat, 22 Apr 2023 12:39:40 +0900 Subject: [PATCH] float[] -> Vector3f --- src/DotRecast.Recast/RecastFilledVolumeRasterization.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DotRecast.Recast/RecastFilledVolumeRasterization.cs b/src/DotRecast.Recast/RecastFilledVolumeRasterization.cs index 3bcd7be..2c2b674 100644 --- a/src/DotRecast.Recast/RecastFilledVolumeRasterization.cs +++ b/src/DotRecast.Recast/RecastFilledVolumeRasterization.cs @@ -525,7 +525,7 @@ namespace DotRecast.Recast } // check intersection with rays starting in rectangle vertices - float[] point = new float[] { 0, rectangle[1], 0 }; + var point = Vector3f.Of(0, rectangle[1], 0); for (int i = 0; i < 4; i++) { point[0] = ((i & 1) == 0) ? rectangle[0] : rectangle[2];