37 - 1024 * 1024 * 1024);
42 const double s = sin(rad);
43 const double c = cos(rad);
46 p.
x() * c - p.
y() * s,
47 p.
x() * s + p.
y() * c) + origin;
A point in 2D or 3D with translation and scaling methods.
Position()
default constructor
static const Position INVALID
used to indicate that a position is valid
double x() const
Returns the x-position.
Position rotateAround2D(double rad, const Position &origin)
rotate this position by rad around origin and return the result
double y() const
Returns the y-position.