public Vector3f getTranslation(Vector3f trans) {
        if (trans == null) {
            trans = new Vector3f();
        }
        trans.set(this.translation);
        return trans;
    }
Copies the translation component to the argument. If the argument is
null, a new Vector3f is created to hold the value. Either way, the
current instance is unaffected, unless the argument is its scaling
component.

@param trans storage for the result (modified if not null)
@return the translation offsets (either <code>trans</code> or a new
    Vector3f)
jme3-core/src/main/java/com/jme3/math/Transform.java