@Test public void testSubtractLocal3() { final Vector3f target = new Vector3f(12.0f, 8.0f, 5.0f); final Vector3f retval = target.subtractLocal(null); assertNull(retval); }
public Vector3f subtractLocal(Vector3f vec) { if (null == vec) { logger.warning("Provided vector is null, null returned."); return null; } x -= vec.x; y -= vec.y; z -= vec.z; return this; }
Vector3f implements Savable, Cloneable, java.io.Serializable { public Vector3f subtractLocal(Vector3f vec) { if (null == vec) { logger.warning("Provided vector is null, null returned."); return null; } x -= vec.x; y -= vec.y; z -= vec.z; return this; } }
Vector3f implements Savable, Cloneable, java.io.Serializable { public Vector3f subtractLocal(Vector3f vec) { if (null == vec) { logger.warning("Provided vector is null, null returned."); return null; } x -= vec.x; y -= vec.y; z -= vec.z; return this; } Vector3f();  Vector3f(float x, float y, float z);  Vector3f(Vector3f copy); }
Vector3f implements Savable, Cloneable, java.io.Serializable { public Vector3f subtractLocal(Vector3f vec) { if (null == vec) { logger.warning("Provided vector is null, null returned."); return null; } x -= vec.x; y -= vec.y; z -= vec.z; return this; } Vector3f();  Vector3f(float x, float y, float z);  Vector3f(Vector3f copy); Vector3f set(float x, float y, float z); Vector3f set(Vector3f vect); Vector3f add(Vector3f vec); Vector3f add(Vector3f vec, Vector3f result); Vector3f addLocal(Vector3f vec); Vector3f add(float addX, float addY, float addZ); Vector3f addLocal(float addX, float addY, float addZ); Vector3f scaleAdd(float scalar, Vector3f add); Vector3f scaleAdd(float scalar, Vector3f mult, Vector3f add); float dot(Vector3f vec); Vector3f cross(Vector3f v); Vector3f cross(Vector3f v, Vector3f result); Vector3f cross(float otherX, float otherY, float otherZ, Vector3f result); Vector3f crossLocal(Vector3f v); Vector3f crossLocal(float otherX, float otherY, float otherZ); Vector3f project(Vector3f other); Vector3f projectLocal(Vector3f other); boolean isUnitVector(); float length(); float lengthSquared(); float distanceSquared(Vector3f v); float distance(Vector3f v); Vector3f mult(float scalar); Vector3f mult(float scalar, Vector3f product); Vector3f multLocal(float scalar); Vector3f multLocal(Vector3f vec); Vector3f multLocal(float x, float y, float z); Vector3f mult(Vector3f vec); Vector3f mult(Vector3f vec, Vector3f store); Vector3f divide(float scalar); Vector3f divideLocal(float scalar); Vector3f divide(Vector3f scalar); Vector3f divideLocal(Vector3f scalar); Vector3f negate(); Vector3f negateLocal(); Vector3f subtract(Vector3f vec); Vector3f subtractLocal(Vector3f vec); Vector3f subtract(Vector3f vec, Vector3f result); Vector3f subtract(float subtractX, float subtractY, float subtractZ); Vector3f subtractLocal(float subtractX, float subtractY, float subtractZ); Vector3f normalize(); Vector3f normalizeLocal(); Vector3f maxLocal(Vector3f other); Vector3f minLocal(Vector3f other); Vector3f zero(); float angleBetween(Vector3f otherVector); Vector3f interpolateLocal(Vector3f finalVec, float changeAmnt); Vector3f interpolateLocal(Vector3f beginVec, Vector3f finalVec, float changeAmnt); static boolean isValidVector(Vector3f vector); static void generateOrthonormalBasis(Vector3f u, Vector3f v, Vector3f w); static void generateComplementBasis(Vector3f u, Vector3f v,
            Vector3f w); @Override Vector3f clone(); float[] toArray(float[] floats); @Override boolean equals(Object o); boolean isSimilar(Vector3f other, float epsilon); @Override int hashCode(); @Override String toString(); @Override void write(JmeExporter e); @Override void read(JmeImporter e); float getX(); Vector3f setX(float x); float getY(); Vector3f setY(float y); float getZ(); Vector3f setZ(float z); float get(int index); void set(int index, float value); }
Vector3f implements Savable, Cloneable, java.io.Serializable { public Vector3f subtractLocal(Vector3f vec) { if (null == vec) { logger.warning("Provided vector is null, null returned."); return null; } x -= vec.x; y -= vec.y; z -= vec.z; return this; } Vector3f();  Vector3f(float x, float y, float z);  Vector3f(Vector3f copy); Vector3f set(float x, float y, float z); Vector3f set(Vector3f vect); Vector3f add(Vector3f vec); Vector3f add(Vector3f vec, Vector3f result); Vector3f addLocal(Vector3f vec); Vector3f add(float addX, float addY, float addZ); Vector3f addLocal(float addX, float addY, float addZ); Vector3f scaleAdd(float scalar, Vector3f add); Vector3f scaleAdd(float scalar, Vector3f mult, Vector3f add); float dot(Vector3f vec); Vector3f cross(Vector3f v); Vector3f cross(Vector3f v, Vector3f result); Vector3f cross(float otherX, float otherY, float otherZ, Vector3f result); Vector3f crossLocal(Vector3f v); Vector3f crossLocal(float otherX, float otherY, float otherZ); Vector3f project(Vector3f other); Vector3f projectLocal(Vector3f other); boolean isUnitVector(); float length(); float lengthSquared(); float distanceSquared(Vector3f v); float distance(Vector3f v); Vector3f mult(float scalar); Vector3f mult(float scalar, Vector3f product); Vector3f multLocal(float scalar); Vector3f multLocal(Vector3f vec); Vector3f multLocal(float x, float y, float z); Vector3f mult(Vector3f vec); Vector3f mult(Vector3f vec, Vector3f store); Vector3f divide(float scalar); Vector3f divideLocal(float scalar); Vector3f divide(Vector3f scalar); Vector3f divideLocal(Vector3f scalar); Vector3f negate(); Vector3f negateLocal(); Vector3f subtract(Vector3f vec); Vector3f subtractLocal(Vector3f vec); Vector3f subtract(Vector3f vec, Vector3f result); Vector3f subtract(float subtractX, float subtractY, float subtractZ); Vector3f subtractLocal(float subtractX, float subtractY, float subtractZ); Vector3f normalize(); Vector3f normalizeLocal(); Vector3f maxLocal(Vector3f other); Vector3f minLocal(Vector3f other); Vector3f zero(); float angleBetween(Vector3f otherVector); Vector3f interpolateLocal(Vector3f finalVec, float changeAmnt); Vector3f interpolateLocal(Vector3f beginVec, Vector3f finalVec, float changeAmnt); static boolean isValidVector(Vector3f vector); static void generateOrthonormalBasis(Vector3f u, Vector3f v, Vector3f w); static void generateComplementBasis(Vector3f u, Vector3f v,
            Vector3f w); @Override Vector3f clone(); float[] toArray(float[] floats); @Override boolean equals(Object o); boolean isSimilar(Vector3f other, float epsilon); @Override int hashCode(); @Override String toString(); @Override void write(JmeExporter e); @Override void read(JmeImporter e); float getX(); Vector3f setX(float x); float getY(); Vector3f setY(float y); float getZ(); Vector3f setZ(float z); float get(int index); void set(int index, float value); final static Vector3f ZERO; final static Vector3f NAN; final static Vector3f UNIT_X; final static Vector3f UNIT_Y; final static Vector3f UNIT_Z; final static Vector3f UNIT_XYZ; final static Vector3f POSITIVE_INFINITY; final static Vector3f NEGATIVE_INFINITY; public float x; public float y; public float z; }