さけのさかなのブログ

同人ゲーム開発やってます。Unity使ったりする。

2016-03-26から1日間の記事一覧

Unity Matrix4x4で連立方程式を解く

// 四点を通る三次関数を得る static public void CalculateCubicFunctionBy4Points( float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) { var matrix = new Matrix4x4(); matrix[0, 0] = x1 * x1 * x1; matrix[0, 1] = x1 …