public Vector2f set(float x, float y) {
        this.x = x;
        this.y = y;
        return this;
    }
Sets both components to specified values.

@param x the desired X component
@param y the desired Y component
@return the (modified) current instance (for chaining)
jme3-core/src/main/java/com/jme3/math/Vector2f.java