rotate method

Sp3dFace rotate(
  1. Sp3dObj parent,
  2. Sp3dV3D norAxis,
  3. double radian
)

(en)Rotates all vectors of this face based on the specified axis.

(ja)この面の全てのベクトルを指定した軸をベースに回転させます。

  • parent : parent obj.
  • norAxis : normalized rotate axis vector.
  • radian : radian = degree * pi / 180.

Implementation

Sp3dFace rotate(Sp3dObj parent, Sp3dV3D norAxis, double radian) {
  for (int i in vertexIndexList) {
    parent.vertices[i].rotate(norAxis, radian);
  }
  return this;
}