ソースコード
using UnityEngine; namespace Kogane { /// <summary> /// Bounds 型の拡張メソッド /// </summary> public static class BoundsExtensionMethods { //================================================================================ // 関数(static) //================================================================================ /// <summary> /// 指定された Bounds が自分自身の中にすべて収まっている場合 true を返します /// </summary> public static bool Contains( this Bounds self, Bounds other ) { return self.Contains( other.min ) && self.Contains( other.max ); } } }