DrawKit
Vector and illustration framework for Mac OS X
Public Member Functions | Public Attributes | List of all members
Geom::Rotate Class Reference

Notionally an Geom::Matrix corresponding to rotation about the origin. More...

Public Member Functions

 Rotate (Coord const theta)
 Constructs a Rotate transformation corresponding to an angle. More...
 
 Rotate (Point const &p)
 
 Rotate (Coord const x, Coord const y)
 
Rotate inverse () const
 
bool operator!= (Rotate const &o) const
 
Rotateoperator*= (Rotate const &b)
 
bool operator== (Rotate const &o) const
 

Public Attributes

Point vec
 

Detailed Description

Notionally an Geom::Matrix corresponding to rotation about the origin.

Behaves like Geom::Matrix for multiplication.

Constructor & Destructor Documentation

Geom::Rotate::Rotate ( Coord const  theta)
explicit

Constructs a Rotate transformation corresponding to an angle.

Parameters
thetathe rotation angle in radians about the origin
See also
Geom::Rotate_degrees

Angle direction in Inkscape code: If you use the traditional mathematics convention that y increases upwards, then positive angles are anticlockwise as per the mathematics convention. If you take the common non-mathematical convention that y increases downwards, then positive angles are clockwise, as is common outside of mathematics.

Geom::Rotate::Rotate ( Point const &  p)
explicit
Geom::Rotate::Rotate ( Coord const  x,
Coord const  y 
)
explicit

Member Function Documentation

Rotate Geom::Rotate::inverse ( ) const
bool Geom::Rotate::operator!= ( Rotate const &  o) const
Rotate& Geom::Rotate::operator*= ( Rotate const &  b)
bool Geom::Rotate::operator== ( Rotate const &  o) const

Member Data Documentation

Point Geom::Rotate::vec