I am trying to draw a plane on which can be graphed on by a calculator, and I know you can draw axis with one or a few lines of code but i do not know what they are.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe what you are looking for is NSBezierPath. It has methods like:
You may also want to take a look at NSColor which you will need to use to set what the stroke color is.
In iOS, the roughly equivalent class is UIBezierPath.