11 #ifndef __GT_Parametric__
12 #define __GT_Parametric__
23 : myU0(u0), myU1(
u1), myV0(
v0), myV1(
v1)
37 init(src.myU0, src.myU1, src.myV0, src.myV1);
46 myU1 = (myU0 + myU1) * .5;
54 myV1 = (myV0 + myV1) * .5;
59 {
return u >= myU0 && u < myU1; }
61 {
return v >= myV0 && v < myV1; }
64 {
return getClosest(u, myU0, myU1); }
66 {
return getClosest(v, myV0, myV1); }
99 fpreal myU0, myU1, myV0, myV1;
fpreal closestU(fpreal u) const
GT_Parametric & operator=(const GT_Parametric &src)
Class to keep track for a 2D parametric interval.
ImageBuf OIIO_API min(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
Class which writes ASCII or binary JSON streams.
void init(fpreal u0, fpreal u1, fpreal v0, fpreal v1)
GT_Parametric(fpreal u0=0, fpreal u1=1, fpreal v0=0, fpreal v1=1)
fpreal closestV(fpreal v) const
bool containsU(fpreal u) const
bool containsV(fpreal v) const
GT_Parametric(const GT_Parametric &src)
ImageBuf OIIO_API max(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
GLdouble GLdouble GLdouble top
GLubyte GLubyte GLubyte GLubyte w