Function rotate_row_vector

Function Documentation

arma::frowvec rotate_row_vector(const arma::frowvec &v, float angle)

Rotate a 2D row vector by a given angle.

Parameters:
  • v – Row vector (size 2).

  • angle – Rotation angle in radians.

Returns:

Rotated row vector.