<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>derwind</author_name>
  <author_url>https://blog.hatena.ne.jp/derwind/</author_url>
  <blog_title>らんだむな記憶</blog_title>
  <blog_url>https://randommemory.hatenablog.com/</blog_url>
  <categories>
    <anon>graphics</anon>
    <anon>Ruby</anon>
  </categories>
  <description>rubyでBézierの計算をしようと思って、まずは雰囲気だけ書いた。(主に演算子の優先順位について。いちいち調べたくないから動かして観察する！) 演算子式 (Ruby 1.9.3)を見られるのは優秀なやつだけ！排他的論理和(XOR)のために ^ が使われているから、冪乗の計算にハットを使えないのが不便だゎ～。 #! /usr/bin/ruby -Ku class Point attr_reader :x, :y def initialize(x, y) @x = x; @y = y end end class Bezier def initialize(p0, p1, p2, p3) @p0…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2015%2F07%2F19%2F151457&quot; title=&quot;rubyとBézierと - らんだむな記憶&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-07-19 15:14:57</published>
  <title>rubyとBézierと</title>
  <type>rich</type>
  <url>https://randommemory.hatenablog.com/entry/2015/07/19/151457</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
