예제 #1
0
        public FloorListNode(int numerator, int denominatorExpo, Vector2 value, FloorListNode next)
        {
            Numerator       = numerator;
            DenominatorExpo = denominatorExpo;
            this.value      = value;

            Next = next;
            subs = new FloorListNode[DenominatorBase];
        }
예제 #2
0
        public IEnumerable <Vector2> GetValues(float beginX, float rangeX, float endX)
        {
            if (root == null)
            {
            }

            FloorListNode node = root;



            IEnumerator <Vector2> enumerator = new FloorListEnumerator(node);

            while (enumerator.MoveNext())
            {
                yield return(enumerator.Current);
            }
        }
 public FirstFloorListSubNode(int numerator, int denominatorExpo, FloorListNode parent, FloorListNode next) :
     base(numerator, denominatorExpo, parent.Value, next)
 {
     this.parent = parent;
 }
예제 #4
0
 public FloorListNode GetNew(int index, Vector2 value, FloorListNode next)
 {
     return(new FloorListNode(Numerator * DenominatorBase + index, DenominatorExpo - 1, value, next));
 }
 public FloorListEnumerator(FloorListNode begin)
 {
     this.begin = begin;
 }