public Vector2f set(Vector2f vec) {
        this.x = vec.x;
        this.y = vec.y;
        return this;
    }
Copies both components from the argument.

@param vec the Vector2f to copy (not null, unaffected)
@return the (modified) current instance (for chaining)
jme3-core/src/main/java/com/jme3/math/Vector2f.java