float[] radpts;
    private float[] getGreatVertices(float latp, float lonp, float latn,                                     float lonn, Point from, Point to,                                     boolean include_last, int nsegs) {        if (nsegs < 1) {            // calculate pixel distance            int dist = DrawUtil.pixel_distance(from.x, from.y, to.x, to.y);            // determine what would be a decent number of segments to            // draw.            // HACK: this is hardcoded calculated by what might look            // ok on            // screen. We also put a cap on the number of extra            // segments we            // draw.            nsegs = dist >> 3;// dist/8            if (nsegs == 0) {                nsegs = 1;            } else if (nsegs > NUM_DEFAULT_GREAT_SEGS) {                nsegs = NUM_DEFAULT_GREAT_SEGS;            }            //          Debug.output(            //                  "("+from.x+","+from.y+")("+to.x+","+to.y+")            // dist="+dist+" nsegs="+nsegs);        }        // both of these return float[] radian coordinates!        float[] radpts;        return GreatCircle.great_circle(latp,                lonp,                latn,                lonn,                nsegs,                include_last);    }