protected virtual void Construct(ElementaryConstraint source) { m_nativeName = source.m_nativeName; m_enable = source.m_enable; m_rowData = new ElementaryConstraintRowData[source.NumRows]; for (int i = 0; i < source.NumRows; ++i) { m_rowData[i] = new ElementaryConstraintRowData(this, source.m_rowData[i]); } }
protected virtual void Construct(agx.ElementaryConstraint tmpEc) { m_nativeName = tmpEc.getName(); m_enable = tmpEc.getEnable(); m_rowData = new ElementaryConstraintRowData[tmpEc.getNumRows()]; for (uint i = 0; i < tmpEc.getNumRows(); ++i) { m_rowData[i] = new ElementaryConstraintRowData(this, Convert.ToInt32(i), tmpEc); } }
public void CopyFrom(ElementaryConstraintRowData source) { m_compliance = source.m_compliance; m_damping = source.m_damping; m_forceRange = new RangeReal(source.m_forceRange); }
/// <summary> /// Construct given elementary constraint and source instance. /// </summary> /// <param name="elementaryConstraint"></param> /// <param name="source"></param> public ElementaryConstraintRowData(ElementaryConstraint elementaryConstraint, ElementaryConstraintRowData source) { m_elementaryConstraint = elementaryConstraint; m_row = source.m_row; CopyFrom(source); }