#include <point.hh>
◆ value_type
◆ Point() [1/5]
◆ Point() [2/5]
◆ Point() [3/5]
42 {
43 }
value_type y
Definition point.hh:112
value_type x
Definition point.hh:111
◆ Point() [4/5]
template<typename T >
template<typename U >
◆ Point() [5/5]
◆ magnitude()
100{
return sqrt(
x *
x +
y *
y); }
◆ operator!=()
59{ return !(*this == other); }
◆ operator*=() [1/2]
78 {
81 return *this;
82 }
◆ operator*=() [2/2]
71 {
74 return *this;
75 }
◆ operator+=()
62 {
65 return *this;
66 }
◆ operator-()
98{
return Point<value_type>(-
x, -
y); }
◆ operator-=()
68{ return *this += -other; }
◆ operator/=() [1/2]
92 {
95 return *this;
96 }
◆ operator/=() [2/2]
85 {
88 return *this;
89 }
◆ operator==()
58{
return x == other.x &&
y == other.y; }
◆ to()
template<typename T >
template<typename U >
◆ toGdkPoint()
108{
return {
static_cast<int>(
x),
static_cast<int>(
y)}; }
Referenced by Scroom::Utils::ceiled_divide_by(), Scroom::Utils::Rectangle< T >::contains(), anonymous_namespace{view.cc}::eventToPoint(), anonymous_namespace{view.cc}::eventToPoint(), Scroom::Utils::floored_divide_by(), Scroom::Utils::Point< T >::magnitude(), Scroom::Utils::make_rect(), Scroom::Utils::make_rect_from_start_end(), Scroom::Utils::Rectangle< T >::moveTo(), View::on_buttonRelease(), Scroom::Utils::Point< T >::operator*=(), Scroom::Utils::Point< T >::operator*=(), Scroom::Utils::Rectangle< T >::operator*=(), Scroom::Utils::Point< T >::operator+=(), Scroom::Utils::Rectangle< T >::operator+=(), Scroom::Utils::Point< T >::operator-(), Scroom::Utils::Point< T >::operator/=(), Scroom::Utils::Point< T >::operator/=(), Scroom::Utils::Rectangle< T >::operator/=(), Scroom::Utils::Point< T >::operator==(), TransformPresentation::redraw(), Scroom::Utils::rounded_divide_by(), Scroom::Utils::Point< T >::to(), Scroom::TiledBitmap::to_metadata(), Scroom::Utils::Point< T >::toGdkPoint(), View::updateScrollbars(), View::updateZoom(), and Selection::width().
Referenced by Scroom::Utils::ceiled_divide_by(), Scroom::Utils::Rectangle< T >::contains(), Scroom::Utils::floored_divide_by(), Selection::height(), Scroom::Utils::Point< T >::magnitude(), Scroom::Utils::make_rect(), Scroom::Utils::make_rect_from_start_end(), Scroom::Utils::Rectangle< T >::moveTo(), View::on_buttonRelease(), View::on_scrollbar_value_changed(), Scroom::Utils::Point< T >::operator*=(), Scroom::Utils::Point< T >::operator*=(), Scroom::Utils::Rectangle< T >::operator*=(), Scroom::Utils::Point< T >::operator+=(), Scroom::Utils::Rectangle< T >::operator+=(), Scroom::Utils::Point< T >::operator-(), Scroom::Utils::Point< T >::operator/=(), Scroom::Utils::Point< T >::operator/=(), Scroom::Utils::Rectangle< T >::operator/=(), Scroom::Utils::Point< T >::operator==(), TransformPresentation::redraw(), Scroom::Utils::rounded_divide_by(), Scroom::Utils::Point< T >::to(), Scroom::TiledBitmap::to_metadata(), Scroom::Utils::Point< T >::toGdkPoint(), View::updateScrollbars(), and View::updateZoom().
The documentation for this class was generated from the following file: