public Vector2f setX(float x) {
        this.x = x;
        return this;
    }
Sets the X component.

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