private static void getShapeEndPoint ( int type , float [ ] coords , float [ ] point ) { // start index of the end point for the segment type int pointIndex = ( getNumberOfPoints ( type ) - 1 ) * 2 ; point [ 0 ] = coords [ pointIndex ] ; point [ 1 ] = coords [ pointIndex + 1 ] ; }
Returns the end point of a given segment