/// <summary> /// 确定投影点p是否在三角形的投影中(xz平面的投影) /// </summary> /// <param name="p"></param> /// <returns></returns> public override bool CheckProjectionInArea(Vector3 p) { return(AABB.CheckProjectionPointinTriangle(this.P1, this.P2, this.P3, p)); }
/// <summary> /// 确定投影点p是否在三角形的投影中(xz平面的投影) /// </summary> /// <param name="p"></param> /// <returns></returns> public override bool CheckProjectionInArea(Vector2 p) { return(AABB.CheckProjectionPointinTriangle(this.P1, this.P2, this.P3, new Vector3(p.x, 0, p.y))); }