#include <point.h>
◆ Point() [1/4]
Creates a Point at the origin (0, 0).
◆ Point() [2/4]
Creates a Point at arbitrary coordinates.
- Parameters
-
| x | the x value of the Point |
| y | the y value of the Point |
◆ Point() [3/4]
Creates a new Point that is a copy of the given Point
- Parameters
-
◆ Point() [4/4]
◆ distanceFromOrigin()
| double distanceFromOrigin |
( |
| ) |
const |
Returns the distance between this Point and origin (0,0)
- Returns
- the distance
◆ operator=()
Assigns one Point to another
- Parameters
-
| other | the Point whose value should be copied into this Point |
- Returns
- this Point
◆ rotate()
Returns a new Point that is this Point rotated counterclockwise by an angle about the origin.
- Parameters
-
| rot | the angle to rotate the Point |
- Returns
- the new Point rotated by rot
◆ set()
| void set |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
Sets the coordinates of this point to the new coordinates
- Parameters
-
| x | the new x coordinate |
| y | the new y coordinate |
◆ setX()
Sets the x coordinate of this point
- Parameters
-
◆ setY()
Sets the y coordinate of this point
- Parameters
-
◆ toVector()
◆ x()
Returns the x coordinate of this Point
- Returns
- the x coordinate of this Point
◆ y()
Returns the y coordinate of this Point
- Returns
- the y coordinate of this Point
The documentation for this class was generated from the following files:
- src/software/geom/point.h
- src/software/geom/point.cpp