Selects the image based on the input position. The image becomes selected if the input position is insde the image rectangle, otherwise, not selected. Sets the mTouchPosToSizeRatio if image is selected. This ratio tells us the ratio of the input position to the dimensio not the image. This ratio allows us to drag/scale portionally with respect to the input position (rather than with respect to the center of the image).

Namespace: SimpleLibrary
Assembly: SimpleLibrary (in SimpleLibrary.dll) Version: 1.0.0.0

Syntax

C#
public bool Selected(
	Vector2 pos
)
Visual Basic
Public Function Selected ( _
	pos As Vector2 _
) As Boolean
Visual C++
public:
bool Selected(
	Vector2 pos
)

Parameters

pos
Type: Vector2
Input position

Return Value

True: if selected. else: False

See Also