예제 #1
0
 /// <summary>
 /// Set the width of this rect.
 /// </summary>
 public static Rect Width(this HUMMath.Data.SetRect set, float value)
 {
     return(new Rect(set.rect.x, set.rect.y, value, set.rect.height));
 }
예제 #2
0
 /// <summary>
 /// Set the height of this rect.
 /// </summary>
 public static Rect Height(this HUMMath.Data.SetRect set, float value)
 {
     return(new Rect(set.rect.x, set.rect.y, set.rect.width, value));
 }
예제 #3
0
 /// <summary>
 /// Set the X value of this rect.
 /// </summary>
 public static Rect X(this HUMMath.Data.SetRect set, float value)
 {
     return(new Rect(value, set.rect.y, set.rect.width, set.rect.height));
 }