/// <summary> /// 2个ab的投影是否包含 /// </summary> /// <param name="ab"></param> /// <returns></returns> public virtual bool CheckContains(IAB ab) { if (ab == null) { return(false); } return(AABB.CheckContains(this.AA3, this.BB3, ab.AA3, ab.BB3)); }
/// <summary> /// 2个ab的投影是否包含 /// </summary> /// <param name="ab"></param> /// <returns></returns> public virtual bool CheckProjectionContains(IAB ab) { if (ab == null) { return(false); } return(AABB.CheckContains(this.AA2, this.BB2, ab.AA2, ab.BB2)); }
/// <summary> /// 2个ab的投影是否包含 /// </summary> /// <param name="ab"></param> /// <returns></returns> public override bool CheckContains(IAB ab) { if (ab == null || m_ListTri == null || m_ListTri.Count == 0) { return(false); } for (int i = 0; i < m_ListTri.Count; i++) { if (m_ListTri != null && m_ListTri[i].CheckContains(ab) == true) { return(true); } } return(false); }