public Vector getPoints ( double inc ) { Vector arc = new Vector ( ) ; double angulo ; int iempieza = ( int ) empieza + 1 ; int iacaba = ( int ) acaba ; if ( empieza <= acaba ) { addNode ( arc , empieza ) ; for ( angulo = iempieza ; angulo <= iacaba ; angulo += inc ) { addNode ( arc , angulo ) ; } addNode ( arc , acaba ) ; } else { addNode ( arc , empieza ) ; for ( angulo = iempieza ; angulo <= 360 ; angulo += inc ) { addNode ( arc , angulo ) ; } for ( angulo = 1 ; angulo <= iacaba ; angulo += inc ) { addNode ( arc , angulo ) ; } addNode ( arc , angulo ) ; } Point2D aux = ( Point2D ) arc . get ( arc . size ( ) - 1 ) ; double aux1 = Math . abs ( aux . getX ( ) - coord2 . getX ( ) ) ; double aux2 = Math . abs ( aux . getY ( ) - coord2 . getY ( ) ) ; return arc ; }
This method calculates an arc in a Gis geometry model . This arc is represented in this model by a Vector of Point2D . The distance between points in the arc is given as an argument