Inkscape
Vector Graphics Editor
|
Two-dimensional point with integer coordinates. More...
#include <int-point.h>
Classes | |
struct | LexGreater |
Lexicographical ordering functor. More... | |
struct | LexGreater< X > |
struct | LexGreater< Y > |
struct | LexGreaterRt |
Lexicographical ordering functor with runtime dimension. More... | |
struct | LexLess |
Lexicographical ordering functor. More... | |
struct | LexLess< X > |
struct | LexLess< Y > |
struct | LexLessRt |
Lexicographical ordering functor with runtime dimension. More... | |
Private Attributes | |
IntCoord | _pt [2] = { 0, 0 } |
Two-dimensional point with integer coordinates.
This class is an exact equivalent of Point, except it stores integer coordinates. Integer points are useful in contexts related to rasterized graphics, for example for bounding boxes when rendering SVG.
Definition at line 51 of file int-point.h.
|
constexprdefault |
Construct a point at the origin.
Referenced by ccw(), cw(), and operator-().
Construct a point from its coordinates.
Definition at line 65 of file int-point.h.
Return a point like this point but rotated -90 degrees.
If the y axis grows downwards and the x axis grows to the right, then this is 90 degrees counter-clockwise.
Definition at line 93 of file int-point.h.
References _pt, IntPoint(), Geom::X, and Geom::Y.
Return a point like this point but rotated +90 degrees.
If the y axis grows downwards and the x axis grows to the right, then this is 90 degrees clockwise.
Definition at line 99 of file int-point.h.
References _pt, IntPoint(), Geom::X, and Geom::Y.
Definition at line 84 of file int-point.h.
References _pt.
Definition at line 83 of file int-point.h.
References _pt.
Definition at line 89 of file int-point.h.
Definition at line 124 of file int-point.h.
Definition at line 119 of file int-point.h.
Definition at line 109 of file int-point.h.
Definition at line 106 of file int-point.h.
References _pt, IntPoint(), Geom::X, and Geom::Y.
Definition at line 114 of file int-point.h.
Definition at line 134 of file int-point.h.
Definition at line 129 of file int-point.h.
Lexicographical ordering for points.
Y coordinate is regarded as more significant. When sorting according to this ordering, the points will be sorted according to the Y coordinate, and within points with the same Y coordinate according to the X coordinate.
Definition at line 151 of file int-point.h.
Equality operator.
Definition at line 144 of file int-point.h.
Definition at line 75 of file int-point.h.
References _pt.
Definition at line 74 of file int-point.h.
References _pt.
Definition at line 73 of file int-point.h.
Definition at line 72 of file int-point.h.
|
inlineconstexprnoexcept |
Definition at line 77 of file int-point.h.
Referenced by Inkscape::UI::Widget::ColorWheelHSLuv::_updatePolygon(), Inkscape::DrawingSurface::createRawContext(), Inkscape::UI::Widget::Ruler::draw_ruler(), geom_to_gtk(), max(), min(), Inkscape::UI::Widget::Canvas::on_motion(), Geom::Point::operator*=(), Geom::Point::operator/=(), operator[](), operator[](), Inkscape::DrawingCache::prepare(), render_surface(), Inkscape::DrawingPattern::renderPattern(), round_down(), SPDesktopWidget::setWindowSize(), Inkscape::UI::Tools::sp_flood_do_flood_fill(), and Inkscape::UI::Widget::Texture::Texture().
|
inlineconstexprnoexcept |
Definition at line 78 of file int-point.h.
Definition at line 79 of file int-point.h.
Referenced by Inkscape::UI::Widget::ColorWheelHSLuv::_updatePolygon(), Inkscape::DrawingSurface::createRawContext(), geom_to_gtk(), max(), min(), Geom::Point::operator*=(), Geom::Point::operator/=(), Inkscape::DrawingCache::prepare(), render_surface(), Inkscape::DrawingPattern::renderPattern(), round_down(), SPDesktopWidget::setWindowSize(), Inkscape::UI::Tools::sp_flood_do_flood_fill(), and Inkscape::UI::Widget::Texture::Texture().
Definition at line 80 of file int-point.h.
|
private |
Definition at line 58 of file int-point.h.
Referenced by ccw(), cw(), get(), get(), lengthSq(), operator*=(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator/=(), operator<(), operator==(), operator[](), operator[](), operator[](), operator[](), x(), x(), y(), and y().