CenterRectOnPoint
>Psychtoolbox>PsychRects
newRect = CenterRectOnPoint(rect,x,y)
CenterRectOnPoint offsets the rect to center it around an x and y position.
The center of the rect is reported by RectCenter.
See also PsychRects, RectCenter
Path Retrieve current version from GitHub | View changelog
Psychtoolbox/PsychRects/CenterRectOnPoint.m