public void setTexCoords(Vector2f[] texCoords) throws IllegalArgumentException {
        if (texCoords.length != 4) {
            throw new IllegalArgumentException(
                    "Texture coordinates are 4 vertices, therefore a Vector2f array of length 4 must be provided.");
        }
        this.texCoords = texCoords;
        updateMesh();
    }
Sets the texture coordinates and updates the mesh accordingly.

@param texCoords the desired texture coordinates for each vertex (not
    null, alias created)
@throws IllegalArgumentException if the array length isn't exactly 4
jme3-core/src/main/java/com/jme3/scene/shape/RectangleMesh.java