Matrix3d.rotation

Set this matrix to a rotation matrix which rotates the given radians about a given axis. <p> When used with a right-handed coordinate system, the produced rotation will rotate a vector counter-clockwise around the rotation axis, when viewing along the negative axis direction towards the origin. When used with a left-handed coordinate system, the rotation is clockwise. <p> The resulting matrix can be multiplied against another transformation matrix to obtain an additional rotation. <p> In order to post-multiply a rotation transformation directly to a matrix, use {@link #rotate(double, Vector3d) rotate()} instead.

@see #rotate(double, Vector3d)

@param angle the angle in radians @param axis the axis to rotate about (needs to be {@link Vector3d#normalize() normalized}) @return this

Meta