public LineSegment subSegment ( double offset , double length ) { Point subSegmentStart = pointAlongLineSegment ( offset ) ; Point subSegmentEnd = pointAlongLineSegment ( offset + length ) ; return new LineSegment ( subSegmentStart , subSegmentEnd ) ; }
LineSegment that starts at offset from start and runs for length towards end point