一般枢轴点旋转或绕固定点旋转

2025 年 3 月 17 日 | 阅读 1 分钟

对于它,首先使用旋转函数。下面给出了绕原点旋转对象的步骤序列。

  1. 如图 (b) 所示,将对象从其原始位置平移到原点
  2. 如图 (c) 所示,绕原点旋转对象。
  3. 如图 (d) 所示,将对象从原点平移到其原始位置。这称为反向平移。
General Pivot Point Rotation or Rotation about Fixed Point

上述 3 个步骤的矩阵乘法如下所示

General Pivot Point Rotation or Rotation about Fixed Point

相对于固定点的缩放

为此,执行以下步骤

步骤 1: 如图 (a) 所示,将对象保持在所需位置

步骤 2: 平移对象,使其中心与原点重合,如图 (b) 所示

步骤 3: 通过将对象保持在原点来进行对象的缩放,如图 (c) 所示

步骤 4: 再次进行平移。此平移称为反向平移。

General Pivot Point Rotation or Rotation about Fixed Point
下一个主题窗口