Matrix2d.rotateLocal

Pre-multiply a rotation to this matrix by rotating the given amount of radians about the origin. <p> The produced rotation will rotate a vector counter-clockwise around the origin. <p> If <code>M</code> is <code>this</code> matrix and <code>R</code> the rotation matrix, then the new matrix will be <code>R * M</code>. So when transforming a vector <code>v</code> with the new matrix by using <code>R * M * v</code>, the rotation will be applied last! <p> In order to set the matrix to a rotation matrix without pre-multiplying the rotation transformation, use {@link #rotation(double) rotation()}. <p> Reference: <a href="https://en.wikipedia.org/wiki/Rotation_matrix#In_two_dimensions">http://en.wikipedia.org</a>

@see #rotation(double)

@param angle the angle in radians to rotate about the X axis @return this

  1. Matrix2d rotateLocal(double angle)
    struct Matrix2d
    ref public return
    rotateLocal
    (
    double angle
    )
  2. Matrix2d rotateLocal(double angle, Matrix2d dest)

Meta