luoyikun

导航

2023年6月29日 #

unity3d:两条线段相交并求交点坐标

摘要: public static float Cross(Vector2 a, Vector2 b) { return a.x * b.y - b.x * a.y; } public static bool SegmentsInterPoint(Vector2 a, Vector2 b, Vector2 阅读全文

posted @ 2023-06-29 11:16 luoyikun 阅读(473) 评论(0) 推荐(0)