C# Class Nodify.Editor.RectExtensions

Afficher le fichier Open project: anneomcl/LetsMake

Méthodes publiques

Méthode 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 méthode

public static GetRectFromPoints ( Vector2 corner1, Vector2 corner2 ) : Rect
corner1 Vector2
corner2 Vector2
Résultat UnityEngine.Rect

ScaleSizeBy() public static méthode

public static ScaleSizeBy ( this rect, Vector2 scale ) : Rect
rect this
scale Vector2
Résultat UnityEngine.Rect

ScaleSizeBy() public static méthode

public static ScaleSizeBy ( this rect, Vector2 scale, Vector2 pivotPoint ) : Rect
rect this
scale Vector2
pivotPoint Vector2
Résultat UnityEngine.Rect

ScaleSizeBy() public static méthode

public static ScaleSizeBy ( this rect, float scale ) : Rect
rect this
scale float
Résultat UnityEngine.Rect

ScaleSizeBy() public static méthode

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

TopLeft() public static méthode

public static TopLeft ( this rect ) : Vector2
rect this
Résultat Vector2