rotate method
(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;
}