Пример #1
0
 //------------------------------------------------------------
 public static Bounds ScaleExtent(this Bounds bounds, Vector3 scalage)
 {
     return(BoundsEx.NewByExtent(bounds.center, Vector3.Scale(bounds.extents, scalage)));
 }
Пример #2
0
 public static Bounds Extend(this Bounds bounds, Vector3 offset)
 {
     return(BoundsEx.NewByExtent(bounds.center, bounds.extents + offset));
 }