Affine transforms - matrix algebra

Dr. Michael Paus mp at jugs.org
Mon Jul 23 07:53:25 PDT 2012


Am 23.07.2012 15:58, schrieb Pavel Safrata:
> Hello,
>
> On 23.7.2012 13:38, Dr. Michael Paus wrote:
>> Am 23.07.2012 11:11, schrieb Pavel Safrata:
>>>
>>> We need to add manual transformation methods to Transfrom class. 
>>> This is very important, I can't believe I've forgotten them..
>>>     public Point3D transform(Point3D point)
>>>     public Bounds transform(Bounds bounds)
>>> Any other?
>>
>> What about Point2D and the other geometries?
>
> Why not, but would it return Point2D and throw an exception for 3D 
> transform? Or would it return Point3D? I'd probably vote for the first 
> option.
Me too. If you are using Point2D you probably expect to stay in the 2D 
space.

> What other geometries would you like to use?
You support Bounds but not Rectangle2D. But I am not sure whether it 
really makes sense to consider this.
>
>>
>> What about "inverse"?
>
> Do you mean that you would like to have a convenience method for
> createInverseTransform().transform(...)?
>
> Thanks,
> Pavel
>
>>
>> Michael
>>
>
>


-- 
--------------------------------------------------------------------------------------
Dr. Michael Paus, Chairman of the Java User Group Stuttgart e.V. (JUGS).
For more information visit www.jugs.de.



More information about the openjfx-dev mailing list