11#ifndef UTIL_TRANSFORMATION_H
12#define UTIL_TRANSFORMATION_H
30std::vector<double>
rotateCW2D(
const std::vector<double> &x,
47std::vector<double>
rotateACW2D(
const std::vector<double> &x,
64std::vector<double>
rotate2D(
const std::vector<double> &x,
const double &theta);
Collection of methods useful in simulation.
std::vector< double > rotate2D(const std::vector< double > &x, const double &theta)
Rotates a vector in xy-plane assuming ACW convention.
double angle(util::Point a, util::Point b)
Computes angle between two vectors.
util::Point derRotate2D(const util::Point &x, const double &theta)
Computes derivative of rotation wrt to time.
std::vector< double > rotateACW2D(const std::vector< double > &x, const double &theta)
Rotates a vector in xy-plane in anti-clockwise direction.
std::vector< double > rotateCW2D(const std::vector< double > &x, const double &theta)
Rotates a vector in xy-plane in clockwise direction.
util::Point rotate(const util::Point &p, const double &theta, const util::Point &axis)
Returns the vector after rotating by desired angle.
A structure to represent 3d vectors.