forked from mirror/DotRecast
readonly DtSegInterval
This commit is contained in:
parent
6b30d99651
commit
deeee5e9d2
|
@ -1801,7 +1801,7 @@ namespace DotRecast.Detour
|
||||||
out RcVec3f resultPos, ref List<long> visited)
|
out RcVec3f resultPos, ref List<long> visited)
|
||||||
{
|
{
|
||||||
resultPos = RcVec3f.Zero;
|
resultPos = RcVec3f.Zero;
|
||||||
|
|
||||||
if (null != visited)
|
if (null != visited)
|
||||||
visited.Clear();
|
visited.Clear();
|
||||||
|
|
||||||
|
@ -2630,7 +2630,7 @@ namespace DotRecast.Detour
|
||||||
resultRef.Clear();
|
resultRef.Clear();
|
||||||
resultParent.Clear();
|
resultParent.Clear();
|
||||||
resultCost.Clear();
|
resultCost.Clear();
|
||||||
|
|
||||||
// Validate input
|
// Validate input
|
||||||
int nverts = verts.Length;
|
int nverts = verts.Length;
|
||||||
if (!m_nav.IsValidPolyRef(startRef) || null == verts || nverts < 3 || null == filter)
|
if (!m_nav.IsValidPolyRef(startRef) || null == verts || nverts < 3 || null == filter)
|
||||||
|
@ -3378,7 +3378,7 @@ namespace DotRecast.Detour
|
||||||
{
|
{
|
||||||
return DtStatus.DT_FAILURE | DtStatus.DT_INVALID_PARAM;
|
return DtStatus.DT_FAILURE | DtStatus.DT_INVALID_PARAM;
|
||||||
}
|
}
|
||||||
|
|
||||||
path.Clear();
|
path.Clear();
|
||||||
|
|
||||||
List<DtNode> nodes = m_nodePool.FindNodes(endRef);
|
List<DtNode> nodes = m_nodePool.FindNodes(endRef);
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
namespace DotRecast.Detour
|
namespace DotRecast.Detour
|
||||||
{
|
{
|
||||||
public class DtSegInterval
|
public readonly struct DtSegInterval
|
||||||
{
|
{
|
||||||
public long refs;
|
public readonly long refs;
|
||||||
public int tmin;
|
public readonly int tmin;
|
||||||
public int tmax;
|
public readonly int tmax;
|
||||||
|
|
||||||
public DtSegInterval(long refs, int tmin, int tmax)
|
public DtSegInterval(long refs, int tmin, int tmax)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue