{"height":"190","provider_name":"Hatena Blog","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/m/mirichi/20090512/20090512181038.jpg","description":"\u30cd\u30c3\u30c8\u3092\u6f01\u3063\u3066\u3068\u308a\u3042\u3048\u305aRuby\u3067\u5b9f\u88c5\u3002 \u57fa\u672c\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3068\u3057\u3066\u306f\u3053\u308c\u3067OK\u3060\u308d\u3046\u3002 require \"dxruby\" Vector = Struct.new(:x, :y) Point = Struct.new(:x, :y) # \u7dda\u5206\u3068\u76f4\u7dda <0 \u4ea4\u5dee\u3059\u308b, =0 \u4e0a, >0 \u4ea4\u5dee\u3057\u306a\u3044 def intersect(p1, p2, p3, p4) return ((p1.x - p2.x) * (p3.y - p1.y) + (p1.y - p2.y) * (p1.x - p3.x)) * ((p1.x - p2.x) * (p4.y - p1.y) + (p1.y - p2.y) * (\u2026","blog_title":"mirichi\u306e\u65e5\u8a18","url":"https://mirichi.hatenadiary.org/entry/20090512/p4","author_name":"mirichi","categories":["Ruby","\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmirichi.hatenadiary.org%2Fentry%2F20090512%2Fp4\" title=\"\u3044\u308d\u3093\u306a\u3042\u305f\u308a\u5224\u5b9a\u3067\u304d\u305f - mirichi\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2009-05-12 00:00:03","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/mirichi/","version":"1.0","blog_url":"https://mirichi.hatenadiary.org/","type":"rich","title":"\u3044\u308d\u3093\u306a\u3042\u305f\u308a\u5224\u5b9a\u3067\u304d\u305f"}