This is an additional class which represents a Point.
More...
|
| | Point (double x, double y) |
| | Constructs a new Point object with the specified points. More...
|
| |
|
override string | ToString () |
| |
|
| static double | Distance (Point p1, Point p2) |
| | Returns the distance between two points. More...
|
| |
| static double | Distance (double x1, double y1, double x2, double y2) |
| | Returns the distance between two points. More...
|
| |
| static Point | PolarToCartesian (double r, double deg, double xOffset=0, double yOffset=0) |
| | Converts a point from Polar coordinate system to Cartesian coordinate system More...
|
| |
| static double [] | CartesianToPolar (double x, double y, double xOffset=0, double yOffset=0) |
| | Converts a point from Cartesian coordinate system to Polar coordinate system More...
|
| |
|
| double | X [get, set] |
| | Sets or gets the X position. More...
|
| |
| double | Y [get, set] |
| | Sets or gets the Y position. More...
|
| |
This is an additional class which represents a Point.
◆ Point()
| GCodeAPI.Point.Point |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
Constructs a new Point object with the specified points.
- Parameters
-
◆ CartesianToPolar()
| static double [] GCodeAPI.Point.CartesianToPolar |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
xOffset = 0, |
|
|
double |
yOffset = 0 |
|
) |
| |
|
static |
Converts a point from Cartesian coordinate system to Polar coordinate system
- Parameters
-
| x | Cartesian X coordinate |
| y | Cartesian Y coordinate |
| xOffset | x offset |
| yOffset | y offset |
- Returns
- double[2] array where first is radius and second angle in degree
◆ Distance() [1/2]
| static double GCodeAPI.Point.Distance |
( |
Point |
p1, |
|
|
Point |
p2 |
|
) |
| |
|
static |
Returns the distance between two points.
- Parameters
-
- Returns
◆ Distance() [2/2]
| static double GCodeAPI.Point.Distance |
( |
double |
x1, |
|
|
double |
y1, |
|
|
double |
x2, |
|
|
double |
y2 |
|
) |
| |
|
static |
Returns the distance between two points.
- Parameters
-
| x1 | X position of first point. |
| y1 | Y position of first point. |
| x2 | X position of second point. |
| y2 | Y position of second point. |
- Returns
◆ PolarToCartesian()
| static Point GCodeAPI.Point.PolarToCartesian |
( |
double |
r, |
|
|
double |
deg, |
|
|
double |
xOffset = 0, |
|
|
double |
yOffset = 0 |
|
) |
| |
|
static |
Converts a point from Polar coordinate system to Cartesian coordinate system
- Parameters
-
| r | distance |
| deg | angle in degree |
| xOffset | x offset |
| yOffset | y offest |
- Returns
Sets or gets the X position.
Sets or gets the Y position.
The documentation for this class was generated from the following file:
- E:/projects/biofiz/programs/PetriPrinter/git/gCodeAPI/Point.cs