Struct representing a 2D point.
More...
#include <Board/Point.h>
◆ Point() [1/3]
LibBoard::Point::Point |
( |
| ) |
|
|
inline |
◆ Point() [2/3]
LibBoard::Point::Point |
( |
const Point & |
other | ) |
|
|
inline |
Point constructor.
- Parameters
-
Definition at line 43 of file Point.h.
43 :
x(other.x),
y(other.y) { }
◆ Point() [3/3]
LibBoard::Point::Point |
( |
double |
xc, |
|
|
double |
yc |
|
) |
| |
|
inline |
Point constructor.
- Parameters
-
xc | The point's first coordinate. |
yc | The point's second coordinate. |
Definition at line 58 of file Point.h.
◆ get()
void LibBoard::Point::get |
( |
double & |
xout, |
|
|
double & |
yout |
|
) |
| const |
|
inline |
Get the values of the x and y values.
- Parameters
-
xout | Reference to the x to be set. |
yout | Reference to the y to be set. |
Definition at line 103 of file Point.h.
References x, and y.
◆ norm()
double LibBoard::Point::norm |
( |
| ) |
const |
|
inline |
◆ operator*=()
Point & LibBoard::Point::operator*= |
( |
double |
s | ) |
|
|
inline |
◆ operator+=()
Point & LibBoard::Point::operator+= |
( |
const Point & |
other | ) |
|
|
inline |
Definition at line 146 of file Point.h.
References x, and y.
◆ operator-()
Point LibBoard::Point::operator- |
( |
| ) |
|
|
inline |
◆ operator-=()
Point & LibBoard::Point::operator-= |
( |
const Point & |
other | ) |
|
|
inline |
Definition at line 154 of file Point.h.
References x, and y.
◆ operator/=()
Point & LibBoard::Point::operator/= |
( |
double |
s | ) |
|
|
inline |
◆ operator=()
Point& LibBoard::Point::operator= |
( |
const Point & |
other | ) |
|
|
default |
Default assignment operator.
- Parameters
-
◆ rotate() [1/2]
Point & LibBoard::Point::rotate |
( |
double |
angle | ) |
|
|
inline |
◆ rotate() [2/2]
Point & LibBoard::Point::rotate |
( |
double |
angle, |
|
|
const Point & |
center |
|
) |
| |
|
inline |
Definition at line 206 of file Point.h.
209 (*this).rotate( angle );
Point center(const std::vector< Point > &points)
◆ rotated() [1/2]
Point LibBoard::Point::rotated |
( |
double |
angle | ) |
const |
|
inline |
◆ rotated() [2/2]
Point LibBoard::Point::rotated |
( |
double |
angle, |
|
|
const Point & |
center |
|
) |
| const |
|
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::fillTriangle(), LibBoard::Ellipse::flushCairo(), LibBoard::Circle::flushCairo(), LibBoard::Arc::flushCairo(), 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(), operator+=(), operator-=(), rotate(), LibBoard::Ellipse::rotate(), LibBoard::Board::scale(), LibBoard::Path::scale(), LibBoard::ShapeList::scale(), LibBoard::Group::scale(), LibBoard::Line::scale(), LibBoard::Line::scaled(), and LibBoard::Arrow::scaled().
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::fillTriangle(), LibBoard::Ellipse::flushCairo(), LibBoard::Circle::flushCairo(), LibBoard::Arc::flushCairo(), 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(), operator+=(), operator-=(), rotate(), LibBoard::Ellipse::rotate(), LibBoard::Board::scale(), LibBoard::Path::scale(), LibBoard::ShapeList::scale(), LibBoard::Group::scale(), LibBoard::Line::scale(), LibBoard::Line::scaled(), and LibBoard::Arrow::scaled().
The documentation for this struct was generated from the following file: