@Test
public void testDistance() {

  final Ray3 ray1 = new Ray3();
  assertTrue(25.0 == ray1.distanceSquared(new Vector3(0, 5, 3), null));
  final Vector3 store = new Vector3();
  assertTrue(9.0 == ray1.distanceSquared(new Vector3(0, 3, 3), store));
  assertEquals(new Vector3(0, 0, 3), store);
  assertTrue(18.0 == ray1.distanceSquared(new Vector3(0, 3, -3), store));
  assertEquals(new Vector3(0, 0, 0), store);
}