Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.0 - Português

Change language to:
English - Français - 日本語 -

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

Manual Scilab >> Biblioteca de Gráficos > transform > rotate

rotate

rotação de um conjunto de pontos

Seqüência de Chamamento

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

Parâmetros

xy

matriz de tamanho (2,.).

xy1

matriz de tamanho (2,.).

theta

real, ângulo em radianos; o valor padrão é 0.

orig

centro de rotação; o valor padrão é [0;0].

Descrição

rotate executa a rotação com o ângulo theta:

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

onde M é a matriz de rotação correspondente.

Exemplos

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-2023 (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:
Wed Jan 26 16:24:40 CET 2011