示例#1
0
        static void Update(ref CullHeights ch, ushort v)
        {
            float f = v * Page.Scale * Page.Offset;

            if (f < ch.bottom)
            {
                ch.bottom = f;
            }
            if (f > ch.top)
            {
                ch.top = f;
            }
        }
示例#2
0
 static void Update(ref CullHeights ch, ushort v)
 {
   float f = v * Page.Scale * Page.Offset;
   if (f < ch.bottom) ch.bottom = f;
   if (f > ch.top) ch.top = f;
 }