IPointerPointTransform.TryTransformBounds(Rect, Rect) Method

Definition

Transforms the specified bounding rectangle.

public:
 bool TryTransformBounds(Rect inRect, [Out] Rect & outRect);
bool TryTransformBounds(Rect const& inRect, [Out] Rect & outRect);
public bool TryTransformBounds(Rect inRect, out Rect outRect);
Public Function TryTransformBounds (inRect As Rect, ByRef outRect As Rect) As Boolean

Parameters

inRect
Rect

The bounding rectangle to transform.

outRect
Rect

The smallest, axis-aligned bounding box that encloses rect after the transformation. (An axis-aligned bounding box is one which has all sides parallel to the coordinate axes.)

Returns

Boolean

bool

True, if transform was successful. Otherwise, false.

Remarks

rect is typically the ContactRect associated with the input point that is transformed through the TryTransform method. rect must be recalculated as it does not change with the transformation of the input point.

Applies to