Cartesian point.
More...
#include <point.h>
Point Geom::Point::ccw |
( |
| ) |
const |
|
inline |
Return a point like this point but rotated -90 degrees. (If the y axis grows downwards and the x axis grows to the right, then this is 90 degrees counter-clockwise.)
Point Geom::Point::cw |
( |
| ) |
const |
|
inline |
Return a point like this point but rotated +90 degrees. (If the y axis grows downwards and the x axis grows to the right, then this is 90 degrees clockwise.)
void Geom::Point::normalize |
( |
| ) |
|
Scales this vector to make it a unit vector (within rounding error).
The current version tries to handle infinite coordinates gracefully, but it's not clear that any callers need that.
- Precondition
-
-
Neither component is NaN.
- Postcondition
-
void Geom::Point::round |
( |
int |
places = 0 | ) |
|
|
inline |
A function to lower the precision of the point.
- Parameters
-
places | The number of decimal places that should be in the final number. |
std::ostream& operator<< |
( |
std::ostream & |
out_file, |
|
|
const Geom::Point & |
in_pnt |
|
) |
| |
|
friend |
A function to print out the Point. It just prints out the coords on the given output stream
The documentation for this class was generated from the following files:
- /Users/ale/src/Scribus/scribus/third_party/lib2geom/point.h
- /Users/ale/src/Scribus/scribus/third_party/lib2geom/point.cpp