private void UpdateSegmentPosition(JointType j1, JointType j2, Segment seg) { var bone = new Bone(j1, j2); if (this.segments.ContainsKey(bone)) { BoneData data = this.segments[bone]; data.UpdateSegment(seg); this.segments[bone] = data; } else { this.segments.Add(bone, new BoneData(seg)); } }
private void UpdateSegmentPosition(JointType j1, JointType j2, Segment seg) { var bone = new Bone(j1, j2); if (this.segments.ContainsKey(bone)) { BoneData data = this.segments[bone]; data.UpdateSegment(seg); BoneData old = this.segments[bone]; if (data.Equals(old)) { Console.WriteLine("sama plis"); } this.segments[bone] = data; } else { this.segments.Add(bone, new BoneData(seg)); } }