In Cocoa there is a NSPoint type to represent points in 2d-space. I can't find a way to represent a 3D type. Is there one and in that case what is it called? Or should I roll my own?
Right, make your own. I use something like this:
typedef struct Point3D_ {
CGFloat x, y, z;
} Point3D;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With