source: class TestVector3 {
  
    @Test
    public void testMultiply() {
  
target:     final Vector3 vec1 = new Vector3(1, -1, 2);
      final Vector3 vec2 = vec1.multiply(2.0, null);
      final Vector3 vec2B = vec1.multiply(2.0, new Vector3());
      assertEquals(new Vector3(2.0, -2.0, 4.0), vec2);
      assertEquals(new Vector3(2.0, -2.0, 4.0), vec2B);
  
      vec2.multiplyLocal(0.5);
      assertEquals(new Vector3(1.0, -1.0, 2.0), vec2);
  
      final Vector3 vec3 = vec1.multiply(vec2, null);
      final Vector3 vec3B = vec1.multiply(vec2, new Vector3());
      assertEquals(new Vector3(1, 1, 4), vec3);
      assertEquals(new Vector3(1, 1, 4), vec3B);
  
      final Vector3 vec4 = vec1.multiply(2, 3, 2, null);
      final Vector3 vec4B = vec1.multiply(2, 3, 2, new Vector3());
      assertEquals(new Vector3(2, -3, 4), vec4);
      assertEquals(new Vector3(2, -3, 4), vec4B);
  
      vec1.multiplyLocal(0.5, 0.5, 0.5);
      assertEquals(new Vector3(0.5, -0.5, 1.0), vec1);
  
      vec1.multiplyLocal(vec2);
      assertEquals(new Vector3(0.5, 0.5, 2.0), vec1);
    }
  
  }