NPlot.PiAxis.WorldTickPositions_FirstPass C# (CSharp) Метод

WorldTickPositions_FirstPass() приватный Метод

Determines the positions, in world coordinates, of the large ticks. Label axes do not have small ticks.
private WorldTickPositions_FirstPass ( Point physicalMin, Point physicalMax, ArrayList &largeTickPositions, ArrayList &smallTickPositions ) : void
physicalMin Point The physical position corresponding to the world minimum of the axis.
physicalMax Point The physical position corresponding to the world maximum of the axis.
largeTickPositions System.Collections.ArrayList ArrayList containing the positions of the large ticks.
smallTickPositions System.Collections.ArrayList null
Результат void
        internal override void WorldTickPositions_FirstPass(
            Point physicalMin,
            Point physicalMax,
            out ArrayList largeTickPositions,
            out ArrayList smallTickPositions
            )
        {
            smallTickPositions = null;
            largeTickPositions = new ArrayList();

            int start = (int)Math.Ceiling( this.WorldMin / Math.PI );
            int end = (int)Math.Floor( this.WorldMax / Math.PI );

            // sanity checking.
            if ( end - start < 0 || end - start > 30 )
            {
                return;
            }

            for (int i=start; i<end; ++i)
            {
                largeTickPositions.Add( i*Math.PI );
            }
        }