You are here: Start » AVL.NET » AVL.TranslateRectangle(AvlNet.Rectangle2D, AvlNet.Vector2D, bool, AvlNet.Rectangle2D)

AVL.TranslateRectangle(AvlNet.Rectangle2D, AvlNet.Vector2D, bool, AvlNet.Rectangle2D)

Translates a rectangle by a vector.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void TranslateRectangle(
	AvlNet.Rectangle2D inRectangle,
	AvlNet.Vector2D inDelta,
	bool inInverse,
	out AvlNet.Rectangle2D outRectangle
)

Parameters

inRectangle
Type: AvlNet.Rectangle2D
inDelta
Type: AvlNet.Vector2D
Translation vector
inInverse
Type: System.Boolean
Switches to the inverse operation
outRectangle
Type: AvlNet.Rectangle2D

Examples

TranslateRectangle performed on the sample rectangle, inDelta = (60.0, 80.0) and inInverse = False.

See also