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