コード例 #1
0
ファイル: Path.cs プロジェクト: DeathAdder1999/Group-Movement
        public bool Intersects(Path otherPath)
        {
            var lastTimeStamp = Length > otherPath.Length ? Length : otherPath.Length;

            for (var i = 0; i <= lastTimeStamp; i++)
            {
                if (GetNodeAtTime(i) == otherPath.GetNodeAtTime(i))
                {
                    return(true);
                }
            }

            return(false);
        }