[OpenJDK 2D-Dev] RFR 8149338: JVM Crash caused by Marlin renderer not handling NaN coordinates
    Jim Graham 
    james.graham at oracle.com
       
    Tue Feb  9 23:43:04 UTC 2016
    
    
  
On 2/9/16 12:51 AM, Laurent Bourgès wrote:
> + final double slope = (x1d - x2) / (y1d - y2);
>
> I prefer this syntax as it is more explicit that (x1d - x2) and (y1d -
> y2) are double values (not implicit promotion).
I see.  Arguably both are implicit promotion, though, no?
Mathematiconceptually, "x2 as a double minus x1d" and "y2 as a double 
minus y1d" are the values one would associate with a slope calculation, 
type promotion semantics aside.
But, both are correct so I'm happy with either way that you are 
comfortable maintaining the code...
			...jim
    
    
More information about the 2d-dev
mailing list