PtDirLine implements Line<T> { @Override public final Vect<T> direction() { return this.dir; } PtDirLine(final Vect<T> point, final Vect<T> direction); @Override final Vect<T> direction(); @Override final Vect<T> point();  }
@Test public void buildsWithGivenArgs() { final RandomPoint<Double> point = new RandomPoint<>(); final RandomPoint<Double> dir = new RandomPoint<>(); final Line<Double> line = new PtDirLine<>(point, dir); MatcherAssert.assertThat( new PointInLine<>(point, line).resolve(new Decimal()), Matchers.is(true) ); MatcherAssert.assertThat(line.direction(), Matchers.is(dir)); }