public Vector2f mult(float scalar, Vector2f product) {
        if (null == product) {
            product = new Vector2f();
        }

        product.x = x * scalar;
        product.y = y * scalar;
        return product;
    }
Multiplies with the specified scalar and stores the product in the
specified vector. The current instance is unaffected.

@param scalar the scaling factor
@param product storage for the product, or null for a new Vector2f
@return either {@code product} or a new Vector2f
jme3-core/src/main/java/com/jme3/math/Vector2f.java