rotate method
(en)Return rotated this vector.
(ja)このベクトルを回転します。
norAxis
: normalized rotate axis vector.radian
: radian = degree * pi / 180.
Implementation
Sp3dV3D rotate(Sp3dV3D norAxis, double radian) {
Sp3dV3D c = rotated(norAxis, radian);
x = c.x;
y = c.y;
z = c.z;
return this;
}