Singer Instruments PIXL Client
ConvertActualPositionToGridLocation Method



SI.PIXL.Client.Helpers Namespace > LocationHelper Class : ConvertActualPositionToGridLocation Method
The layout of the plate.
The X position, in millimetres.
The Y position, in millimetres.
The acceptable variance between the position and the grid location.
The new location.
Converts an actual position to a grid location.
Syntax
'Declaration
 
Public Shared Function ConvertActualPositionToGridLocation( _
   ByVal layout As Layout, _
   ByVal x As Double, _
   ByVal y As Double, _
   ByVal tolerance As Single, _
   ByRef location As Location _
) As Boolean
'Usage
 
Dim layout As Layout
Dim x As Double
Dim y As Double
Dim tolerance As Single
Dim location As Location
Dim value As Boolean
 
value = LocationHelper.ConvertActualPositionToGridLocation(layout, x, y, tolerance, location)
public static bool ConvertActualPositionToGridLocation( 
   Layout layout,
   double x,
   double y,
   float tolerance,
   out Location location
)
public:
static bool ConvertActualPositionToGridLocation( 
   Layout layout,
   double x,
   double y,
   float tolerance,
   [Out] Location location
) 

Parameters

layout
The layout of the plate.
x
The X position, in millimetres.
y
The Y position, in millimetres.
tolerance
The acceptable variance between the position and the grid location.
location
The new location.

Return Value

True if the actual position could be converted to a grid position, else false.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

LocationHelper Class
LocationHelper Members