线与线相交、线与矩形相交判断
/// /// 只要线与矩形有一条线有相交,则线与矩形相交/// public class LineWithRect : MonoBehaviour{public Rect rect = new Rect(0, 0, 100, 100);public Transform LineStart;public Transform lineEnd;Vector3 VecLineStart;...