Cleaned up rect.inl