回転するときの超ありがちなボケをかまして頭悪くなった事を実感した
x = x * Math.Cos(a) - y * Math.Sin(a);y = x * Math.Sin(a) + y * Math.Cos(a);
みたいな
回転するときの超ありがちなボケをかまして頭悪くなった事を実感した
x = x * Math.Cos(a) - y * Math.Sin(a);y = x * Math.Sin(a) + y * Math.Cos(a);
みたいな
やーこれでも美しく書く方法ねぇかな・・・初期のx設定するとこパターン色々あって1回でやりたくないしこんなのの為に x1,x2とか作りたくないし
senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.