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