C# Class Nodify.Editor.RectExtensions

Mostra file Open project: anneomcl/LetsMake

Public Methods

Method Description
GetRectFromPoints ( Vector2 corner1, Vector2 corner2 ) : Rect
ScaleSizeBy ( this rect, Vector2 scale ) : Rect
ScaleSizeBy ( this rect, Vector2 scale, Vector2 pivotPoint ) : Rect
ScaleSizeBy ( this rect, float scale ) : Rect
ScaleSizeBy ( this rect, float scale, Vector2 pivotPoint ) : Rect
TopLeft ( this rect ) : Vector2

Method Details

GetRectFromPoints() public static method

public static GetRectFromPoints ( Vector2 corner1, Vector2 corner2 ) : Rect
corner1 Vector2
corner2 Vector2
return UnityEngine.Rect

ScaleSizeBy() public static method

public static ScaleSizeBy ( this rect, Vector2 scale ) : Rect
rect this
scale Vector2
return UnityEngine.Rect

ScaleSizeBy() public static method

public static ScaleSizeBy ( this rect, Vector2 scale, Vector2 pivotPoint ) : Rect
rect this
scale Vector2
pivotPoint Vector2
return UnityEngine.Rect

ScaleSizeBy() public static method

public static ScaleSizeBy ( this rect, float scale ) : Rect
rect this
scale float
return UnityEngine.Rect

ScaleSizeBy() public static method

public static ScaleSizeBy ( this rect, float scale, Vector2 pivotPoint ) : Rect
rect this
scale float
pivotPoint Vector2
return UnityEngine.Rect

TopLeft() public static method

public static TopLeft ( this rect ) : Vector2
rect this
return Vector2