6162636465666768697071
assertEquals(14, vec3.y(),0.0001); Vector2f vec4 = new Vector2f(4,0); vec4.normalize(); assertEquals(1, vec4.length(), 0.0001); vec4.scale(3f); assertEquals(3, vec4.length(), 0.0001); } @Test public void testRectangle()