[ 
https://issues.apache.org/jira/browse/GEOMETRY-118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17308619#comment-17308619
 ] 

Gilles Sadowski commented on GEOMETRY-118:
------------------------------------------

{quote}At least I should not get a "wrong" value if I accidentally call this 
method.
{quote}
Bugs (or numerical accuracy) notwithstanding, the code will return what the 
caller asked for; it should not try and guess user's intent.

IIUC, the check prevents the method to be called on certain instances of the 
class. Why not have only the 2-args method, letting the user create a valid 
instance (i.e. one in which {{m01}} is 0)?

> AffineTransformMatrix2D should support direct transformation of x/y values
> --------------------------------------------------------------------------
>
>                 Key: GEOMETRY-118
>                 URL: https://issues.apache.org/jira/browse/GEOMETRY-118
>             Project: Apache Commons Geometry
>          Issue Type: Improvement
>            Reporter: Christoph Läubrich
>            Priority: Major
>
> [~mattjuntunen] as discussed on the mailinglist, it would be convenient if 
> there would be methods to directly transform a single x/y value instead of 
> using vectors and/or export the matrix as an array and perform it manually.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to