示例#1
0
        /// <summary>
        /// 逆行列を取得する。
        /// </summary>
        /// <returns></returns>
        Matrix33F GetInverted()
        {
            Matrix33F o = this;

            o.SetInverted();
            return(o);
        }
示例#2
0
        public static Matrix33F operator *(Matrix33F left, Matrix33F right)
        {
            Matrix33F result = new Matrix33F();

            for (int i = 0; i < 3; ++i)
            {
                for (int j = 0; j < 3; ++j)
                {
                    result.Values[i, j] = 0;
                    for (int k = 0; k < 3; ++k)
                    {
                        result.Values[i, j] += left.Values[i, k] * right.Values[k, j];
                    }
                }
            }

            return(result);
        }