@Test
public void testNewUnitVector() throws Exception {

    Vector2d unit = VecmathUtil.newUnitVector(new Point2d(4, 2), new Point2d(6, 7));
    assertThat(unit.x, closeTo(0.371d, 0.01));
    assertThat(unit.y, closeTo(0.928d, 0.01));
    assertThat(unit.length(), closeTo(1d, 0.01));
}