Beispiel #1
0
// Matrix as an operator:
		// Transform point.
		constexpr point operator ()(point pt) const
		{
			return point(*this * pt.r());
		}
Beispiel #2
0
 int host_image2d<V>::point_to_index(const point& p) const
 {
   assert(!(pitch_ % sizeof(V)));
   return (p.r() * pitch_) / sizeof(V) + p.c();
 }