Пример #1
0
 /// <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));
 }
Пример #2
0
 /// <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));
 }
Пример #3
0
 /// <summary>
 /// 2个ab的投影是否包含
 /// </summary>
 /// <param name="ab"></param>
 /// <returns></returns>
 public virtual bool CheckContains(Vector3 AA, Vector3 BB)
 {
     return(AABB.CheckContains(this.AA3, this.BB3, AA, BB));
 }
Пример #4
0
 /// <summary>
 /// 2个ab的投影是否包含
 /// </summary>
 /// <param name="ab"></param>
 /// <returns></returns>
 public virtual bool CheckProjectionContains(Vector2 AA, Vector2 BB)
 {
     return(AABB.CheckContains(this.AA2, this.BB2, AA, BB));
 }
Пример #5
0
 /// <summary>
 /// 判断点在AABB中
 /// </summary>
 /// <param name="p"></param>
 /// <returns></returns>
 public virtual bool CheckInArea(Vector3 p)
 {
     return(AABB.CheckContains(this.AA3, this.BB3, p));
 }
Пример #6
0
 /// <summary>
 /// 判断点投影在投影AABB
 /// </summary>
 /// <param name="p"></param>
 /// <returns></returns>
 public virtual bool CheckProjectionInArea(Vector3 p)
 {
     return(AABB.CheckContains(this.AA2, this.BB2, new Vector2(p.x, p.z)));
 }
Пример #7
0
 /// <summary>
 /// 判断点在投影AABB
 /// </summary>
 /// <param name="p"></param>
 /// <returns></returns>
 public virtual bool CheckProjectionInArea(Vector2 p)
 {
     return(AABB.CheckContains(this.AA2, this.BB2, p));
 }