Matrix4d.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> From <a href="http://en.wikipedia.org/wiki/Rotation_matrix#Rotation_matrix_from_axis_and_angle">Wikipedia</a>

@param angle the angle in radians @param x the x-coordinate of the axis to rotate about @param y the y-coordinate of the axis to rotate about @param z the z-coordinate of the axis to rotate about @return this

  1. Matrix4d rotation(double angle, double x, double y, double z)
    struct Matrix4d
    ref return
    rotation
    (
    double angle
    ,
    double x
    ,
    double y
    ,
    double z
    )
  2. Matrix4d rotation(double angle, Vector3d axis)
  3. Matrix4d rotation(AxisAngle4d angleAxis)
  4. Matrix4d rotation(Quaterniond quat)

Meta