translation = (Vector3f)capsule.readSavable("translation", null);
if( translation == null ) {
translation = new Vector3rf();
}
…would save creating garbage objects just to throw them away in most cases.
translation = (Vector3f)capsule.readSavable("translation", null);
if( translation == null ) {
translation = new Vector3rf();
}
…would save creating garbage objects just to throw them away in most cases.