Click or drag to resize
MathConversionExtensionsToRect Method (RectangleI)
Converts the specified framework rectangle to an Unity rectangle.

Namespace: Slash.Unity.Common.Math
Assembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntax
public static Rect ToRect(
	this RectangleI rectangle
)

Parameters

rectangle
Type: Slash.Math.Geometry.RectanglesRectangleI
Rectangle to convert.

Return Value

Type: Rect
Corresponding Unity rectangle.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type RectangleI. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also