コード例 #1
0
ファイル: Box3.cs プロジェクト: AnomalousMedical/Engine
 public bool isInside(Vector3 point)
 {
     point -= center;
     point  = point.absolute();
     if (point.x <= extents.x && point.y <= extents.y && point.z <= extents.z)
     {
         return(true);
     }
     return(false);
 }