Cross posting from Stack Overflow (not sure how to more correctly cross-post).
This started simple, as most things do...
I I just wanted a little structure to hold polar coordinates for a totally minor class...
But But starting with the second answer this answer and borrowing from existing Objective-C concepts like CGPointCGPoint
and CGSizeCGSize
, the simple struct quickly morphed into a more complete solution.
I have this all in a _polar.h file that I have included in my files and I was wondering what other things should be included and/or other criticism of my technique.
Am I approaching this thing correctly?
(noteNote: startPointstartPoint
and endPointendPoint
are part of the structure to help solve other problems in my class and are not necessarily "normal" parts of a polar structure.)
Cross posting from Stack Overflow (not sure how to more correctly cross-post).
This started simple, as most things do... I just wanted a little structure to hold polar coordinates for a totally minor class... But starting with the second answer and borrowing from existing Objective-C concepts like CGPoint and CGSize, the simple struct quickly morphed into a more complete solution.
I have this all in a _polar.h file that I have included in my files and I was wondering what other things should be included and/or other criticism of my technique.
Am I approaching this thing correctly?
(note: startPoint and endPoint are part of the structure to help solve other problems in my class and are not necessarily "normal" parts of a polar structure)
This started simple, as most things do. I just wanted a little structure to hold polar coordinates for a totally minor class. But starting with this answer and borrowing from existing Objective-C concepts like CGPoint
and CGSize
, the simple struct quickly morphed into a more complete solution.
I have this all in a _polar.h file that I have included in my files and I was wondering what other things should be included and/or other criticism of my technique. Am I approaching this thing correctly?
(Note: startPoint
and endPoint
are part of the structure to help solve other problems in my class and are not necessarily "normal" parts of a polar structure.)
Cross posting from Stack Overflow Stack Overflow (not sure how to more correctly cross-post).
This started simple, as most things do... I just wanted a little structure to hold polar coordinates for a totally minor class... But starting with the second answer the second answer and borrowing from existing Objective-C concepts like CGPoint and CGSize, the simple struct quickly morphed into a more complete solution.
Cross posting from Stack Overflow (not sure how to more correctly cross-post).
This started simple, as most things do... I just wanted a little structure to hold polar coordinates for a totally minor class... But starting with the second answer and borrowing from existing Objective-C concepts like CGPoint and CGSize, the simple struct quickly morphed into a more complete solution.
Cross posting from Stack Overflow (not sure how to more correctly cross-post).
This started simple, as most things do... I just wanted a little structure to hold polar coordinates for a totally minor class... But starting with the second answer and borrowing from existing Objective-C concepts like CGPoint and CGSize, the simple struct quickly morphed into a more complete solution.
Objective-C Polar Helper A structure and helper functions for working with polar coordinates
Cross posting from:http://stackoverflow.com/questions/15745964/objective-c-polar-helperStack Overflow (not sure how to more correctly cross-post).
This started simple, as most things do... I just wanted a little structure to hold polar coordinates for a totally minor class... But starting with the second answer at http://stackoverflow.com/questions/5691881/how-to-wrap-a-struct-into-nsobjectthe second answer and borrowing from existing Objective-C concepts like CGPoint and CGSize, the simple struct quickly morphed into a more complete solution.
Objective-C Polar Helper structure and functions
Cross posting from:http://stackoverflow.com/questions/15745964/objective-c-polar-helper (not sure how to more correctly cross-post).
This started simple, as most things do... I just wanted a little structure to hold polar coordinates for a totally minor class... But starting with the second answer at http://stackoverflow.com/questions/5691881/how-to-wrap-a-struct-into-nsobject and borrowing from existing Objective-C concepts like CGPoint and CGSize, the simple struct quickly morphed into a more complete solution.
A structure and helper functions for working with polar coordinates
Cross posting fromStack Overflow (not sure how to more correctly cross-post).
This started simple, as most things do... I just wanted a little structure to hold polar coordinates for a totally minor class... But starting with the second answer and borrowing from existing Objective-C concepts like CGPoint and CGSize, the simple struct quickly morphed into a more complete solution.