public void Set(QefData rhs) { this.Set(rhs.ata_00, rhs.ata_01, rhs.ata_02, rhs.ata_11, rhs.ata_12, rhs.ata_22, rhs.atb_x, rhs.atb_y, rhs.atb_z, rhs.btb, rhs.massPoint_x, rhs.massPoint_y, rhs.massPoint_z, rhs.numPoints); }
// ------------------------------------------------------------------------------- public QefSolver() { data = new QefData(); ata = new SMat3(); atb = new Vector3(); massPoint = new Vector3(); x = new Vector3(); hasSolution = false; }
// ------------------------------------------------------------------------------- private QefSolver(QefSolver rhs) { data = rhs.data; ata = rhs.ata; atb = rhs.atb; massPoint = rhs.massPoint; x = rhs.x; hasSolution = rhs.hasSolution; }
// ------------------------------------------------------------------------------- public void Add(QefData rhs) { this.ata_00 += rhs.ata_00; this.ata_01 += rhs.ata_01; this.ata_02 += rhs.ata_02; this.ata_11 += rhs.ata_11; this.ata_12 += rhs.ata_12; this.ata_22 += rhs.ata_22; this.atb_x += rhs.atb_x; this.atb_y += rhs.atb_y; this.atb_z += rhs.atb_z; this.btb += rhs.btb; this.massPoint_x += rhs.massPoint_x; this.massPoint_y += rhs.massPoint_y; this.massPoint_z += rhs.massPoint_z; this.numPoints += rhs.numPoints; }
// ------------------------------------------------------------------------------- public QefData(QefData rhs) { this.Set(rhs); }
// ------------------------------------------------------------------------------- public void Add(QefData rhs) { this.hasSolution = false; this.data.Add(rhs); }