CenterRect
>Psychtoolbox>PsychRects
[rect,dh,dv] = CenterRect(rect,fixedRect)
Center the first rect in the second by adding an integer offset.
Also see PsychRects.
Path Retrieve current version from GitHub | View changelog
Psychtoolbox/PsychRects/CenterRect.m