Minor fix to theta output frm legpts().
Merge remote-tracking branch 'upstream/development' into feature-diffmat-rect
Merge remote-tracking branch 'upstream/feature-diffmat-rect' into feature-diffmat-rect
Review comments from NH.