feat: change namespace RcVec2f, RcVec3f, RcMatrix4x4f for dotent 8

This commit is contained in:
ikpil 2023-10-16 23:55:34 +09:00
parent 628c4ef0ce
commit cfcdf86f2d
183 changed files with 189 additions and 160 deletions

View File

@ -1,7 +1,7 @@
using System;
using System.Runtime.CompilerServices;
namespace DotRecast.Core
namespace DotRecast.Core.Numerics
{
public struct RcMatrix4x4f
{

View File

@ -1,7 +1,7 @@
using System;
using System.Runtime.CompilerServices;
namespace DotRecast.Core
namespace DotRecast.Core.Numerics
{
public struct RcVec2f
{

View File

@ -19,7 +19,7 @@ freely, subject to the following restrictions:
using System;
using System.Runtime.CompilerServices;
namespace DotRecast.Core
namespace DotRecast.Core.Numerics
{
public struct RcVec3f
{

View File

@ -18,6 +18,7 @@ freely, subject to the following restrictions:
*/
using System.Collections.Generic;
using DotRecast.Core.Numerics;
namespace DotRecast.Core
{

View File

@ -19,6 +19,7 @@ freely, subject to the following restrictions:
*/
using System;
using DotRecast.Core.Numerics;
namespace DotRecast.Core
{

View File

@ -18,7 +18,6 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using System;
using System.Runtime.CompilerServices;
namespace DotRecast.Core

View File

@ -20,6 +20,7 @@ freely, subject to the following restrictions:
using System;
using System.Globalization;
using System.IO;
using DotRecast.Core.Numerics;
namespace DotRecast.Core
{

View File

@ -1,4 +1,6 @@
namespace DotRecast.Core
using DotRecast.Core.Numerics;
namespace DotRecast.Core
{
public struct RcSegmentVert
{

View File

@ -21,6 +21,7 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Crowd

View File

@ -20,7 +20,7 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Crowd
{

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Crowd
{

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Crowd
{

View File

@ -23,6 +23,7 @@ using System.Diagnostics;
using System.Linq;
using System.Reflection.Emit;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Crowd
{

View File

@ -18,9 +18,9 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Crowd

View File

@ -19,7 +19,7 @@ freely, subject to the following restrictions:
*/
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Crowd
{

View File

@ -20,6 +20,7 @@ freely, subject to the following restrictions:
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Crowd

View File

@ -1,4 +1,4 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Crowd
{

View File

@ -1,4 +1,4 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Crowd
{

View File

@ -21,12 +21,11 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Crowd
{
/**
* Represents a dynamic polygon corridor used to plan agent movement.
*

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Crowd
{

View File

@ -19,7 +19,7 @@ freely, subject to the following restrictions:
*/
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Crowd

View File

@ -1,4 +1,4 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Crowd
{

View File

@ -19,6 +19,7 @@ freely, subject to the following restrictions:
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast;
namespace DotRecast.Detour.Dynamic.Colliders
@ -92,4 +93,4 @@ namespace DotRecast.Detour.Dynamic.Colliders
return halfEdges;
}
}
}
}

View File

@ -19,6 +19,7 @@ freely, subject to the following restrictions:
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast;
namespace DotRecast.Detour.Dynamic.Colliders

View File

@ -74,4 +74,4 @@ namespace DotRecast.Detour.Dynamic.Colliders
c.Rasterize(hf, telemetry);
}
}
}
}

View File

@ -19,6 +19,7 @@ freely, subject to the following restrictions:
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast;
namespace DotRecast.Detour.Dynamic.Colliders

View File

@ -19,6 +19,7 @@ freely, subject to the following restrictions:
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast;
namespace DotRecast.Detour.Dynamic.Colliders

View File

@ -20,7 +20,6 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using DotRecast.Core;
using DotRecast.Detour.Dynamic.Colliders;

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
*/
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast;
namespace DotRecast.Detour.Dynamic

View File

@ -20,6 +20,7 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast;
namespace DotRecast.Detour.Dynamic.Io

View File

@ -19,6 +19,7 @@ freely, subject to the following restrictions:
using System.IO;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.Io;
namespace DotRecast.Detour.Dynamic.Io

View File

@ -19,6 +19,7 @@ freely, subject to the following restrictions:
using System.IO;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.Io;
namespace DotRecast.Detour.Dynamic.Io

View File

@ -18,6 +18,7 @@ freely, subject to the following restrictions:
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast;
namespace DotRecast.Detour.Dynamic.Io

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
*/
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Extras

View File

@ -1,5 +1,5 @@
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast;
namespace DotRecast.Detour.Extras.Jumplink

View File

@ -1,5 +1,5 @@
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Extras.Jumplink
{

View File

@ -1,5 +1,5 @@
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast;
using static DotRecast.Recast.RcConstants;

View File

@ -1,5 +1,5 @@
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Extras.Jumplink
{

View File

@ -1,5 +1,5 @@
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Extras.Jumplink
{

View File

@ -1,4 +1,4 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Extras.Jumplink
{

View File

@ -1,4 +1,4 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Extras.Jumplink
{

View File

@ -1,4 +1,4 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Extras.Jumplink
{

View File

@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast;
namespace DotRecast.Detour.Extras.Jumplink

View File

@ -1,5 +1,5 @@
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Extras.Jumplink
{

View File

@ -1,5 +1,5 @@
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast;

View File

@ -1,5 +1,5 @@
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Extras.Jumplink
{

View File

@ -1,5 +1,5 @@
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast;

View File

@ -18,7 +18,6 @@ freely, subject to the following restrictions:
using System;
using System.IO.Compression;
using DotRecast.Core;
namespace DotRecast.Detour.Extras.Unity.Astar
@ -127,15 +126,15 @@ namespace DotRecast.Detour.Extras.Unity.Astar
header.detailTriCount = nodeCount;
header.maxLinkCount = nodeCount * 3 * 2; // XXX: Needed by Recast, not needed by recast4j
header.bmin.X = meta.forcedBoundsCenter.x - 0.5f * meta.forcedBoundsSize.x
+ meta.cellSize * meta.tileSizeX * x;
+ meta.cellSize * meta.tileSizeX * x;
header.bmin.Y = ymin;
header.bmin.Z = meta.forcedBoundsCenter.z - 0.5f * meta.forcedBoundsSize.z
+ meta.cellSize * meta.tileSizeZ * z;
+ meta.cellSize * meta.tileSizeZ * z;
header.bmax.X = meta.forcedBoundsCenter.x - 0.5f * meta.forcedBoundsSize.x
+ meta.cellSize * meta.tileSizeX * (x + 1);
+ meta.cellSize * meta.tileSizeX * (x + 1);
header.bmax.Y = ymax;
header.bmax.Z = meta.forcedBoundsCenter.z - 0.5f * meta.forcedBoundsSize.z
+ meta.cellSize * meta.tileSizeZ * (z + 1);
+ meta.cellSize * meta.tileSizeZ * (z + 1);
header.bvQuantFactor = 1.0f / meta.cellSize;
header.offMeshBase = nodeCount;
header.walkableClimb = meta.walkableClimb;
@ -171,4 +170,4 @@ namespace DotRecast.Detour.Extras.Unity.Astar
return vertMask;
}
}
}
}

View File

@ -16,7 +16,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Extras.Unity.Astar
{

View File

@ -16,7 +16,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Extras.Unity.Astar
{

View File

@ -18,6 +18,7 @@ freely, subject to the following restrictions:
using System.IO.Compression;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Extras.Unity.Astar
{

View File

@ -18,6 +18,7 @@ freely, subject to the following restrictions:
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Extras.Unity.Astar
{

View File

@ -19,6 +19,7 @@ freely, subject to the following restrictions:
using System.IO;
using System.IO.Compression;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.Io;
namespace DotRecast.Detour.Extras.Unity.Astar

View File

@ -21,6 +21,7 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.TileCache.Io;
namespace DotRecast.Detour.TileCache

View File

@ -22,6 +22,7 @@ using System;
using System.Collections.Generic;
using System.IO;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.TileCache.Io;
using DotRecast.Detour.TileCache.Io.Compress;

View File

@ -23,7 +23,7 @@ using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.TileCache.Io.Compress;
using DotRecast.Recast;
using DotRecast.Recast.Geom;

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.TileCache
{

View File

@ -19,7 +19,7 @@ freely, subject to the following restrictions:
*/
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.TileCache
{

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.TileCache
{

View File

@ -30,7 +30,7 @@ namespace DotRecast.Detour.TileCache.Io
private readonly DtNavMeshParamWriter paramWriter = new DtNavMeshParamWriter();
private readonly DtTileCacheBuilder builder = new DtTileCacheBuilder();
private readonly IDtTileCacheCompressorFactory _compFactory;
public DtTileCacheWriter(IDtTileCacheCompressorFactory compFactory)
{
_compFactory = compFactory;

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
*/
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -17,7 +17,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour

View File

@ -1,5 +1,5 @@
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -21,6 +21,7 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -19,7 +19,7 @@ freely, subject to the following restrictions:
*/
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -21,11 +21,10 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{
using static DtNode;
public class DtNavMeshQuery
{
/// < Add a vertex at every polygon edge crossing.

View File

@ -18,6 +18,7 @@ freely, subject to the following restrictions:
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -1,4 +1,4 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -19,7 +19,7 @@ freely, subject to the following restrictions:
*/
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -20,7 +20,7 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -1,4 +1,4 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -19,7 +19,7 @@ freely, subject to the following restrictions:
*/
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -1,4 +1,4 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -1,4 +1,4 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -19,7 +19,7 @@ freely, subject to the following restrictions:
*/
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -1,5 +1,5 @@
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -1,5 +1,6 @@
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
*/
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -17,7 +17,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour
{

View File

@ -18,6 +18,7 @@ freely, subject to the following restrictions:
using System.IO;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Io
{

View File

@ -1,5 +1,6 @@
using System.IO;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Detour.Io
{

View File

@ -20,7 +20,7 @@ freely, subject to the following restrictions:
using System;
using Silk.NET.OpenGL;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast.Toolset.Builder;
namespace DotRecast.Recast.Demo.Draw;

View File

@ -18,6 +18,7 @@ freely, subject to the following restrictions:
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast.Demo.Draw;

View File

@ -1,4 +1,4 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast.Demo.Draw;

View File

@ -1,7 +1,7 @@
using System;
using System.IO;
using Silk.NET.OpenGL;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast.Demo.Draw;

View File

@ -19,7 +19,7 @@ freely, subject to the following restrictions:
*/
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour;
using DotRecast.Recast.Toolset.Builder;
using DotRecast.Recast.Toolset.Geom;

View File

@ -1,7 +1,7 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast.Demo.Draw;

View File

@ -20,7 +20,7 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour;
using DotRecast.Recast.Toolset.Builder;
using Silk.NET.OpenGL;

View File

@ -1,6 +1,5 @@
using System;
using DotRecast.Core;
using DotRecast.Detour.Dynamic.Io;
using K4os.Compression.LZ4;
namespace DotRecast.Recast.Demo;

View File

@ -1,4 +1,4 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast.Demo.Messages;

View File

@ -25,6 +25,7 @@ using System.Globalization;
using System.IO;
using System.Linq;
using System.Numerics;
using DotRecast.Core;
using Serilog;
using Silk.NET.Input;
using Silk.NET.Maths;
@ -32,7 +33,7 @@ using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Extensions.ImGui;
using Silk.NET.Windowing;
using ImGuiNET;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour;
using DotRecast.Detour.Extras.Unity.Astar;
using DotRecast.Detour.Io;

View File

@ -19,7 +19,7 @@ freely, subject to the following restrictions:
*/
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast.Toolset.Builder;
using DotRecast.Recast.Demo.Draw;
using DotRecast.Recast.Toolset;

View File

@ -20,7 +20,7 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using System.Linq;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour;
using DotRecast.Detour.Crowd;
using DotRecast.Recast.Toolset.Builder;

View File

@ -20,7 +20,7 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour;
using DotRecast.Detour.Crowd;

View File

@ -19,14 +19,12 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.Dynamic;
using DotRecast.Detour.Dynamic.Io;
using DotRecast.Recast.Toolset;
using DotRecast.Recast.Toolset.Gizmos;
using DotRecast.Recast.Toolset.Tools;
using DotRecast.Recast.Demo.Draw;
using DotRecast.Recast.Demo.UI;

View File

@ -1,9 +1,9 @@
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast.Demo.Draw;
using DotRecast.Recast.Toolset.Gizmos;
namespace DotRecast.Recast.Demo.Tools;
public static class GizmoRenderer

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast.Demo.Draw;
using DotRecast.Recast.Toolset;

View File

@ -16,7 +16,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.Extras.Jumplink;
using DotRecast.Recast.Demo.Draw;
using DotRecast.Recast.Toolset;

View File

@ -1,4 +1,5 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.TileCache;
using DotRecast.Detour.TileCache.Io.Compress;
using DotRecast.Recast.Demo.Draw;

View File

@ -19,7 +19,7 @@ freely, subject to the following restrictions:
*/
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast.Demo.Draw;
using DotRecast.Recast.Toolset;
using DotRecast.Recast.Toolset.Geom;

View File

@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour;
using DotRecast.Recast.Toolset.Builder;
using DotRecast.Recast.Demo.Draw;

View File

@ -1,5 +1,5 @@
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast.Demo.Draw;
using DotRecast.Recast.Toolset;
using DotRecast.Recast.Toolset.Builder;

View File

@ -20,6 +20,7 @@ using System;
using System.IO;
using System.Numerics;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast.Demo.Draw;
using DotRecast.Recast.Demo.Messages;
using ImGuiNET;

View File

@ -16,8 +16,6 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Detour;
using DotRecast.Recast.Toolset.Geom;

View File

@ -21,6 +21,7 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast.Geom;
namespace DotRecast.Recast.Toolset.Geom

View File

@ -1,4 +1,4 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.Dynamic.Colliders;
namespace DotRecast.Recast.Toolset.Gizmos

View File

@ -1,5 +1,5 @@
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using static DotRecast.Recast.Toolset.Gizmos.RcGizmoHelper;

View File

@ -1,5 +1,5 @@
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using static DotRecast.Recast.Toolset.Gizmos.RcGizmoHelper;

View File

@ -1,4 +1,4 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast.Toolset.Gizmos
{

View File

@ -1,4 +1,4 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
using static DotRecast.Recast.Toolset.Gizmos.RcGizmoHelper;

View File

@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast.Geom;
namespace DotRecast.Recast.Toolset.Tools
@ -81,7 +82,7 @@ namespace DotRecast.Recast.Toolset.Tools
for (int i = 0; i < vols.Count; ++i)
{
if (RcAreas.PointInPoly(vols[i].verts, pos) && pos.Y >= vols[i].hmin
&& pos.Y <= vols[i].hmax)
&& pos.Y <= vols[i].hmax)
{
nearestIndex = i;
}

View File

@ -1,4 +1,4 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast.Toolset.Tools
{

View File

@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour;
using DotRecast.Detour.Crowd;
using DotRecast.Recast.Toolset.Builder;

View File

@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour;
using DotRecast.Detour.Crowd;
using DotRecast.Recast.Toolset.Builder;
namespace DotRecast.Recast.Toolset.Tools

View File

@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.Dynamic;
using DotRecast.Detour.Dynamic.Colliders;
using DotRecast.Detour.Dynamic.Io;

View File

@ -1,5 +1,5 @@
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.Extras.Jumplink;
using DotRecast.Recast.Geom;
using DotRecast.Recast.Toolset.Builder;

View File

@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour;
using DotRecast.Detour.TileCache;
using DotRecast.Detour.TileCache.Io.Compress;

View File

@ -1,5 +1,5 @@
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast.Geom;
using DotRecast.Recast.Toolset.Builder;

View File

@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour;
namespace DotRecast.Recast.Toolset.Tools

View File

@ -1,5 +1,6 @@
using System.Linq;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour;
using DotRecast.Recast.Geom;
using DotRecast.Recast.Toolset.Builder;

View File

@ -1,4 +1,4 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast.Geom
{

View File

@ -20,7 +20,7 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast.Geom
{

View File

@ -20,7 +20,7 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast.Geom
{

View File

@ -1,4 +1,4 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast.Geom
{

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast.Geom
{

View File

@ -21,6 +21,7 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast.Geom
{

View File

@ -20,6 +20,7 @@ freely, subject to the following restrictions:
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast
{

View File

@ -23,6 +23,7 @@ using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast.Geom;
namespace DotRecast.Recast

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast
{

View File

@ -20,6 +20,7 @@ freely, subject to the following restrictions:
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast
{

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast
{

View File

@ -19,15 +19,14 @@ freely, subject to the following restrictions:
using System;
using DotRecast.Core;
using static DotRecast.Recast.RcConstants;
namespace DotRecast.Recast
{
using static RcCommons;
public static class RcCompacts
{
private const int MAX_LAYERS = RC_NOT_CONNECTED - 1;
@ -84,7 +83,7 @@ namespace DotRecast.Recast
// If there are no spans at this cell, just leave the data to index=0, count=0.
if (s == null)
continue;
int tmpIdx = idx;
int tmpCount = 0;
while (s != null)

View File

@ -19,7 +19,7 @@ freely, subject to the following restrictions:
*/
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast
{

View File

@ -19,13 +19,12 @@ freely, subject to the following restrictions:
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using static DotRecast.Recast.RcConstants;
namespace DotRecast.Recast
{
public static class RcFilledVolumeRasterization
{
private const float EPSILON = 0.00001f;

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast
{

View File

@ -1,4 +1,4 @@
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast
{

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast
{

View File

@ -21,6 +21,7 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast
{
@ -54,7 +55,7 @@ namespace DotRecast.Recast
public static RcHeightfieldLayerSet BuildHeightfieldLayers(RcTelemetry ctx, RcCompactHeightfield chf, int walkableHeight)
{
using var timer = ctx.ScopedTimer(RcTimerLabel.RC_TIMER_BUILD_LAYERS);
int w = chf.width;
int h = chf.height;
int borderSize = chf.borderSize;

View File

@ -21,12 +21,12 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using static DotRecast.Recast.RcConstants;
namespace DotRecast.Recast
{
using static RcCommons;
public static class RcMeshDetails

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast
{

View File

@ -19,6 +19,7 @@ freely, subject to the following restrictions:
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
namespace DotRecast.Recast
{

View File

@ -20,6 +20,7 @@ freely, subject to the following restrictions:
using System;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using static DotRecast.Recast.RcConstants;
namespace DotRecast.Recast

View File

@ -20,7 +20,7 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using NUnit.Framework;

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
*/
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using Moq;
using NUnit.Framework;

View File

@ -16,7 +16,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast;
using DotRecast.Recast.Geom;

View File

@ -2,6 +2,7 @@ using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.Dynamic.Colliders;
using DotRecast.Detour.Dynamic.Io;
using DotRecast.Detour.Dynamic.Test.Io;

View File

@ -19,7 +19,6 @@ freely, subject to the following restrictions:
using System;
using DotRecast.Core;
using DotRecast.Detour.Dynamic.Io;
using K4os.Compression.LZ4;
namespace DotRecast.Detour.Dynamic.Test.Io

View File

@ -19,6 +19,7 @@ freely, subject to the following restrictions:
using System.IO;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.Dynamic.Io;
using NUnit.Framework;
@ -79,4 +80,4 @@ public class VoxelFileReaderTest
Assert.That(f.tiles[0].boundsMin, Is.EqualTo(new RcVec3f(-101.25f, 0f, -101.25f)));
Assert.That(f.tiles[0].boundsMax, Is.EqualTo(new RcVec3f(-78.75f, 5.0f, -78.75f)));
}
}
}

View File

@ -19,6 +19,7 @@ freely, subject to the following restrictions:
using System.IO;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.Dynamic.Io;
using NUnit.Framework;

View File

@ -22,6 +22,7 @@ using System.IO;
using System.Threading.Tasks;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.Dynamic.Io;
using DotRecast.Detour.Dynamic.Test.Io;
using DotRecast.Recast;

View File

@ -16,13 +16,12 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.Extras.Unity.Astar;
using DotRecast.Detour.Io;
using NUnit.Framework;
namespace DotRecast.Detour.Extras.Test.Unity.Astar;

View File

@ -16,7 +16,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
using NUnit.Framework;
namespace DotRecast.Detour.Test;

View File

@ -16,7 +16,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
using NUnit.Framework;

View File

@ -17,7 +17,7 @@ freely, subject to the following restrictions:
*/
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using NUnit.Framework;
namespace DotRecast.Detour.Test;

View File

@ -16,7 +16,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
using NUnit.Framework;

View File

@ -17,7 +17,7 @@ freely, subject to the following restrictions:
*/
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using NUnit.Framework;

View File

@ -17,7 +17,7 @@ freely, subject to the following restrictions:
*/
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using NUnit.Framework;
namespace DotRecast.Detour.Test;

View File

@ -17,7 +17,7 @@ freely, subject to the following restrictions:
*/
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using NUnit.Framework;
namespace DotRecast.Detour.Test;

View File

@ -19,6 +19,7 @@ freely, subject to the following restrictions:
using System.Collections.Generic;
using System.IO;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.Io;
using DotRecast.Recast;
using DotRecast.Recast.Geom;

View File

@ -17,7 +17,7 @@ freely, subject to the following restrictions:
*/
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using NUnit.Framework;

View File

@ -17,7 +17,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
using NUnit.Framework;
namespace DotRecast.Detour.Test;

View File

@ -17,8 +17,8 @@ freely, subject to the following restrictions:
*/
using System;
using System.Diagnostics;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using NUnit.Framework;

View File

@ -16,7 +16,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast;
using DotRecast.Recast.Geom;

View File

@ -17,7 +17,7 @@ freely, subject to the following restrictions:
*/
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast;
using DotRecast.Recast.Geom;

View File

@ -17,7 +17,7 @@ freely, subject to the following restrictions:
*/
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using NUnit.Framework;

View File

@ -20,20 +20,18 @@ freely, subject to the following restrictions:
using DotRecast.Core;
using DotRecast.Detour.TileCache.Io.Compress;
using DotRecast.Detour.TileCache.Test.Io;
using DotRecast.Recast;
using DotRecast.Recast.Geom;
using NUnit.Framework;
namespace DotRecast.Detour.TileCache.Test;
[Parallelizable]
public class AbstractTileCacheTest
{
private const int EXPECTED_LAYERS_PER_TILE = 4;
private readonly float m_cellSize = 0.3f;
private readonly float m_cellHeight = 0.2f;
private readonly float m_agentHeight = 2.0f;

View File

@ -223,4 +223,4 @@ public class TileCacheReaderTest
Assert.That(data.verts[6], Is.EqualTo(48.484783f).Within(0.0001f));
Assert.That(data.verts[9], Is.EqualTo(48.484783f).Within(0.0001f));
}
}
}

View File

@ -23,7 +23,6 @@ using System.IO;
using DotRecast.Core;
using DotRecast.Detour.TileCache.Io;
using DotRecast.Detour.TileCache.Io.Compress;
using DotRecast.Recast;
using DotRecast.Recast.Geom;
using NUnit.Framework;

View File

@ -20,8 +20,7 @@ freely, subject to the following restrictions:
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Detour.TileCache.Test.Io;
using DotRecast.Recast;
using DotRecast.Core.Numerics;
using DotRecast.Recast.Geom;
using NUnit.Framework;

View File

@ -21,8 +21,8 @@ freely, subject to the following restrictions:
using System.Collections.Generic;
using System.Linq;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.TileCache.Io.Compress;
using DotRecast.Detour.TileCache.Test.Io;
using DotRecast.Recast;
using DotRecast.Recast.Geom;

View File

@ -21,6 +21,7 @@ freely, subject to the following restrictions:
using System.Collections.Generic;
using System.IO;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Detour.TileCache.Io;
using DotRecast.Detour.TileCache.Io.Compress;
using DotRecast.Detour.TileCache.Test.Io;

View File

@ -20,7 +20,7 @@ freely, subject to the following restrictions:
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Recast;
using DotRecast.Core.Numerics;
using DotRecast.Recast.Geom;
using NUnit.Framework;

View File

@ -20,9 +20,7 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using System.Diagnostics;
using DotRecast.Core;
using DotRecast.Recast;
using DotRecast.Recast.Geom;
using NUnit.Framework;

View File

@ -18,7 +18,7 @@ freely, subject to the following restrictions:
using System;
using System.IO;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast.Geom;
using NUnit.Framework;

View File

@ -17,9 +17,9 @@ freely, subject to the following restrictions:
*/
using System;
using System.Diagnostics;
using System.IO;
using DotRecast.Core;
using DotRecast.Core.Numerics;
using DotRecast.Recast.Geom;
using NUnit.Framework;

View File

@ -16,8 +16,8 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using NUnit.Framework;
using DotRecast.Core;
namespace DotRecast.Recast.Test;

View File

@ -18,8 +18,6 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;