double function ( Point arg0 ) { if ( arg0 == null ) throw new NullPointerException ( ) ; if ( this . compareTo ( arg0 ) == 0 ) return Double . NEGATIVE_INFINITY ; if ( this . y == arg0 . y ) return 0 ; if ( this . x == arg0 . x ) return Double . POSITIVE_INFINITY ; return ( ( double ) ( arg0 . y - this . y ) / ( double ) ( arg0 . x - this . x ) ) ; }
returns the slope between this point and the specified point . formally , if the two points are x0 , y0 and x1 , y1 , then the slope is y1 - y0 / x1 - x0 . for completness , the slope is defined to be +0.0 if the line segment connecting the two points is horizontal ; double.positive _ infinity if the line segment is vertcal ; and double.negative _ infinity if x0 , y0 and x1 , y1 are equal . concode_field_sep int x concode_elem_sep int y concode_elem_sep Point p concode_field_sep int compare concode_elem_sep Comparator<Point> slopeOrder concode_elem_sep void drawTo concode_elem_sep String toString concode_elem_sep void main concode_elem_sep void draw concode_elem_sep int compareTo