Board
0.6.devel
|
#include <Point.h>
Public Member Functions | |
Point () | |
Point (const Point &other) | |
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.
x | The point's first coordinate. |
y | The point's second coordinate. |
Referenced by operator-(), and rotated().
|
inline |
Point constructor.
x | The point's first coordinate. |
y | The point's second coordinate. |
|
inline |
Point constructor.
xc | The point's first coordinate. |
yc | The point's second coordinate. |
|
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. |
Referenced by LibBoard::Dot::rotate(), LibBoard::Line::rotate(), LibBoard::Line::rotated(), and LibBoard::Arrow::rotated().
|
inline |
Referenced by LibBoard::Rectangle::flushSVG(), and LibBoard::Text::rotate().
|
inline |
Rotate the point with a given angle around the origin (0,0)
angle | The rotation angle. |
Referenced by rotate(), LibBoard::Dot::rotate(), LibBoard::Line::rotate(), LibBoard::Circle::rotate(), LibBoard::Text::rotate(), LibBoard::Line::rotated(), and LibBoard::Arrow::rotated().
|
inline |
Rotate the point with a given angle around the origin (0,0)
angle | The rotation angle. |
References Point().
Referenced by LibBoard::Ellipse::rotate().
References Point().
double LibBoard::Point::x |
The point's first coordinate
Referenced by LibBoard::Ellipse::boundingBox(), LibBoard::Text::boundingBox(), LibBoard::Board::drawTriangle(), LibBoard::Board::fillGouraudTriangle(), LibBoard::Board::fillTriangle(), LibBoard::Ellipse::flushFIG(), LibBoard::Text::flushFIG(), LibBoard::GouraudTriangle::flushPostscript(), LibBoard::Ellipse::flushPostscript(), LibBoard::Arc::flushPostscript(), LibBoard::Text::flushPostscript(), LibBoard::GouraudTriangle::flushSVG(), LibBoard::Ellipse::flushSVG(), LibBoard::Circle::flushSVG(), LibBoard::Arc::flushSVG(), LibBoard::Text::flushSVG(), LibBoard::Ellipse::flushTikZ(), LibBoard::Circle::flushTikZ(), LibBoard::Arc::flushTikZ(), LibBoard::Text::flushTikZ(), get(), norm(), LibBoard::operator!=(), LibBoard::operator*(), operator*=(), LibBoard::operator+(), operator+=(), operator-(), LibBoard::operator-(), operator-=(), LibBoard::operator/(), operator/=(), LibBoard::operator==(), rotate(), LibBoard::Ellipse::rotate(), LibBoard::Text::rotate(), LibBoard::ShapeList::scale(), LibBoard::Board::scale(), LibBoard::Path::scale(), LibBoard::Group::scale(), LibBoard::Line::scale(), LibBoard::Line::scaled(), LibBoard::Arrow::scaled(), and LibBoard::Board::State::unit().
double LibBoard::Point::y |
The point's second coordinate
Referenced by LibBoard::Ellipse::boundingBox(), LibBoard::Text::boundingBox(), LibBoard::Board::drawTriangle(), LibBoard::Board::fillGouraudTriangle(), LibBoard::Board::fillTriangle(), LibBoard::Ellipse::flushFIG(), LibBoard::Text::flushFIG(), LibBoard::GouraudTriangle::flushPostscript(), LibBoard::Ellipse::flushPostscript(), LibBoard::Arc::flushPostscript(), LibBoard::Text::flushPostscript(), LibBoard::GouraudTriangle::flushSVG(), LibBoard::Ellipse::flushSVG(), LibBoard::Circle::flushSVG(), LibBoard::Arc::flushSVG(), LibBoard::Text::flushSVG(), LibBoard::Ellipse::flushTikZ(), LibBoard::Circle::flushTikZ(), LibBoard::Arc::flushTikZ(), LibBoard::Text::flushTikZ(), get(), norm(), LibBoard::operator!=(), LibBoard::operator*(), operator*=(), LibBoard::operator+(), operator+=(), operator-(), LibBoard::operator-(), operator-=(), LibBoard::operator/(), operator/=(), LibBoard::operator==(), rotate(), LibBoard::Ellipse::rotate(), LibBoard::Text::rotate(), LibBoard::ShapeList::scale(), LibBoard::Board::scale(), LibBoard::Path::scale(), LibBoard::Group::scale(), LibBoard::Line::scale(), LibBoard::Line::scaled(), LibBoard::Arrow::scaled(), and LibBoard::Board::State::unit().