Lines Matching refs:Vec2
156 Line3<T> projectScreenToRay( const Vec2<T> & ) const;
157 Vec2<T> projectPointToScreen( const Vec3<T> & ) const;
169 Vec2<T> screenToLocal( const Vec2<T> & ) const;
170 Vec2<T> localToScreen( const Vec2<T> & ) const;
454 Vec2<T> bl = screenToLocal( Vec2<T>(l,b) );
455 Vec2<T> tr = screenToLocal( Vec2<T>(r,t) );
462 Vec2<T> Frustum<T>::screenToLocal(const Vec2<T> &s) const
464 return Vec2<T>( _left + (_right-_left) * (1.f+s.x) / 2.f,
469 Vec2<T> Frustum<T>::localToScreen(const Vec2<T> &p) const
486 return Vec2<T>( leftPlusRight / leftMinusRight,
491 Line3<T> Frustum<T>::projectScreenToRay(const Vec2<T> &p) const
493 Vec2<T> point = screenToLocal(p);
502 Vec2<T> Frustum<T>::projectPointToScreen(const Vec3<T> &point) const
505 return localToScreen( Vec2<T>( point.x, point.y ) );
507 return localToScreen( Vec2<T>( point.x * _nearPlane / -point.z,