Inkscape
Vector Graphics Editor
|
Rotation around the origin. More...
#include <transforms.h>
Public Member Functions | |
Rotate ()=default | |
Construct a zero-degree rotation. | |
Rotate (Coord theta) | |
Construct a rotation from its angle in radians. | |
Rotate (Point const &p) | |
Construct a rotation from its characteristic vector. | |
Rotate (Coord x, Coord y) | |
Construct a rotation from the coordinates of its characteristic vector. | |
operator Affine () const | |
Point const & | vector () const |
Get the characteristic vector of the rotation. | |
Coord | angle () const |
Coord | operator[] (Dim2 dim) const |
Coord | operator[] (unsigned dim) const |
Rotate & | operator*= (Rotate const &o) |
bool | operator== (Rotate const &o) const |
Rotate | inverse () const |
![]() | |
Affine | operator* (T2 const &t) const |
Static Public Member Functions | |
static Rotate | identity () |
Get a zero-degree rotation. | |
static Rotate | from_degrees (Coord deg) |
Construct a rotation from its angle in degrees. | |
static Affine | around (Point const &p, Coord angle) |
Private Attributes | |
Point | vec = { 1, 0 } |
Friends | |
class | Point |
Rotation around the origin.
Combine with translations to the origin and back to get a rotation around a different point.
Definition at line 185 of file transforms.h.
|
default |
Construct a zero-degree rotation.
Referenced by around(), and from_degrees().
|
inlineexplicit |
Construct a rotation from its angle in radians.
Positive arguments correspond to counter-clockwise rotations (if Y grows upwards).
Definition at line 194 of file transforms.h.
|
inlineexplicit |
Construct a rotation from its characteristic vector.
Definition at line 196 of file transforms.h.
Construct a rotation from the coordinates of its characteristic vector.
Definition at line 198 of file transforms.h.
|
inline |
Definition at line 204 of file transforms.h.
References Geom::atan2(), and vec.
Referenced by around(), Inkscape::ObjectSet::move(), Inkscape::ObjectSet::moveScreen(), Geom::Ellipse::operator*=(), sp_namedview_document_from_window(), and Inkscape::UI::Widget::StatusBar::update_rotate().
Definition at line 142 of file transforms.cpp.
Construct a rotation from its angle in degrees.
Positive arguments correspond to clockwise rotations if Y grows downwards.
Definition at line 218 of file transforms.h.
References Rotate().
Referenced by SPHatch::_calculateRenderInfo(), SPHatch::_calculateStripExtents(), Inkscape::LivePathEffect::LPETiling::doAfterEffect(), Inkscape::LivePathEffect::LPETiling::doBeforeEffect(), Inkscape::LivePathEffect::LPETiling::doEffect_path_post(), Inkscape::LivePathEffect::LPETangentToCurve::doEffect_pwd2(), Inkscape::LivePathEffect::LPEShowHandles::drawNode(), SPMarker::get_marker_transform(), getMarkerRotation(), Inkscape::PageManager::rotatePage(), Inkscape::ObjectSet::rotateRelative(), and wrap_transforms().
|
inlinestatic |
Get a zero-degree rotation.
Definition at line 215 of file transforms.h.
Referenced by Geom::check_transforms().
|
inline |
Definition at line 209 of file transforms.h.
References Point, vec, Geom::X, and Geom::Y.
Referenced by Inkscape::UI::Tools::ToolBase::_keyboardMove(), Inkscape::UI::ControlPointSelection::_keyboardMove(), Inkscape::UI::Tools::PenTool::_lastpointMove(), Geom::EllipticalArc::_updateCenterAndAngles(), Inkscape::LivePathEffect::LPETiling::doAfterEffect(), Inkscape::LivePathEffect::LPECopyRotate::doAfterEffect(), Inkscape::LivePathEffect::LPEMeasureSegments::doBeforeEffect(), Inkscape::LivePathEffect::LPECopyRotate::doEffect_path_post(), Geom::ConvexHull::minAreaRotation(), Inkscape::SelTrans::rotateRequest(), GrDrag::selected_move(), and wrap_transforms().
|
inline |
Definition at line 199 of file transforms.h.
Definition at line 207 of file transforms.h.
References vec.
|
inline |
Definition at line 208 of file transforms.h.
References vec.
Definition at line 205 of file transforms.h.
References vec.
|
inline |
Definition at line 206 of file transforms.h.
References vec.
|
inline |
Get the characteristic vector of the rotation.
Definition at line 203 of file transforms.h.
References vec.
|
friend |
Definition at line 221 of file transforms.h.
Referenced by inverse().
|
private |
Definition at line 188 of file transforms.h.
Referenced by angle(), inverse(), operator Affine(), operator*=(), Geom::Point::operator*=(), operator==(), operator[](), operator[](), and vector().