@Test
public void testDivide() {

  final Vector3 vec1 = new Vector3(1, -1, 2);
  final Vector3 vec2 = vec1.divide(2.0, null);
  final Vector3 vec2B = vec1.divide(2.0, new Vector3());
  assertEquals(new Vector3(0.5, -0.5, 1.0), vec2);
  assertEquals(new Vector3(0.5, -0.5, 1.0), vec2B);
  vec2.divideLocal(0.5);
  assertEquals(new Vector3(1.0, -1.0, 2.0), vec2);
  final Vector3 vec3 = vec1.divide(vec2, null);
  final Vector3 vec3B = vec1.divide(vec2, new Vector3());
  assertEquals(Vector3.ONE, vec3);
  assertEquals(Vector3.ONE, vec3B);
  final Vector3 vec4 = vec1.divide(2, 3, 4, null);
  final Vector3 vec4B = vec1.divide(2, 3, 4, new Vector3());
  assertEquals(new Vector3(0.5, -1 / 3., 0.5), vec4);
  assertEquals(new Vector3(0.5, -1 / 3., 0.5), vec4B);
  vec1.divideLocal(0.5, 0.5, 0.5);
  assertEquals(new Vector3(2, -2, 4), vec1);
  vec1.divideLocal(vec2);
  assertEquals(new Vector3(2, 2, 2), vec1);
}