Equivalent of CGPoint with integers?
        Posted  
        
            by Ivan Vucica
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Ivan Vucica
        
        
        
        Published on 2010-04-10T10:40:53Z
        Indexed on 
            2010/04/10
            10:43 UTC
        
        
        Read the original article
        Hit count: 425
        
Cheers,
I like strict typing in C. Therefore, I don't want to store a 2D vector of floats if I specifically need integers. Is there an Apple-provided equivalent of CGPoint which stores data as integers?
I've implemented my type Vector2i and its companion function Vector2iMake() à la CGPoint, but something deep in me screams that Apple was there already.
© Stack Overflow or respective owner