private float getMaxAxis(Vector3f scale) {
        float x = FastMath.abs(scale.x);
        float y = FastMath.abs(scale.y);
        float z = FastMath.abs(scale.z);

        if (x >= y) {
            if (x >= z) {
                return x;
            }
            return z;
        }

        if (y >= z) {
            return y;
        }

        return z;
    }
<code>transform</code> modifies the center of the sphere to reflect the
change made via a rotation, translation and scale.

@param trans
           the transform to apply
@param store
           sphere to store result in
@return either store or a new BoundingSphere
jme3-core/src/main/java/com/jme3/bounding/BoundingSphere.java