What would be the formula to rotate a curve by the x axis in java?
Share
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.
Assuming you have the curve as an array of Points here is something like a pseudocode:
How does it work? In fact I try to mirror the curve’s normalized coordinates – that is the coordinates that the points would have if they started from
x = 0(the formula for that ispoint.x - x_min) and then you subtract the result from x_max so that the curve now is defined right to left instead of left to right.