 | MathConversionExtensionsToRectangleF Method |
Converts the specified Unity rectangle to a framework rectangle.
Namespace: Slash.Unity.Common.MathAssembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntaxpublic static RectangleF ToRectangleF(
this Rect rectangle
)
<ExtensionAttribute>
Public Shared Function ToRectangleF (
rectangle As Rect
) As RectangleF
public:
[ExtensionAttribute]
static RectangleF^ ToRectangleF(
Rect rectangle
)
[<ExtensionAttribute>]
static member ToRectangleF :
rectangle : Rect -> RectangleF
Parameters
- rectangle
- Type: Rect
Rectangle to convert.
Return Value
Type:
RectangleFCorresponding framework rectangle.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Rect. 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