You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Luc Maisonobe (JIRA)" <ji...@apache.org> on 2011/06/15 21:24:47 UTC

[jira] [Commented] (MATH-592) Convenience Methods for Retrieving the Start and End Points of a SubLine

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

Luc Maisonobe commented on MATH-592:
------------------------------------

Fixed in subversion as of r1136154.
A constructor using two endpoints has also been added.
Could you check if the API suits your needs ? The new method is called getSegments and returns a list of Vector2D arrays. Each element of the list correspond to one segment of the subline, and is contains exactly two points: a start point at index 0 and an endpoint at index 1. Perhaps a dedicated class with a getStart() and getEnd() methods would be better than a two points array.
Provisions have been taken for half-infinite or full lines (first and last points will have infinite coordinates with the right sign).

> Convenience Methods for Retrieving the Start and End Points of a SubLine
> ------------------------------------------------------------------------
>
>                 Key: MATH-592
>                 URL: https://issues.apache.org/jira/browse/MATH-592
>             Project: Commons Math
>          Issue Type: New Feature
>    Affects Versions: 3.0
>            Reporter: Curtis Jensen
>            Priority: Minor
>              Labels: Geometry, math
>             Fix For: 3.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> For convenience, it would be helpful to have methods in the SubLine class to retrieve the start and end points of the SubLine.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira