    @Test
    public void testDistance() {

        final CCRay3 ray1 = new CCRay3();
        assertTrue(25.0 == ray1.distanceSquared(new CCVector3(0, 5, 3), null));

        final CCVector3 store = new CCVector3();
        assertTrue(9.0 == ray1.distanceSquared(new CCVector3(0, 3, 3), store));
        assertEquals(new CCVector3(0, 0, 3), store);
        assertTrue(18.0 == ray1.distanceSquared(new CCVector3(0, 3, -3), store));
        assertEquals(new CCVector3(0, 0, 0), store);
    }