Ejemplo n.º 1
0
        public override void IntToDescriptor(int off_v, ChStateDelta v, ChVectorDynamic <double> R, int off_L, ChVectorDynamic <double> L, ChVectorDynamic <double> Qc)
        {
            constraint.Set_l_i(L.matrix[off_L]);
            constraint.Set_b_i(Qc.matrix[off_L]);

            this.variable.Get_qb().matrix[0, 0] = v.matrix[off_v];
            this.variable.Get_fb().matrix[0, 0] = R.matrix[off_v];
        }
Ejemplo n.º 2
0
        public override void IntToDescriptor(int off_v,
                                             ChStateDelta v,
                                             ChVectorDynamic <double> R,
                                             int off_L,
                                             ChVectorDynamic <double> L,
                                             ChVectorDynamic <double> Qc)
        {
            constraint.Set_l_i(L.matrix[off_L]);

            constraint.Set_b_i(Qc.matrix[off_L]);
        }