LibreOffice Module tools (master) 1
|
#include <gen.hxx>
Public Member Functions | |
constexpr | Point () |
constexpr | Point (tools::Long nX, tools::Long nY) |
constexpr tools::Long | X () const |
constexpr tools::Long | Y () const |
void | Move (tools::Long nHorzMove, tools::Long nVertMove) |
void | Move (Size const &s) |
tools::Long | AdjustX (tools::Long nHorzMove) |
tools::Long | AdjustY (tools::Long nVertMove) |
void | RotateAround (tools::Long &rX, tools::Long &rY, Degree10 nOrientation) const |
void | RotateAround (Point &, Degree10 nOrientation) const |
Point & | operator+= (const Point &rPoint) |
Point & | operator-= (const Point &rPoint) |
Point & | operator*= (const tools::Long nVal) |
Point & | operator/= (const tools::Long nVal) |
constexpr tools::Long | getX () const |
constexpr tools::Long | getY () const |
void | setX (tools::Long nX) |
void | setY (tools::Long nY) |
Pair const & | toPair () const |
Pair & | toPair () |
constexpr Point | scale (sal_Int64 nMulX, sal_Int64 nDivX, sal_Int64 nMulY, sal_Int64 nDivY) const |
TOOLS_DLLPUBLIC rtl::OString | toString () const |
TOOLS_DLLPUBLIC size_t | GetHashValue () const |
Friends | |
Point | operator+ (const Point &rVal1, const Point &rVal2) |
Point | operator- (const Point &rVal1, const Point &rVal2) |
Point | operator* (const Point &rVal1, const tools::Long nVal2) |
Point | operator/ (const Point &rVal1, const tools::Long nVal2) |
Additional Inherited Members | |
Protected Member Functions inherited from Pair | |
constexpr | Pair () |
constexpr | Pair (tools::Long nA, tools::Long nB) |
tools::Long | A () const |
tools::Long | B () const |
tools::Long & | A () |
tools::Long & | B () |
TOOLS_DLLPUBLIC rtl::OString | toString () const |
TOOLS_DLLPUBLIC size_t | GetHashValue () const |
Protected Attributes inherited from Pair | |
tools::Long | mnA |
tools::Long | mnB |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
Definition at line 88 of file gen.hxx.
Referenced by Move(), and tools::Polygon::Move().
|
inline |
Definition at line 89 of file gen.hxx.
Referenced by Move(), and tools::Polygon::Move().
|
inlineconstexpr |
Definition at line 105 of file gen.hxx.
References X.
Referenced by scale(), and tools::GenericTypeSerializer::writePoint().
|
inlineconstexpr |
Definition at line 106 of file gen.hxx.
References Y.
Referenced by scale(), and tools::GenericTypeSerializer::writePoint().
|
inline |
Definition at line 340 of file gen.hxx.
References AdjustX(), AdjustY(), Size::Height(), and Size::Width().
|
inline |
|
inline |
|
inline |
void Point::RotateAround | ( | tools::Long & | rX, |
tools::Long & | rY, | ||
Degree10 | nOrientation | ||
) | const |
Definition at line 32 of file point.cxx.
References toRadians(), X(), and Y().
Referenced by RotateAround().
|
inlineconstexpr |
Definition at line 185 of file gen.hxx.
References o3tl::convert(), getX(), getY(), and Point().
Referenced by o3tl::convert().
|
inline |
Definition at line 107 of file gen.hxx.
Referenced by ImplPolygon::ImplPolygon(), tools::Line::Intersection(), tools::GenericTypeSerializer::readPoint(), tools::Polygon::Rotate(), RotateAround(), and tools::Polygon::Scale().
|
inline |
Definition at line 108 of file gen.hxx.
Referenced by ImplPolygon::ImplPolygon(), tools::Line::Intersection(), tools::GenericTypeSerializer::readPoint(), tools::Polygon::Rotate(), RotateAround(), and tools::Polygon::Scale().
|
inline |
Definition at line 110 of file gen.hxx.
Referenced by operator==().
|
inlineconstexpr |
Definition at line 83 of file gen.hxx.
Referenced by tools::Polygon::CalcDistance(), tools::Rectangle::Contains(), tools::Polygon::getB2DPolygon(), tools::Polygon::GetBoundRect(), tools::PolyPolygon::GetBoundRect(), tools::Line::GetDistance(), tools::Line::GetLength(), ImplGetParameter(), ImplPolygon::ImplPolygon(), tools::Line::Intersection(), tools::Rectangle::Normalize(), tools::Rectangle::operator+=(), tools::Rectangle::operator-=(), tools::Polygon::Rotate(), RotateAround(), tools::Polygon::Scale(), and tools::Rectangle::SetPos().
|
inlineconstexpr |
Definition at line 84 of file gen.hxx.
Referenced by tools::Polygon::CalcDistance(), tools::Rectangle::Contains(), tools::Polygon::Contains(), tools::Polygon::getB2DPolygon(), tools::Polygon::GetBoundRect(), tools::PolyPolygon::GetBoundRect(), tools::Line::GetDistance(), tools::Line::GetLength(), ImplGetParameter(), ImplPolygon::ImplPolygon(), tools::Line::Intersection(), tools::Rectangle::Normalize(), tools::Rectangle::operator+=(), tools::Rectangle::operator-=(), tools::Polygon::Rotate(), RotateAround(), tools::Polygon::Scale(), and tools::Rectangle::SetPos().
|
friend |
|
friend |