function ps = findps(qs) ;
% This function returns relative coordinates to use when printing
% out a table of values at vertex points on SG. 
%
% support functions: none
%
% INPUT:
% qs - matrix of size [3 2] holding coordinates for three points to
% use as boundary points of a cell 
%
% OUTPUT:
% ps - Given a cell with boundary points given by qs, ps should in
% theory be good choices for where to print numbers in a
% table. Depending on the arrangement of the points in qs the
% formulas below may need to be altered.

ps(1,:) = (1/8)*(6*qs(1,:) + qs(2,:) + qs(3,:)) ;
ps(2,1) = (1/4)*(3*qs(2,1) + qs(3,1)) ;
ps(2,2) = (1/4)*(3*qs(2,2) + qs(1,2)) ;
ps(3,1) = (1/4)*(qs(2,1) + 3*qs(3,1)) ;
ps(3,2) = (1/4)*(3*qs(3,2) + qs(1,2)) ;