Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::geometry::strategy::transform::rotate_transformer< DegreeOrRadian, CalculationType, Dimension1, Dimension2 > Class Template Reference

Strategy for rotate transformation in Cartesian coordinate system. More...

#include <matrix_transformers.hpp>

Inheritance diagram for boost::geometry::strategy::transform::rotate_transformer< DegreeOrRadian, CalculationType, Dimension1, Dimension2 >:
Collaboration diagram for boost::geometry::strategy::transform::rotate_transformer< DegreeOrRadian, CalculationType, Dimension1, Dimension2 >:

Public Member Functions

 rotate_transformer (CalculationType const &angle)
 

Detailed Description

template<typename DegreeOrRadian, typename CalculationType, std::size_t Dimension1, std::size_t Dimension2>
class boost::geometry::strategy::transform::rotate_transformer< DegreeOrRadian, CalculationType, Dimension1, Dimension2 >

Strategy for rotate transformation in Cartesian coordinate system.

Rotate rotates a geometry of specified angle about a fixed point (e.g. origin).

See also
http://en.wikipedia.org/wiki/Rotation_%28mathematics%29
Template Parameters
DegreeOrRadiandegree/or/radian, type of rotation angle specification
Note
A single angle is needed to specify a rotation in 2D. Not yet in 3D, the 3D version requires special things to allow for rotation around X, Y, Z or arbitrary axis.
Todo:
The 3D version will not compile.

Constructor & Destructor Documentation

template<typename DegreeOrRadian , typename CalculationType , std::size_t Dimension1, std::size_t Dimension2>
boost::geometry::strategy::transform::rotate_transformer< DegreeOrRadian, CalculationType, Dimension1, Dimension2 >::rotate_transformer ( CalculationType const &  angle)
inline

The documentation for this class was generated from the following file: