/** * Check a transform... if it is null or one of its members are invalid, return false. Else return * true. * * @param transform the transform to check * @return true or false as stated above. */ public static boolean isValid(final CCTransform transform) { if (transform == null) { return false; } if (!CCVector3.isValid(transform.scale()) || !CCVector3.isValid(transform.translation()) || !CCMatrix3x3.isValid(transform.getMatrix())) { return false; } return true; }