Lines Matching refs:near
134 static tmat44 ortho(T left, T right, T bottom, T top, T near, T far);
136 static tmat44 frustum(T left, T right, T bottom, T top, T near, T far);
232 tmat44<T> tmat44<T>::ortho(T left, T right, T bottom, T top, T near, T far) {
236 m[2][2] = -2 / (far - near);
239 m[3][2] = -(far + near) / (far - near);
244 tmat44<T> tmat44<T>::frustum(T left, T right, T bottom, T top, T near, T far) {
248 T C = (far + near) / (far - near);
249 T D = (2 * far * near) / (far - near);
250 m[0][0] = (2 * near) / (right - left);
251 m[1][1] = (2 * near) / (top - bottom);