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