[API Review] RT-27087: Point2D & Point3D multiplication

Pavel Safrata pavel.safrata at oracle.com
Fri Jan 18 10:56:35 PST 2013

Hi Pedro,

On 18.1.2013 19:18, Pedro Duque Vieira wrote:
> Hi Pavel,
> Yes that seems like a nice addition, I believe I mentioned it.

I don't think so..

> On another note, do you have methods to get whether Point2D/Point3D 
> represents a vector or a point?

.. you did, however, ask that question and even accepted the answer :-) 
Here is the old discussion:

 >>>  Again, you are using Point as a vector although without separating 
them into distinct classes and you should distinguish the two. It makes 
no sense to add two points, make the cross product, etc.

 >> We are using one class for them just because we cannot distinguish 
them. If we added such flag, what would be the default value? The 
existing applications use Point3D both as point and as vector, so some 
of the usages would always become invalid. So again, because of the 
backward compatibility we need to represent point and vector by the same 

 > Ok, fair.

> Thanks, keep up the great work, best regards,


> -- 
> Pedro Duque Vieira 

More information about the openjfx-dev mailing list