daily update on 20230716 by nitload youmu, another bug in linked list
This commit is contained in:
@@ -109,14 +109,20 @@ namespace StgSharp
|
||||
|
||||
internal LinkedListNode<T> Find(T value)
|
||||
{
|
||||
foreach (LinkedListNode<T> node in this)
|
||||
LinkedListNode<T> enumerator = this._hook;
|
||||
do
|
||||
{
|
||||
if (node._value.Equals(value))
|
||||
{
|
||||
return node;
|
||||
}
|
||||
enumerator = enumerator._next;
|
||||
Console.WriteLine(enumerator.Value.ToString());
|
||||
} while (!enumerator.Value.Equals(value)
|
||||
|| enumerator == _hook);
|
||||
|
||||
if (enumerator == _hook)
|
||||
{
|
||||
throw new Exception();
|
||||
}
|
||||
throw new Exception("Value not found in this LinkedList");
|
||||
|
||||
return enumerator;
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
namespace StgSharp.Math
|
||||
using System.Net.NetworkInformation;
|
||||
|
||||
namespace StgSharp.Math
|
||||
{
|
||||
public static partial class Calc
|
||||
{
|
||||
public const float Pi = 3.1415926f;
|
||||
|
||||
private static readonly float[] sinData =
|
||||
{
|
||||
0f, 0.15643446239373f, 0.309016989278255f, 0.453990492577218f, 0.587785243621462f,
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user