The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 rotate a line curve
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jqian

USA
Posts

Posted - 01/03/2008 :  11:50:10 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5
Operating System:

May I know how to rotate a curve to a certain angle such as 5 degrees?
Thanks.

jqian

USA
Posts

Posted - 01/16/2008 :  11:02:03 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply

// if column1 is x and column2 is y. and if you want to turn the curve to angle 45 degrees do following:


work -a 2; //add 2 columns at the end of the worksheet;

Enter_angle =45;

col(3)=SQRT(col(1)*col(1)+col(2)*col(2))*cos(atan(col(2)/col(1))+Enter_Angle*PI/180);
col(4)=SQRT(col(1)*col(1)+col(2)*col(2))*sin(atan(col(2)/col(1))+Enter_Angle*PI/180);

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000