eVision Python API
Loading...
Searching...
No Matches
eVision.EPoint Class Reference

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

Public Member Functions

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

Detailed Description

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

Remarks:

License(s): None

Constructor & Destructor Documentation

◆ __init__() [1/5]

None eVision.EPoint.__init__ ( self)

Constructs a eVision.EPoint object.

◆ __init__() [2/5]

None eVision.EPoint.__init__ ( self,
float centerX,
float centerY )

Constructs a eVision.EPoint object.

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

◆ __init__() [3/5]

None eVision.EPoint.__init__ ( self,
eVision.EFrame frame )

Constructs a eVision.EPoint object.

Deprecated

Use eVision.EFrame.Center or eVision.EFrame.SensorCenter instead.

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

Parameters
frameTo construct a eVision.EPoint from the center of a eVision.EFrame

◆ __init__() [4/5]

None eVision.EPoint.__init__ ( self,
float X )
Parameters
XAbscissa (X coordinate) of the eVision.EPoint object

◆ __init__() [5/5]

None eVision.EPoint.__init__ ( self,
eVision.EPoint other )
Parameters
otherOther instance

Member Function Documentation

◆ Area()

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

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

Remarks:

Compute the oriented area of the parallelogram built on two eVision.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).

Parameters
PointSecond edge of the parallelogram.

◆ Argument()

float eVision.EPoint.Argument ( self)

Compute the polar argument of a eVision.EPoint object.

Remarks:

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

◆ Center() [1/2]

eVision.EPoint eVision.EPoint.Center ( self)

Center coordinates of a eVision.EPoint object.

Deprecated

Use the copy constructor instead.

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

◆ Center() [2/2]

eVision.EPoint.Center ( self,
eVision.EPoint value )

Center coordinates of a eVision.EPoint object.

Deprecated

Use the copy constructor instead.

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

◆ CopyTo()

None eVision.EPoint.CopyTo ( self,
eVision.EPoint other )

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

Remarks:

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

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

◆ Cross()

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

Compute the cross product of two eVision.EPoint object.

Parameters
PointSecond factor of the cross product.

◆ Distance() [1/9]

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

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

Remarks:

Many EasyGauge members provide measurement result as a eVision.EPoint.__init__ object (see eVision.EPointGauge.Center, eVision.EPointGauge.GetMeasuredPoint,...). The eVision.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.

Parameters
circleeVision.ECircle object with which to calculate the distance.

◆ Distance() [2/9]

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

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

Remarks:

Many EasyGauge members provide measurement result as a eVision.EPoint.__init__ object (see eVision.EPointGauge.Center, eVision.EPointGauge.GetMeasuredPoint,...). The eVision.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.

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

◆ Distance() [3/9]

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

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

Remarks:

Many EasyGauge members provide measurement result as a eVision.EPoint.__init__ object (see eVision.EPointGauge.Center, eVision.EPointGauge.GetMeasuredPoint,...). The eVision.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.

Parameters
lineeVision.ELine object with which to calculate the distance.

◆ Distance() [4/9]

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

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

Remarks:

Many EasyGauge members provide measurement result as a eVision.EPoint.__init__ object (see eVision.EPointGauge.Center, eVision.EPointGauge.GetMeasuredPoint,...). The eVision.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.

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

◆ Distance() [5/9]

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

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

Remarks:

Many EasyGauge members provide measurement result as a eVision.EPoint.__init__ object (see eVision.EPointGauge.Center, eVision.EPointGauge.GetMeasuredPoint,...). The eVision.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.

Parameters
pointeVision.EPoint.__init__ object with which to calculate the distance.

◆ Distance() [6/9]

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

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

Remarks:

Many EasyGauge members provide measurement result as a eVision.EPoint.__init__ object (see eVision.EPointGauge.Center, eVision.EPointGauge.GetMeasuredPoint,...). The eVision.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.

Parameters
circleeVision.ECircle object with which to calculate the distance.

◆ Distance() [7/9]

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

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

Remarks:

Many EasyGauge members provide measurement result as a eVision.EPoint.__init__ object (see eVision.EPointGauge.Center, eVision.EPointGauge.GetMeasuredPoint,...). The eVision.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.

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

◆ Distance() [8/9]

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

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

Remarks:

Many EasyGauge members provide measurement result as a eVision.EPoint.__init__ object (see eVision.EPointGauge.Center, eVision.EPointGauge.GetMeasuredPoint,...). The eVision.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.

Parameters
lineeVision.ELine object with which to calculate the distance.

◆ Distance() [9/9]

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

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

Remarks:

Many EasyGauge members provide measurement result as a eVision.EPoint.__init__ object (see eVision.EPointGauge.Center, eVision.EPointGauge.GetMeasuredPoint,...). The eVision.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.

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

◆ Dot()

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

Compute the dot product of two eVision.EPoint object.

Parameters
PointSecond factor of the dot product.

◆ Drag() [1/10]

None eVision.EPoint.Drag ( self,
int x,
int y )

Moves the point to a new position.

Remarks:

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

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

◆ Drag() [2/10]

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

Moves the point to a new position.

Remarks:

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

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

◆ Drag() [3/10]

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

Moves the point to a new position.

Remarks:

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

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.

◆ Drag() [4/10]

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

Moves the point to a new position.

Remarks:

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

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.

◆ Drag() [5/10]

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

Moves the point to a new position.

Remarks:

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

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.

◆ Drag() [6/10]

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

Moves the point to a new position.

Remarks:

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

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.

◆ Drag() [7/10]

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

Moves the point to a new position.

Remarks:

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

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

◆ Drag() [8/10]

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

Moves the point to a new position.

Remarks:

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

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.

◆ Drag() [9/10]

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

Moves the point to a new position.

Remarks:

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

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.

◆ Drag() [10/10]

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

Moves the point to a new position.

Remarks:

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

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.

◆ Draw() [1/10]

None eVision.EPoint.Draw ( self,
eVision.EDrawAdapter | None drawAdapter )

Draws the eVision.EPoint.

Parameters
drawAdapterHandle of the device context on which to draw.

◆ Draw() [2/10]

None eVision.EPoint.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame )

Draws the eVision.EPoint.

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

◆ Draw() [3/10]

None eVision.EPoint.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float zoomX )

Draws the eVision.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]

None eVision.EPoint.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draws the eVision.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]

None eVision.EPoint.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draws the eVision.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]

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

Draws the eVision.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]

None eVision.EPoint.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX )

Draws the eVision.EPoint.

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

◆ Draw() [8/10]

None eVision.EPoint.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX,
float zoomY )

Draws the eVision.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]

None eVision.EPoint.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX,
float zoomY,
float panX )

Draws the eVision.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]

None eVision.EPoint.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the eVision.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]

None eVision.EPoint.DrawHandle ( self,
eVision.EDrawAdapter | None drawAdapter )

Draws the eVision.EPoint handle for graphical manipulation.

Parameters
drawAdapterHandle of the device context on which to draw.

◆ DrawHandle() [2/10]

None eVision.EPoint.DrawHandle ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame )

Draws the eVision.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]

None eVision.EPoint.DrawHandle ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float zoomX )

Draws the eVision.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]

None eVision.EPoint.DrawHandle ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draws the eVision.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]

None eVision.EPoint.DrawHandle ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draws the eVision.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]

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

Draws the eVision.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]

None eVision.EPoint.DrawHandle ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX )

Draws the eVision.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]

None eVision.EPoint.DrawHandle ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX,
float zoomY )

Draws the eVision.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]

None eVision.EPoint.DrawHandle ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX,
float zoomY,
float panX )

Draws the eVision.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]

None eVision.EPoint.DrawHandle ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the eVision.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 ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX )

Detects if the cursor is placed over the point.

Remarks:

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

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.

◆ HitTest() [2/8]

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

Detects if the cursor is placed over the point.

Remarks:

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

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.

◆ HitTest() [3/8]

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

Detects if the cursor is placed over the point.

Remarks:

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

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.

◆ HitTest() [4/8]

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

Detects if the cursor is placed over the point.

Remarks:

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

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.

◆ HitTest() [5/8]

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

Detects if the cursor is placed over the point.

Remarks:

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

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

◆ HitTest() [6/8]

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

Detects if the cursor is placed over the point.

Remarks:

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

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.

◆ HitTest() [7/8]

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

Detects if the cursor is placed over the point.

Remarks:

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

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.

◆ HitTest() [8/8]

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

Detects if the cursor is placed over the point.

Remarks:

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

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.

◆ Load() [1/2]

None eVision.EPoint.Load ( self,
eVision.ESerializer | None serializer )

Load the eVision.EPoint configuration.

The given eVision.ESerializer must have been created for reading.

Parameters
serializerThe serializer.

◆ Load() [2/2]

None eVision.EPoint.Load ( self,
str path )

Load the eVision.EPoint configuration.

The given eVision.ESerializer must have been created for reading.

Parameters
pathThe file path.

◆ MidPoint()

eVision.EPoint eVision.EPoint.MidPoint ( self,
eVision.EPoint Point )

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

Parameters
PointThe other eVision.EPoint object.

◆ Modulus()

float eVision.EPoint.Modulus ( self)

Compute the euclidean modulus of a eVision.EPoint.

Remarks:

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

◆ Move()

eVision.EPoint eVision.EPoint.Move ( self,
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.

◆ Project() [1/8]

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

Compute the orthogonal projection of a eVision.EPoint on another shape.

Remarks:

Compute the orthogonal projection of a eVision.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.

Parameters
circleeVision.ECircle object to which point is projected.

◆ Project() [2/8]

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

Compute the orthogonal projection of a eVision.EPoint on another shape.

Remarks:

Compute the orthogonal projection of a eVision.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.

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

◆ Project() [3/8]

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

Compute the orthogonal projection of a eVision.EPoint on another shape.

Remarks:

Compute the orthogonal projection of a eVision.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.

Parameters
lineeVision.ELine object to which point is projected.

◆ Project() [4/8]

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

Compute the orthogonal projection of a eVision.EPoint on another shape.

Remarks:

Compute the orthogonal projection of a eVision.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.

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

◆ Project() [5/8]

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

Compute the orthogonal projection of a eVision.EPoint on another shape.

Remarks:

Compute the orthogonal projection of a eVision.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.

Parameters
circleeVision.ECircle object to which point is projected.

◆ Project() [6/8]

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

Compute the orthogonal projection of a eVision.EPoint on another shape.

Remarks:

Compute the orthogonal projection of a eVision.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.

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

◆ Project() [7/8]

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

Compute the orthogonal projection of a eVision.EPoint on another shape.

Remarks:

Compute the orthogonal projection of a eVision.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.

Parameters
lineeVision.ELine object to which point is projected.

◆ Project() [8/8]

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

Compute the orthogonal projection of a eVision.EPoint on another shape.

Remarks:

Compute the orthogonal projection of a eVision.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.

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

◆ Rotate()

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

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

Remarks:

Rotates a eVision.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).

Parameters
angleRotation angle (in radians)

◆ Save() [1/2]

None eVision.EPoint.Save ( self,
eVision.ESerializer | None serializer )

Save the eVision.EPoint configuration.

The given eVision.ESerializer must have been created for writing.

Parameters
serializerThe serializer.

◆ Save() [2/2]

None eVision.EPoint.Save ( self,
str path )

Save the eVision.EPoint configuration.

The given eVision.ESerializer must have been created for writing.

Parameters
pathThe file path.

◆ SetCenterXY()

None eVision.EPoint.SetCenterXY ( self,
float centerX,
float centerY )

Sets the center coordinates of a eVision.EPoint object.

Deprecated

Use X, Y or the copy constructor instead.

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

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

◆ Square()

float eVision.EPoint.Square ( self)

Compute the sum of the squared coordinates of a eVision.EPoint.

Remarks:

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

◆ SquaredDistance()

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

Compute the squared distance between two eVision.EPoint.

Remarks:

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

Parameters
PointSecond eVision.EPoint.

◆ X() [1/2]

float eVision.EPoint.X ( self)

Abscissa (X coordinate) of the eVision.EPoint object.

◆ X() [2/2]

eVision.EPoint.X ( self,
float value )

Abscissa (X coordinate) of the eVision.EPoint object.

◆ Y() [1/2]

float eVision.EPoint.Y ( self)

Ordinate (Y coordinate) of the eVision.EPoint object.

◆ Y() [2/2]

eVision.EPoint.Y ( self,
float value )

Ordinate (Y coordinate) of the eVision.EPoint object.