You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by GitBox <gi...@apache.org> on 2018/05/21 04:48:03 UTC

[GitHub] darkma773r opened a new pull request #2: GEOMETRY-2: Points and Vectors API Updates

darkma773r opened a new pull request #2: GEOMETRY-2: Points and Vectors API Updates
URL: https://github.com/apache/commons-geometry/pull/2
 
 
   The main driver behind these changes was to try to clean up the API as it relates to points and vectors. The interfaces did not allow enough information to be passed down to the concrete classes so they ended up having to perform a lot of casting to concrete types internally in order to do any work. The changes here remove that. I've also created separate Point and Vector types (as opposed to the combined Cartesian type) since that better reflects the math that we're trying to represent and the names are far more intuitive.
   
   You'll notice that there is no longer a Space class. That's because it had very little functionality and was mainly used as a generic type parameter to identify which space is being worked with. I've merged both of these functionalities into the Point types themselves. This makes sense because the definition of a Point, with its description of the Point's structure and supported operations, completely defines a space.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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