GCodeAPI.Rect Class Reference

This is an additional class which represents a rectangle. It is defined by two points. More...

Public Member Functions

 Rect (double x1, double y1, double x2, double y2)
 Constructs a new Rect object by using two point. More...
 

Properties

double X1 [get, set]
 Sets or gets the X position of the first point. More...
 
double Y1 [get, set]
 Sets or gets the Y position of the first point. More...
 
double X2 [get, set]
 Sets or gets the X position of the second point. More...
 
double Y2 [get, set]
 Sets or gets the Y position of the second point. More...
 
Point Center [get]
 Returns the center of the rectangle. More...
 
double MinX [get]
 Returns the minimum X value. More...
 
double MinY [get]
 Returns the minimum Y value. More...
 
double MaxX [get]
 Returns the maximum X value. More...
 
double MaxY [get]
 Returns the maximum Y value. More...
 
double Width [get]
 
double Height [get]
 

Detailed Description

This is an additional class which represents a rectangle. It is defined by two points.

Constructor & Destructor Documentation

◆ Rect()

GCodeAPI.Rect.Rect ( double  x1,
double  y1,
double  x2,
double  y2 
)

Constructs a new Rect object by using two point.

Parameters
x1Sets or gets the X position of the first point.
y1Sets or gets the Y position of the first point.
x2Sets or gets the X position of the second point.
y2Sets or gets the Y position of the second point.

Property Documentation

◆ Center

Point GCodeAPI.Rect.Center
get

Returns the center of the rectangle.

◆ MaxX

double GCodeAPI.Rect.MaxX
get

Returns the maximum X value.

◆ MaxY

double GCodeAPI.Rect.MaxY
get

Returns the maximum Y value.

◆ MinX

double GCodeAPI.Rect.MinX
get

Returns the minimum X value.

◆ MinY

double GCodeAPI.Rect.MinY
get

Returns the minimum Y value.

◆ X1

double GCodeAPI.Rect.X1
getset

Sets or gets the X position of the first point.

◆ X2

double GCodeAPI.Rect.X2
getset

Sets or gets the X position of the second point.

◆ Y1

double GCodeAPI.Rect.Y1
getset

Sets or gets the Y position of the first point.

◆ Y2

double GCodeAPI.Rect.Y2
getset

Sets or gets the Y position of the second point.


The documentation for this class was generated from the following file: