rotate method

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

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

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

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

Implementation

Sp3dFragment rotate(Sp3dObj parent, Sp3dV3D norAxis, double radian) {
  for (Sp3dFace i in faces) {
    i.rotate(parent, norAxis, radian);
  }
  return this;
}