@Test
public void createsLengthSegmentWithStartPoint() {

    final Scalar<Double> length = new Random<>();
    final Vect<Double> start = new RandomPoint<>();
    final Segment<Double> seg = new LengthSegment<>(start, length);
    final Field<Double> dec = new Decimal();
    final double error = 1.e-6;
    MatcherAssert.assertThat(
        Math.abs(length.value(dec)),
        Matchers.closeTo(new SegmentLength<Double>(seg).value(dec), error)
    );
    MatcherAssert.assertThat(seg.start(), Matchers.equalTo(start));
}