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
 All Forums
 Origin Forum
 Origin Forum
 rotate a line curve

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
jqian Posted - 01/03/2008 : 11:50:10 AM
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.

1   L A T E S T    R E P L I E S    (Newest First)
jqian Posted - 01/16/2008 : 11:02:03 PM

// 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);


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000