eVision .NET API
Loading...
Searching...
No Matches
eVision.EPoint Struct Reference

An exact (floating-point) location in the 2D space. More...

Public Member Functions

 EPoint (float centerX, float centerY)
 Constructs a EPoint object.
 EPoint (eVision.EFrame frame)
 Constructs a EPoint object.
void CopyTo (ref eVision.EPoint other)
 Copies all the data of the current EPoint object into another EPoint object and returns it.
void SetCenterXY (float centerX, float centerY)
 Sets the center coordinates of a EPoint object.
eVision.EPoint MidPoint (eVision.EPoint Point)
 Returns the middle coordinate between this EPoint object and another EPoint object.
eVision.EPoint Rotate (float angle)
 Returns another EPoint object containing the coordinated of the rotated point.
float Square ()
 Compute the sum of the squared coordinates of a EPoint.
float Modulus ()
 Compute the euclidean modulus of a EPoint.
float Argument ()
 Compute the polar argument of a EPoint object.
float Dot (eVision.EPoint Point)
 Compute the dot product of two EPoint object.
float Cross (eVision.EPoint Point)
 Compute the cross product of two EPoint object.
float Area (eVision.EPoint Point)
 Compute the oriented area of the parallelogram built on two EPoint.
eVision.EPoint Project (eVision.ELine line, bool segmentOnly)
 Compute the orthogonal projection of a EPoint on another shape.
eVision.EPoint Project (eVision.ELine line)
 Compute the orthogonal projection of a EPoint on another shape.
eVision.EPoint Project (eVision.ECircle circle, bool arcOnly)
 Compute the orthogonal projection of a EPoint on another shape.
eVision.EPoint Project (eVision.ECircle circle)
 Compute the orthogonal projection of a EPoint on another shape.
eVision.EPoint Project (eVision.Legacy.ELine line, bool segmentOnly)
 Compute the orthogonal projection of a EPoint on another shape.
eVision.EPoint Project (eVision.Legacy.ELine line)
 Compute the orthogonal projection of a EPoint on another shape.
eVision.EPoint Project (eVision.Legacy.ECircle circle, bool arcOnly)
 Compute the orthogonal projection of a EPoint on another shape.
eVision.EPoint Project (eVision.Legacy.ECircle circle)
 Compute the orthogonal projection of a EPoint on another shape.
float SquaredDistance (eVision.EPoint Point)
 Compute the squared distance between two EPoint.
eVision.EPoint Move (float angle, float distance)
 Return the position by moving the point along angle by distance.
float Distance (eVision.EPoint point)
 Returns the distance between the addressed point and an EPoint object.
float Distance (eVision.ELine line, bool segmentOnly)
 Returns the distance between the addressed point and an EPoint object.
float Distance (eVision.ELine line)
 Returns the distance between the addressed point and an EPoint object.
float Distance (eVision.ECircle circle, bool arcOnly)
 Returns the distance between the addressed point and an EPoint object.
float Distance (eVision.ECircle circle)
 Returns the distance between the addressed point and an EPoint object.
float Distance (eVision.Legacy.ELine line, bool segmentOnly)
 Returns the distance between the addressed point and an EPoint object.
float Distance (eVision.Legacy.ELine line)
 Returns the distance between the addressed point and an EPoint object.
float Distance (eVision.Legacy.ECircle circle, bool arcOnly)
 Returns the distance between the addressed point and an EPoint object.
float Distance (eVision.Legacy.ECircle circle)
 Returns the distance between the addressed point and an EPoint object.
void Load (string path)
 Load the EPoint configuration. The given ESerializer must have been created for reading.
void Load (eVision.ESerializer serializer)
 Load the EPoint configuration. The given ESerializer must have been created for reading.
void Save (string path)
 Save the EPoint configuration. The given ESerializer must have been created for writing.
void Save (eVision.ESerializer serializer)
 Save the EPoint configuration. The given ESerializer must have been created for writing.
void Draw (eVision.EDrawAdapter drawAdapter, float zoomX, float zoomY, float panX, float panY)
 Draws the EPoint.
void Draw (eVision.EDrawAdapter drawAdapter, float zoomX, float zoomY, float panX)
 Draws the EPoint.
void Draw (eVision.EDrawAdapter drawAdapter, float zoomX, float zoomY)
 Draws the EPoint.
void Draw (eVision.EDrawAdapter drawAdapter, float zoomX)
 Draws the EPoint.
void Draw (eVision.EDrawAdapter drawAdapter)
 Draws the EPoint.
void Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the EPoint.
void Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the EPoint.
void Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the EPoint.
void Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX)
 Draws the EPoint.
void Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame)
 Draws the EPoint.
void DrawHandle (eVision.EDrawAdapter drawAdapter, float zoomX, float zoomY, float panX, float panY)
 Draws the EPoint handle for graphical manipulation.
void DrawHandle (eVision.EDrawAdapter drawAdapter, float zoomX, float zoomY, float panX)
 Draws the EPoint handle for graphical manipulation.
void DrawHandle (eVision.EDrawAdapter drawAdapter, float zoomX, float zoomY)
 Draws the EPoint handle for graphical manipulation.
void DrawHandle (eVision.EDrawAdapter drawAdapter, float zoomX)
 Draws the EPoint handle for graphical manipulation.
void DrawHandle (eVision.EDrawAdapter drawAdapter)
 Draws the EPoint handle for graphical manipulation.
void DrawHandle (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the EPoint handle for graphical manipulation.
void DrawHandle (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the EPoint handle for graphical manipulation.
void DrawHandle (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the EPoint handle for graphical manipulation.
void DrawHandle (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX)
 Draws the EPoint handle for graphical manipulation.
void DrawHandle (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame)
 Draws the EPoint handle for graphical manipulation.
eVision.EEditionMode HitTest (int x, int y, float zoomX, float zoomY, float panX, float panY)
 Detects if the cursor is placed over the point.
eVision.EEditionMode HitTest (int x, int y, float zoomX, float zoomY, float panX)
 Detects if the cursor is placed over the point.
eVision.EEditionMode HitTest (int x, int y, float zoomX, float zoomY)
 Detects if the cursor is placed over the point.
eVision.EEditionMode HitTest (int x, int y, float zoomX)
 Detects if the cursor is placed over the point.
eVision.EEditionMode HitTest (int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Detects if the cursor is placed over the point.
eVision.EEditionMode HitTest (int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Detects if the cursor is placed over the point.
eVision.EEditionMode HitTest (int x, int y, eVision.EFrame frame, float zoomX, float zoomY)
 Detects if the cursor is placed over the point.
eVision.EEditionMode HitTest (int x, int y, eVision.EFrame frame, float zoomX)
 Detects if the cursor is placed over the point.
void Drag (int x, int y, float zoomX, float zoomY, float panX, float panY)
 Moves the point to a new position.
void Drag (int x, int y, float zoomX, float zoomY, float panX)
 Moves the point to a new position.
void Drag (int x, int y, float zoomX, float zoomY)
 Moves the point to a new position.
void Drag (int x, int y, float zoomX)
 Moves the point to a new position.
void Drag (int x, int y)
 Moves the point to a new position.
void Drag (int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Moves the point to a new position.
void Drag (int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Moves the point to a new position.
void Drag (int x, int y, eVision.EFrame frame, float zoomX, float zoomY)
 Moves the point to a new position.
void Drag (int x, int y, eVision.EFrame frame, float zoomX)
 Moves the point to a new position.
void Drag (int x, int y, eVision.EFrame frame)
 Moves the point to a new position.

Static Public Member Functions

static eVision.EPoint operator+ (eVision.EPoint extraArgument, eVision.EPoint point)
 Adds to the current EPoint center coordinates the center coordinates of another EPoint object.
static eVision.EPoint operator- (eVision.EPoint extraArgument, eVision.EPoint point)
 Subtracts from the current EPoint center coordinates the center coordinates of another EPoint object.
static eVision.EPoint operator* (eVision.EPoint extraArgument, float scalar)
 Multiplies the current EPoint center coordinates by a given multiplier.
static eVision.EPoint operator/ (eVision.EPoint extraArgument, float scalar)
 Divides the current EPoint center coordinates by a given divisor.
static bool operator== (eVision.EPoint extraArgument, eVision.EPoint point)
 Compares the current EPoint center coordinates with the center coordinates of another EPoint object.
static bool operator!= (eVision.EPoint extraArgument, eVision.EPoint point)
 Compares the current EPoint center coordinates with the center coordinates of another EPoint object.

Public Attributes

float X
 Abscissa (X coordinate) of the EPoint object.
float Y
 Ordinate (Y coordinate) of the EPoint object.

Properties

eVision.EPoint Center [get, set]
 Center coordinates of a EPoint object.

Detailed Description

An exact (floating-point) location in the 2D space.

License(s): None

Constructor & Destructor Documentation

◆ EPoint() [1/2]

eVision.EPoint.EPoint ( float centerX,
float centerY )

Constructs a EPoint object.

Parameters
centerXCenter coordinates of the EPoint object.
centerYCenter coordinates of the EPoint object.

◆ EPoint() [2/2]

eVision.EPoint.EPoint ( eVision.EFrame frame)

Constructs a EPoint object.

Parameters
frameTo construct a EPoint from the center of a EFrame
Deprecated

Use EFrame.Center or EFrame.SensorCenter instead.

Deprecated in version 26.2. Scheduled to be removed in version 27.6.

Member Function Documentation

◆ Area()

float eVision.EPoint.Area ( eVision.EPoint Point)

Compute the oriented area of the parallelogram built on two EPoint.

Parameters
PointSecond edge of the parallelogram.

Compute the oriented area of the parallelogram built on two EPoint. The area is counted as positive if the oriented vector pair ('first edge', 'second edge') is in the same sense that the axis frame. This oriented area can also be viewed as the z-coordinate of a vector product of two 3D vectors obtained in supplementing each edges with a third z-coordinate (set to zero).

◆ Argument()

float eVision.EPoint.Argument ( )

Compute the polar argument of a EPoint object.

Compute the angle (in radians) between the oriented X-axis and the vector going from the axis origin and the EPoint. If the axis frame is orthogonal, this number is also the polar argument of the EPoint.

◆ CopyTo()

void eVision.EPoint.CopyTo ( ref eVision.EPoint other)

Copies all the data of the current EPoint object into another EPoint object and returns it.

Parameters
otherEPoint object in which the current EPoint object data have to be copied.

In the overload taking a pointer, in case of a NULL pointer, a new EPoint object will be created and returned.

◆ Cross()

float eVision.EPoint.Cross ( eVision.EPoint Point)

Compute the cross product of two EPoint object.

Parameters
PointSecond factor of the cross product.

◆ Distance() [1/9]

float eVision.EPoint.Distance ( eVision.ECircle circle)

Returns the distance between the addressed point and an EPoint object.

Parameters
circleECircle object with which to calculate the distance.

Many EasyGauge members provide measurement result as a EPoint.EPoint object (see EPointGauge.Center, EPointGauge.GetMeasuredPoint,...). The EPoint class has its own members to retrieve all the information pertaining to a point. Among them, the Distance method returns the distance between a point pair or between a point and a line segment, a circle arc or a rectangle.

◆ Distance() [2/9]

float eVision.EPoint.Distance ( eVision.ECircle circle,
bool arcOnly )

Returns the distance between the addressed point and an EPoint object.

Parameters
circleECircle object with which to calculate the distance.
arcOnlyBy default (false), the circle is not restricted to an arc.

Many EasyGauge members provide measurement result as a EPoint.EPoint object (see EPointGauge.Center, EPointGauge.GetMeasuredPoint,...). The EPoint class has its own members to retrieve all the information pertaining to a point. Among them, the Distance method returns the distance between a point pair or between a point and a line segment, a circle arc or a rectangle.

◆ Distance() [3/9]

float eVision.EPoint.Distance ( eVision.ELine line)

Returns the distance between the addressed point and an EPoint object.

Parameters
lineELine object with which to calculate the distance.

Many EasyGauge members provide measurement result as a EPoint.EPoint object (see EPointGauge.Center, EPointGauge.GetMeasuredPoint,...). The EPoint class has its own members to retrieve all the information pertaining to a point. Among them, the Distance method returns the distance between a point pair or between a point and a line segment, a circle arc or a rectangle.

◆ Distance() [4/9]

float eVision.EPoint.Distance ( eVision.ELine line,
bool segmentOnly )

Returns the distance between the addressed point and an EPoint object.

Parameters
lineELine object with which to calculate the distance.
segmentOnlyBy default (false), the line is not restricted to a segment.

Many EasyGauge members provide measurement result as a EPoint.EPoint object (see EPointGauge.Center, EPointGauge.GetMeasuredPoint,...). The EPoint class has its own members to retrieve all the information pertaining to a point. Among them, the Distance method returns the distance between a point pair or between a point and a line segment, a circle arc or a rectangle.

◆ Distance() [5/9]

float eVision.EPoint.Distance ( eVision.EPoint point)

Returns the distance between the addressed point and an EPoint object.

Parameters
pointEPoint.EPoint object with which to calculate the distance.

Many EasyGauge members provide measurement result as a EPoint.EPoint object (see EPointGauge.Center, EPointGauge.GetMeasuredPoint,...). The EPoint class has its own members to retrieve all the information pertaining to a point. Among them, the Distance method returns the distance between a point pair or between a point and a line segment, a circle arc or a rectangle.

◆ Distance() [6/9]

float eVision.EPoint.Distance ( eVision.Legacy.ECircle circle)

Returns the distance between the addressed point and an EPoint object.

Parameters
circleECircle object with which to calculate the distance.

Many EasyGauge members provide measurement result as a EPoint.EPoint object (see EPointGauge.Center, EPointGauge.GetMeasuredPoint,...). The EPoint class has its own members to retrieve all the information pertaining to a point. Among them, the Distance method returns the distance between a point pair or between a point and a line segment, a circle arc or a rectangle.

◆ Distance() [7/9]

float eVision.EPoint.Distance ( eVision.Legacy.ECircle circle,
bool arcOnly )

Returns the distance between the addressed point and an EPoint object.

Parameters
circleECircle object with which to calculate the distance.
arcOnlyBy default (false), the circle is not restricted to an arc.

Many EasyGauge members provide measurement result as a EPoint.EPoint object (see EPointGauge.Center, EPointGauge.GetMeasuredPoint,...). The EPoint class has its own members to retrieve all the information pertaining to a point. Among them, the Distance method returns the distance between a point pair or between a point and a line segment, a circle arc or a rectangle.

◆ Distance() [8/9]

float eVision.EPoint.Distance ( eVision.Legacy.ELine line)

Returns the distance between the addressed point and an EPoint object.

Parameters
lineELine object with which to calculate the distance.

Many EasyGauge members provide measurement result as a EPoint.EPoint object (see EPointGauge.Center, EPointGauge.GetMeasuredPoint,...). The EPoint class has its own members to retrieve all the information pertaining to a point. Among them, the Distance method returns the distance between a point pair or between a point and a line segment, a circle arc or a rectangle.

◆ Distance() [9/9]

float eVision.EPoint.Distance ( eVision.Legacy.ELine line,
bool segmentOnly )

Returns the distance between the addressed point and an EPoint object.

Parameters
lineELine object with which to calculate the distance.
segmentOnlyBy default (false), the line is not restricted to a segment.

Many EasyGauge members provide measurement result as a EPoint.EPoint object (see EPointGauge.Center, EPointGauge.GetMeasuredPoint,...). The EPoint class has its own members to retrieve all the information pertaining to a point. Among them, the Distance method returns the distance between a point pair or between a point and a line segment, a circle arc or a rectangle.

◆ Dot()

float eVision.EPoint.Dot ( eVision.EPoint Point)

Compute the dot product of two EPoint object.

Parameters
PointSecond factor of the dot product.

◆ Drag() [1/10]

void eVision.EPoint.Drag ( int x,
int y )

Moves the point to a new position.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.

A point doesn't need to be hit before being draggable. If you want this behavior, save the returned value of EPoint.HitTest and call this method only when this value is different from EEditionMode.None.

◆ Drag() [2/10]

void eVision.EPoint.Drag ( int x,
int y,
eVision.EFrame frame )

Moves the point to a new position.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the point is defined.

A point doesn't need to be hit before being draggable. If you want this behavior, save the returned value of EPoint.HitTest and call this method only when this value is different from EEditionMode.None.

◆ Drag() [3/10]

void eVision.EPoint.Drag ( int x,
int y,
eVision.EFrame frame,
float zoomX )

Moves the point to a new position.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the point is defined.
zoomXHorizontal zoom factor. By default, true scale is used.

A point doesn't need to be hit before being draggable. If you want this behavior, save the returned value of EPoint.HitTest and call this method only when this value is different from EEditionMode.None.

◆ Drag() [4/10]

void eVision.EPoint.Drag ( int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY )

Moves the point to a new position.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the point is defined.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.

A point doesn't need to be hit before being draggable. If you want this behavior, save the returned value of EPoint.HitTest and call this method only when this value is different from EEditionMode.None.

◆ Drag() [5/10]

void eVision.EPoint.Drag ( int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Moves the point to a new position.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the point is defined.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.

A point doesn't need to be hit before being draggable. If you want this behavior, save the returned value of EPoint.HitTest and call this method only when this value is different from EEditionMode.None.

◆ Drag() [6/10]

void eVision.EPoint.Drag ( int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Moves the point to a new position.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the point is defined.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.
panYVertical pan offset. By default, no pan is added.

A point doesn't need to be hit before being draggable. If you want this behavior, save the returned value of EPoint.HitTest and call this method only when this value is different from EEditionMode.None.

◆ Drag() [7/10]

void eVision.EPoint.Drag ( int x,
int y,
float zoomX )

Moves the point to a new position.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.

A point doesn't need to be hit before being draggable. If you want this behavior, save the returned value of EPoint.HitTest and call this method only when this value is different from EEditionMode.None.

◆ Drag() [8/10]

void eVision.EPoint.Drag ( int x,
int y,
float zoomX,
float zoomY )

Moves the point to a new position.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.

A point doesn't need to be hit before being draggable. If you want this behavior, save the returned value of EPoint.HitTest and call this method only when this value is different from EEditionMode.None.

◆ Drag() [9/10]

void eVision.EPoint.Drag ( int x,
int y,
float zoomX,
float zoomY,
float panX )

Moves the point to a new position.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.

A point doesn't need to be hit before being draggable. If you want this behavior, save the returned value of EPoint.HitTest and call this method only when this value is different from EEditionMode.None.

◆ Drag() [10/10]

void eVision.EPoint.Drag ( int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY )

Moves the point to a new position.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.
panYVertical pan offset. By default, no pan is added.

A point doesn't need to be hit before being draggable. If you want this behavior, save the returned value of EPoint.HitTest and call this method only when this value is different from EEditionMode.None.

◆ Draw() [1/10]

void eVision.EPoint.Draw ( eVision.EDrawAdapter drawAdapter)

Draws the EPoint.

Parameters
drawAdapterHandle of the device context on which to draw.

◆ Draw() [2/10]

void eVision.EPoint.Draw ( eVision.EDrawAdapter drawAdapter,
eVision.EFrame frame )

Draws the EPoint.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the point is defined.

◆ Draw() [3/10]

void eVision.EPoint.Draw ( eVision.EDrawAdapter drawAdapter,
eVision.EFrame frame,
float zoomX )

Draws the EPoint.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the point is defined.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ Draw() [4/10]

void eVision.EPoint.Draw ( eVision.EDrawAdapter drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draws the EPoint.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the point is defined.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ Draw() [5/10]

void eVision.EPoint.Draw ( eVision.EDrawAdapter drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draws the EPoint.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the point is defined.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [6/10]

void eVision.EPoint.Draw ( eVision.EDrawAdapter drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the EPoint.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the point is defined.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [7/10]

void eVision.EPoint.Draw ( eVision.EDrawAdapter drawAdapter,
float zoomX )

Draws the EPoint.

Parameters
drawAdapterHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ Draw() [8/10]

void eVision.EPoint.Draw ( eVision.EDrawAdapter drawAdapter,
float zoomX,
float zoomY )

Draws the EPoint.

Parameters
drawAdapterHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ Draw() [9/10]

void eVision.EPoint.Draw ( eVision.EDrawAdapter drawAdapter,
float zoomX,
float zoomY,
float panX )

Draws the EPoint.

Parameters
drawAdapterHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [10/10]

void eVision.EPoint.Draw ( eVision.EDrawAdapter drawAdapter,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the EPoint.

Parameters
drawAdapterHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawHandle() [1/10]

void eVision.EPoint.DrawHandle ( eVision.EDrawAdapter drawAdapter)

Draws the EPoint handle for graphical manipulation.

Parameters
drawAdapterHandle of the device context on which to draw.

◆ DrawHandle() [2/10]

void eVision.EPoint.DrawHandle ( eVision.EDrawAdapter drawAdapter,
eVision.EFrame frame )

Draws the EPoint handle for graphical manipulation.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the point is defined.

◆ DrawHandle() [3/10]

void eVision.EPoint.DrawHandle ( eVision.EDrawAdapter drawAdapter,
eVision.EFrame frame,
float zoomX )

Draws the EPoint handle for graphical manipulation.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the point is defined.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawHandle() [4/10]

void eVision.EPoint.DrawHandle ( eVision.EDrawAdapter drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draws the EPoint handle for graphical manipulation.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the point is defined.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawHandle() [5/10]

void eVision.EPoint.DrawHandle ( eVision.EDrawAdapter drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draws the EPoint handle for graphical manipulation.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the point is defined.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawHandle() [6/10]

void eVision.EPoint.DrawHandle ( eVision.EDrawAdapter drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the EPoint handle for graphical manipulation.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the point is defined.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawHandle() [7/10]

void eVision.EPoint.DrawHandle ( eVision.EDrawAdapter drawAdapter,
float zoomX )

Draws the EPoint handle for graphical manipulation.

Parameters
drawAdapterHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawHandle() [8/10]

void eVision.EPoint.DrawHandle ( eVision.EDrawAdapter drawAdapter,
float zoomX,
float zoomY )

Draws the EPoint handle for graphical manipulation.

Parameters
drawAdapterHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawHandle() [9/10]

void eVision.EPoint.DrawHandle ( eVision.EDrawAdapter drawAdapter,
float zoomX,
float zoomY,
float panX )

Draws the EPoint handle for graphical manipulation.

Parameters
drawAdapterHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawHandle() [10/10]

void eVision.EPoint.DrawHandle ( eVision.EDrawAdapter drawAdapter,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the EPoint handle for graphical manipulation.

Parameters
drawAdapterHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ HitTest() [1/8]

eVision.EEditionMode eVision.EPoint.HitTest ( int x,
int y,
eVision.EFrame frame,
float zoomX )

Detects if the cursor is placed over the point.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the point is defined.
zoomXHorizontal zoom factor. By default, true scale is used.

Returns an EEditionMode indicating the type of handle under the mouse.

◆ HitTest() [2/8]

eVision.EEditionMode eVision.EPoint.HitTest ( int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY )

Detects if the cursor is placed over the point.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the point is defined.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.

Returns an EEditionMode indicating the type of handle under the mouse.

◆ HitTest() [3/8]

eVision.EEditionMode eVision.EPoint.HitTest ( int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Detects if the cursor is placed over the point.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the point is defined.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.

Returns an EEditionMode indicating the type of handle under the mouse.

◆ HitTest() [4/8]

eVision.EEditionMode eVision.EPoint.HitTest ( int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Detects if the cursor is placed over the point.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the point is defined.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.
panYVertical pan offset. By default, no pan is added.

Returns an EEditionMode indicating the type of handle under the mouse.

◆ HitTest() [5/8]

eVision.EEditionMode eVision.EPoint.HitTest ( int x,
int y,
float zoomX )

Detects if the cursor is placed over the point.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.

Returns an EEditionMode indicating the type of handle under the mouse.

◆ HitTest() [6/8]

eVision.EEditionMode eVision.EPoint.HitTest ( int x,
int y,
float zoomX,
float zoomY )

Detects if the cursor is placed over the point.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.

Returns an EEditionMode indicating the type of handle under the mouse.

◆ HitTest() [7/8]

eVision.EEditionMode eVision.EPoint.HitTest ( int x,
int y,
float zoomX,
float zoomY,
float panX )

Detects if the cursor is placed over the point.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.

Returns an EEditionMode indicating the type of handle under the mouse.

◆ HitTest() [8/8]

eVision.EEditionMode eVision.EPoint.HitTest ( int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY )

Detects if the cursor is placed over the point.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.
panYVertical pan offset. By default, no pan is added.

Returns an EEditionMode indicating the type of handle under the mouse.

◆ Load() [1/2]

void eVision.EPoint.Load ( eVision.ESerializer serializer)

Load the EPoint configuration. The given ESerializer must have been created for reading.

Parameters
serializerThe serializer.

◆ Load() [2/2]

void eVision.EPoint.Load ( string path)

Load the EPoint configuration. The given ESerializer must have been created for reading.

Parameters
pathThe file path.

◆ MidPoint()

eVision.EPoint eVision.EPoint.MidPoint ( eVision.EPoint Point)

Returns the middle coordinate between this EPoint object and another EPoint object.

Parameters
PointThe other EPoint object.

◆ Modulus()

float eVision.EPoint.Modulus ( )

Compute the euclidean modulus of a EPoint.

Compute the squared root of the sum of the squared coordinates of an EPoint. If the axis frame is orthogonal, this number is also the euclidean norm of the EPoint.

◆ Move()

eVision.EPoint eVision.EPoint.Move ( float angle,
float distance )

Return the position by moving the point along angle by distance.

Parameters
angleThe direction of the displacement, in radians.
distanceThe distance of the displacement.

◆ operator!=()

bool eVision.EPoint.operator!= ( eVision.EPoint extraArgument,
eVision.EPoint point )
static

Compares the current EPoint center coordinates with the center coordinates of another EPoint object.

Parameters
pointThe other EPoint object.

Returns true if X and Y are respectively different.

◆ operator*()

eVision.EPoint eVision.EPoint.operator* ( eVision.EPoint extraArgument,
float scalar )
static

Multiplies the current EPoint center coordinates by a given multiplier.

Parameters
scalarThe multiplier.

◆ operator+()

eVision.EPoint eVision.EPoint.operator+ ( eVision.EPoint extraArgument,
eVision.EPoint point )
static

Adds to the current EPoint center coordinates the center coordinates of another EPoint object.

Parameters
pointThe other EPoint object.

◆ operator-()

eVision.EPoint eVision.EPoint.operator- ( eVision.EPoint extraArgument,
eVision.EPoint point )
static

Subtracts from the current EPoint center coordinates the center coordinates of another EPoint object.

Parameters
pointThe other EPoint object.

◆ operator/()

eVision.EPoint eVision.EPoint.operator/ ( eVision.EPoint extraArgument,
float scalar )
static

Divides the current EPoint center coordinates by a given divisor.

Parameters
scalarThe divisor.

◆ operator==()

bool eVision.EPoint.operator== ( eVision.EPoint extraArgument,
eVision.EPoint point )
static

Compares the current EPoint center coordinates with the center coordinates of another EPoint object.

Parameters
pointThe other EPoint object.

Returns true if both X and Y are respectively the same.

◆ Project() [1/8]

eVision.EPoint eVision.EPoint.Project ( eVision.ECircle circle)

Compute the orthogonal projection of a EPoint on another shape.

Parameters
circleECircle object to which point is projected.

Compute the orthogonal projection of a EPoint on another shape. This computation is only valid when the axis frame is orthogonal. When the shape is restricted and the orthogonal projection does not lie on the shape, then the closest point on the shape is returned instead.

◆ Project() [2/8]

eVision.EPoint eVision.EPoint.Project ( eVision.ECircle circle,
bool arcOnly )

Compute the orthogonal projection of a EPoint on another shape.

Parameters
circleECircle object to which point is projected.
arcOnlyBy default (false), the circle is not restricted to an arc.

Compute the orthogonal projection of a EPoint on another shape. This computation is only valid when the axis frame is orthogonal. When the shape is restricted and the orthogonal projection does not lie on the shape, then the closest point on the shape is returned instead.

◆ Project() [3/8]

eVision.EPoint eVision.EPoint.Project ( eVision.ELine line)

Compute the orthogonal projection of a EPoint on another shape.

Parameters
lineELine object to which point is projected.

Compute the orthogonal projection of a EPoint on another shape. This computation is only valid when the axis frame is orthogonal. When the shape is restricted and the orthogonal projection does not lie on the shape, then the closest point on the shape is returned instead.

◆ Project() [4/8]

eVision.EPoint eVision.EPoint.Project ( eVision.ELine line,
bool segmentOnly )

Compute the orthogonal projection of a EPoint on another shape.

Parameters
lineELine object to which point is projected.
segmentOnlyBy default (false), the line is not restricted to a segment.

Compute the orthogonal projection of a EPoint on another shape. This computation is only valid when the axis frame is orthogonal. When the shape is restricted and the orthogonal projection does not lie on the shape, then the closest point on the shape is returned instead.

◆ Project() [5/8]

eVision.EPoint eVision.EPoint.Project ( eVision.Legacy.ECircle circle)

Compute the orthogonal projection of a EPoint on another shape.

Parameters
circleECircle object to which point is projected.

Compute the orthogonal projection of a EPoint on another shape. This computation is only valid when the axis frame is orthogonal. When the shape is restricted and the orthogonal projection does not lie on the shape, then the closest point on the shape is returned instead.

◆ Project() [6/8]

eVision.EPoint eVision.EPoint.Project ( eVision.Legacy.ECircle circle,
bool arcOnly )

Compute the orthogonal projection of a EPoint on another shape.

Parameters
circleECircle object to which point is projected.
arcOnlyBy default (false), the circle is not restricted to an arc.

Compute the orthogonal projection of a EPoint on another shape. This computation is only valid when the axis frame is orthogonal. When the shape is restricted and the orthogonal projection does not lie on the shape, then the closest point on the shape is returned instead.

◆ Project() [7/8]

eVision.EPoint eVision.EPoint.Project ( eVision.Legacy.ELine line)

Compute the orthogonal projection of a EPoint on another shape.

Parameters
lineELine object to which point is projected.

Compute the orthogonal projection of a EPoint on another shape. This computation is only valid when the axis frame is orthogonal. When the shape is restricted and the orthogonal projection does not lie on the shape, then the closest point on the shape is returned instead.

◆ Project() [8/8]

eVision.EPoint eVision.EPoint.Project ( eVision.Legacy.ELine line,
bool segmentOnly )

Compute the orthogonal projection of a EPoint on another shape.

Parameters
lineELine object to which point is projected.
segmentOnlyBy default (false), the line is not restricted to a segment.

Compute the orthogonal projection of a EPoint on another shape. This computation is only valid when the axis frame is orthogonal. When the shape is restricted and the orthogonal projection does not lie on the shape, then the closest point on the shape is returned instead.

◆ Rotate()

eVision.EPoint eVision.EPoint.Rotate ( float angle)

Returns another EPoint object containing the coordinated of the rotated point.

Parameters
angleRotation angle (in radians)

Rotates a EPoint around the origin (0, 0) by an angle of angle radians. By definition, the smallest (in absolute value) rotation of the oriented X-Axis toward the oriented Y-Axis is chosen as the positive sense of rotation. In a direct frame, this is also the trigonometric sense (counter clockwise).

◆ Save() [1/2]

void eVision.EPoint.Save ( eVision.ESerializer serializer)

Save the EPoint configuration. The given ESerializer must have been created for writing.

Parameters
serializerThe serializer.

◆ Save() [2/2]

void eVision.EPoint.Save ( string path)

Save the EPoint configuration. The given ESerializer must have been created for writing.

Parameters
pathThe file path.

◆ SetCenterXY()

void eVision.EPoint.SetCenterXY ( float centerX,
float centerY )

Sets the center coordinates of a EPoint object.

Parameters
centerXCenter coordinates of the EPoint object.
centerYCenter coordinates of the EPoint object.
Deprecated

Use X, Y or the copy constructor instead.

Deprecated in version 25.10. Scheduled to be removed in version 27.6.

◆ Square()

float eVision.EPoint.Square ( )

Compute the sum of the squared coordinates of a EPoint.

Compute the sum of the squared coordinates of a EPoint. If the axis frame is orthogonal, this sum of squares is also the squared euclidean norm of the EPoint object.

◆ SquaredDistance()

float eVision.EPoint.SquaredDistance ( eVision.EPoint Point)

Compute the squared distance between two EPoint.

Parameters
PointSecond EPoint.

Compute the sum of squared coordinates differences of two EPoint. If the axis frame is orthogonal, this number is also the squared euclidean distance between two EPoint.

Member Data Documentation

◆ X

float eVision.EPoint.X

Abscissa (X coordinate) of the EPoint object.

◆ Y

float eVision.EPoint.Y

Ordinate (Y coordinate) of the EPoint object.

Property Documentation

◆ Center

eVision.EPoint eVision.EPoint.Center
getset

Center coordinates of a EPoint object.

Deprecated

Use the copy constructor instead.

Deprecated in version 25.10. Scheduled to be removed in version 27.6.