Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.0 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilabヘルプ >> Graphics > transform > rotate

rotate

点の集合を回転

呼び出し手順

xy1=rotate(xy,[theta,orig])

引数

xy

大きさ (2,.)の行列.

xy1

大きさ (2,.)の行列.

theta

実数, 角度(単位:ラジアン); デフォルト値は 0.

orig

回転の中心 [xc;yc]; デフォルト値は [0;0].

説明

rotate は角度 thetaを指定した 回転を行います:

xy1(:,i) = M(theta) *(xy(:,i) - orig) + orig

ただし, M は対応する回転行列を意味します.

xsetech([0,0,1,1],[-1,-1,1,1])

xy=[(0:0.1:10);sin(0:0.1:10)]/10;

for i=2*%pi*(0:10)/10,

  [xy1]=rotate(xy,i);

  xpoly(xy1(1,:),xy1(2,:),"lines")

end
Report an issue
<< move transform scaling >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 14 15:10:31 CET 2017