commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luc Maisonobe <Luc.Maison...@free.fr>
Subject Re: [math] Point Translation
Date Wed, 15 Jun 2011 18:57:42 GMT
Hi Curtis,

Le 15/06/2011 17:59, Curtis Jensen a écrit :
> In the commons math 3.0 Geometry package, How can I translate I
> Vector2D by a distance and angle?
> I would like to move a 2D point by a specified distance and angle, but
> I'm not seeing how.

You can use the static method getTransform to convert a 
java.awt.AffineTransform into a 
org.apache.commons.math.geometry.partitioning.Transform<Euclidean2D, 
Euclidean1D>.

This transform can be applied points, hyperplanes and sub-hyperplanes. 
when applied to sub-hyperplanes, it takes care of transforming the 1D 
intervals sets underneath.

Luc

>
> Thanks,
> Curtis
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message