Class RectfExtensions
Inheritance
System.Object
RectfExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AssetRipper.SourceGenerated.Extensions
Assembly: AssetRipper.SourceGenerated.Extensions.dll
Syntax
public static class RectfExtensions
Methods
| Improve this Doc View SourceCastToStruct(IRectf)
Declaration
public static RectangleF CastToStruct(this IRectf rectangle)
Parameters
Type | Name | Description |
---|---|---|
AssetRipper.SourceGenerated.Subclasses.Rectf.IRectf | rectangle |
Returns
Type | Description |
---|---|
System.Drawing.RectangleF |
Center(IRectf)
Declaration
public static Vector2 Center(this IRectf rectangle)
Parameters
Type | Name | Description |
---|---|---|
AssetRipper.SourceGenerated.Subclasses.Rectf.IRectf | rectangle |
Returns
Type | Description |
---|---|
System.Numerics.Vector2 |
CopyValues(IRectf, RectangleF)
Declaration
public static void CopyValues(this IRectf rectangle, RectangleF source)
Parameters
Type | Name | Description |
---|---|---|
AssetRipper.SourceGenerated.Subclasses.Rectf.IRectf | rectangle | |
System.Drawing.RectangleF | source |
Position(IRectf)
Declaration
public static Vector2 Position(this IRectf rectangle)
Parameters
Type | Name | Description |
---|---|---|
AssetRipper.SourceGenerated.Subclasses.Rectf.IRectf | rectangle |
Returns
Type | Description |
---|---|
System.Numerics.Vector2 |
Size(IRectf)
Declaration
public static Vector2 Size(this IRectf rectangle)
Parameters
Type | Name | Description |
---|---|---|
AssetRipper.SourceGenerated.Subclasses.Rectf.IRectf | rectangle |
Returns
Type | Description |
---|---|
System.Numerics.Vector2 |