|
DGtal 2.2.0
|
Struct representing a 2D point. More...
#include <Board/Point.h>
Public Member Functions | |
| Point () | |
| Point (const Point &other) | |
| Point & | operator= (const Point &other)=default |
| Point (double xc, double yc) | |
| Point & | rotate (double angle) |
| void | get (double &xout, double &yout) const |
| Point | rotated (double angle) const |
| Point & | rotate (double angle, const Point ¢er) |
| Point | rotated (double angle, const Point ¢er) const |
| Point & | operator+= (const Point &other) |
| Point & | operator-= (const Point &other) |
| Point & | operator*= (double s) |
| Point & | operator/= (double s) |
| Point | operator- () |
| double | norm () const |
Data Fields | |
| double | x |
| double | y |
Struct representing a 2D point.
The Point structure.
|
inline |
Point constructor.
Definition at line 36 of file Point.h.
Referenced by operator+=(), operator-(), operator-=(), operator=(), Point(), rotate(), rotated(), and rotated().
|
inline |
|
inline |
|
inline |
Get the values of the x and y values.
| xout | Reference to the x to be set. |
| yout | Reference to the y to be set. |
Definition at line 103 of file Point.h.
Referenced by LibBoard::Dot::rotate(), LibBoard::Line::rotate(), LibBoard::Arrow::rotated(), LibBoard::Arrow::rotated(), LibBoard::Line::rotated(), and LibBoard::Line::rotated().
|
inline |
Definition at line 221 of file Point.h.
Referenced by LibBoard::Rectangle::flushCairo(), LibBoard::Rectangle::flushSVG(), and LibBoard::Text::rotate().
|
inline |
|
inline |
|
inline |
Rotate the point with a given angle around the origin (0,0)
| angle | The rotation angle. |
Definition at line 190 of file Point.h.
Referenced by LibBoard::Circle::rotate(), LibBoard::Dot::rotate(), LibBoard::Line::rotate(), LibBoard::Text::rotate(), LibBoard::Arrow::rotated(), LibBoard::Arrow::rotated(), LibBoard::Line::rotated(), and LibBoard::Line::rotated().
|
inline |
| double LibBoard::Point::x |
The point's first coordinate
Definition at line 29 of file Point.h.
Referenced by LibBoard::Ellipse::boundingBox(), LibBoard::Text::boundingBox(), LibBoard::Board::drawTriangle(), LibBoard::Board::fillGouraudTriangle(), LibBoard::Board::fillGouraudTriangle(), LibBoard::Board::fillTriangle(), LibBoard::Arc::flushCairo(), LibBoard::Circle::flushCairo(), LibBoard::Ellipse::flushCairo(), LibBoard::Ellipse::flushFIG(), LibBoard::Text::flushFIG(), LibBoard::Arc::flushPostscript(), LibBoard::Ellipse::flushPostscript(), LibBoard::GouraudTriangle::flushPostscript(), LibBoard::Text::flushPostscript(), LibBoard::Arc::flushSVG(), LibBoard::Circle::flushSVG(), LibBoard::Ellipse::flushSVG(), LibBoard::GouraudTriangle::flushSVG(), LibBoard::Text::flushSVG(), LibBoard::Arc::flushTikZ(), LibBoard::Circle::flushTikZ(), LibBoard::Ellipse::flushTikZ(), LibBoard::Text::flushTikZ(), get(), norm(), LibBoard::operator!=(), LibBoard::operator*(), LibBoard::operator*(), LibBoard::operator*(), operator*=(), LibBoard::operator+(), operator+=(), LibBoard::operator-(), operator-(), operator-=(), LibBoard::operator/(), operator/=(), LibBoard::operator==(), Point(), Point(), Point(), LibBoard::Ellipse::rotate(), rotate(), LibBoard::Text::rotate(), LibBoard::Board::scale(), LibBoard::Board::scale(), LibBoard::Group::scale(), LibBoard::Group::scale(), LibBoard::Line::scale(), LibBoard::Path::scale(), LibBoard::ShapeList::scale(), LibBoard::Arrow::scaled(), LibBoard::Line::scaled(), and LibBoard::Board::State::unit().
| double LibBoard::Point::y |
The point's second coordinate
Definition at line 30 of file Point.h.
Referenced by LibBoard::Ellipse::boundingBox(), LibBoard::Text::boundingBox(), LibBoard::Board::drawTriangle(), LibBoard::Board::fillGouraudTriangle(), LibBoard::Board::fillGouraudTriangle(), LibBoard::Board::fillTriangle(), LibBoard::Arc::flushCairo(), LibBoard::Circle::flushCairo(), LibBoard::Ellipse::flushCairo(), LibBoard::Ellipse::flushFIG(), LibBoard::Text::flushFIG(), LibBoard::Arc::flushPostscript(), LibBoard::Ellipse::flushPostscript(), LibBoard::GouraudTriangle::flushPostscript(), LibBoard::Text::flushPostscript(), LibBoard::Arc::flushSVG(), LibBoard::Circle::flushSVG(), LibBoard::Ellipse::flushSVG(), LibBoard::GouraudTriangle::flushSVG(), LibBoard::Text::flushSVG(), LibBoard::Arc::flushTikZ(), LibBoard::Circle::flushTikZ(), LibBoard::Ellipse::flushTikZ(), LibBoard::Text::flushTikZ(), get(), norm(), LibBoard::operator!=(), LibBoard::operator*(), LibBoard::operator*(), LibBoard::operator*(), operator*=(), LibBoard::operator+(), operator+=(), LibBoard::operator-(), operator-(), operator-=(), LibBoard::operator/(), operator/=(), LibBoard::operator==(), Point(), Point(), Point(), LibBoard::Ellipse::rotate(), rotate(), LibBoard::Text::rotate(), LibBoard::Board::scale(), LibBoard::Board::scale(), LibBoard::Group::scale(), LibBoard::Group::scale(), LibBoard::Line::scale(), LibBoard::Path::scale(), LibBoard::ShapeList::scale(), LibBoard::Arrow::scaled(), LibBoard::Line::scaled(), and LibBoard::Board::State::unit().