Why is there a difference between CGRectInfinite and a CGRect with all members set to INFINITY?
问题 When working with (contentless) SpriteKit nodes I bumped into an infinite rectangle NSLog(@"%@", NSStringFromCGRect([node calculateAccumulatedFrame])); which outputted {{inf, inf}, {inf, inf}} I thought to check for this with CGRectIsInfinite , but that test failed, which lead me to trying the following check CGRect rect = [node calculateAccumulatedFrame]; if (rect.origin.x == INFINITY && rect.origin.y == INFINITY && rect.size.width == INFINITY && rect.size.height == INFINITY) { if (