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

Change language to:
English - Français - Português

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

Scilab help >> Graphics Library > 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
<< 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:
Thu Mar 03 11:00:59 CET 2011