Matrix2d.rotate

Apply rotation about the origin to this matrix by rotating the given amount of radians. <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>M * R</code>. So when transforming a vector <code>v</code> with the new matrix by using <code>M * R * v</code> , the rotation will be applied first! <p> Reference: <a href="https://en.wikipedia.org/wiki/Rotation_matrix#In_two_dimensions">http://en.wikipedia.org</a>

@param angle the angle in radians @return this

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

Meta