commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raymond DeCampo (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MATH-1284) Vector is-not-a Point
Date Sat, 06 May 2017 15:12:04 GMT

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

Raymond DeCampo commented on MATH-1284:
---------------------------------------

OK, I have made the change to {{Cartesian?D}}.  I have also restored the {{Vector?D}} as abstract
classes which {{Cartesian?D}} extend - I thought that would be easier on existing client code.

I also made an attempt to update the javadoc and supporting files.

Please take another look at the {{feature-MATH-1284}} branch for review.

> Vector is-not-a Point
> ---------------------
>
>                 Key: MATH-1284
>                 URL: https://issues.apache.org/jira/browse/MATH-1284
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.5
>            Reporter: Roman Werpachowski
>            Priority: Minor
>             Fix For: 4.0
>
>
> The class hierarchy for geometry claims that Vector is-a Point: https://commons.apache.org/proper/commons-math/apidocs/org/apache/commons/math3/geometry/Point.html
> This is mathematically incorrect, see e.g. http://math.stackexchange.com/a/645827
> Just because they share the same numerical representation, Point and Vector shouldn't
be crammed into a common class hierarchy.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message