#42 LinearLocation setToEnd() method setting fraction to 1.0?

v1.0 (example)
open
nobody
fraction (1)
9
2013-09-06
2013-09-06
bigos
No

code of setToEnd()
http://grepcode.com/file/repo1.maven.org/maven2/com.vividsolutions/jts/1.13/com/vividsolutions/jts/linearref/LinearLocation.java#LinearLocation.setToEnd%28com.vividsolutions.jts.geom.Geometry%29

And then in getEndLocation()
http://grepcode.com/file/repo1.maven.org/maven2/com.vividsolutions/jts/1.13/com/vividsolutions/jts/linearref/LinearLocation.java#LinearLocation.getEndLocation%28com.vividsolutions.jts.geom.Geometry%29

So if we have a segment with 3 points, the end point location is:
index: 2
fraction: 1.0

This is either my bad understanding of index/fraction representation or a pretty major bug...

which should be IMO index: 2, fraction 0.0 as it's last point and nothing further...

Discussion