تصویر:Matrix rotation.png
وکیپیڈیا سے

Matrix_rotation.png (4KB, MIME type: image/png
)
// scilab script (matrix function) // // draw triangle a1=[1.5 2 .5 1.5]; b1=[.5 2 1.5 .5]; xfpoly(a1,b1,2); // rotation angle (radians) theta=%pi/2; // rotation matrix A=[cos(theta) -sin(theta);sin(theta) cos(theta)]; // transform for k=1:4 z(1)=a1(k); z(2)=b1(k); w=A*z; a2(k)=w(1); b2(k)=w(2); end // draw rotated triangle xfpoly(a2,b2,5); square( -3,-3,3,3); // draw a line plot([0 1],[0 1],'b'); plot([0 -1],[0 1],'r'); //
File history
Legend: (cur) = this is the current file, (del) = delete
this old version, (rev) = revert to this old version.
Click on date to see the file uploaded on that date.
- (ضائع) ( رائج) 00:54, 9 جولائی 2006 . . Urdutext (تبادلۂ_خیال | شـراکـت) . . 493×493 (4,047 bytes) (<div align="left" dir="ltr"> <PRE> // scilab script (matrix function) // // draw triangle a1=[1.5 2 .5 1.5]; b1=[.5 2 1.5 .5]; xfpoly(a1,b1,2); // rotation angle (radians) theta=%pi/2; // rotation matrix A=[cos(theta) -sin(theta);sin(theta) cos(theta)])
- Edit this file using an external application
See the setup instructions for more information.
روابط
اس ملف (فائل) سے درج ذیل صفحات رابطہ رکھتے ہیں: