Click or drag to resize

ClickAndTeachViewModelGetCenterPointWorldFromTileRectangle Method

Calculates from the given rectangle corners the center point. Not quite clear any longer under which conditions this is not just the geometric center. But to be on the safe side we get the TileRectangleResult in the same way here when called by ImageProcessing.FindPositions() as in the normal operation.

Namespace: RAYLASE.Marker.ClickAndTeachPlugin
Assembly: RAYLASE.Marker.ClickAndTeachPlugin (in RAYLASE.Marker.ClickAndTeachPlugin.dll) Version: 2.49.0
Syntax
C#
public dvec3 GetCenterPointWorldFromTileRectangle(
	BasePluginCamera camera,
	dvec2 centerWorld,
	dvec2 sizeWorld
)

Parameters

camera  BasePluginCamera
The camera whose parameters are used for the needed geometric calculations.
centerWorld  dvec2
The center of the area to be tiled.
sizeWorld  dvec2
The size of the area to be tiled.

Return Value

dvec3
The center of the area; possibly not always the geometric center.
See Also