public static void DrawLine(Vector2 a, Vector2 b, Color color) { if (debug) { Debug.DrawLine(a, b, color); } else { GLUI.DrawLine(a, b, color, false); } }
void DrawLine(Vector2 a, Vector2 b, Color color, Matrix4x4 m, float width = 1f) { a = m.MultiplyPoint(a); b = m.MultiplyPoint(b); if (width == 1) { GLUI.DrawLine(a, b, color, clip); } else { GLUI.DrawLine(a, b, width, color, clip); } }
void DrawLine(Vector2 a, Vector2 b, Color color, Matrix4x4 m) // 接口 { a = m.MultiplyPoint(a); b = m.MultiplyPoint(b); GLUI.DrawLine(a, b, color); }