4 #ifndef __UTIL_RECT_H__
5 #define __UTIL_RECT_H__
21 return make_int4(rect.
x - d, rect.
y - d, rect.
z + d, rect.
w + d);
32 return (rect.
z > rect.
x) && (rect.
w > rect.
y);
38 int w = rect.
z - rect.
x;
39 return (
y - rect.
y) *
w + (
x - rect.
x);
49 int w = rect.
z - rect.
x;
50 *
x = (idx %
w) + rect.
x;
51 *
y = (idx /
w) + rect.
y;
57 return (rect.
z - rect.
x) * (rect.
w - rect.
y);
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
#define ccl_device_inline
#define CCL_NAMESPACE_END
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
ccl_device_inline bool rect_is_valid(int4 rect)
ccl_device_inline bool local_index_to_coord(int4 rect, int idx, ccl_private int *x, ccl_private int *y)
CCL_NAMESPACE_BEGIN ccl_device_inline int4 rect_from_shape(int x0, int y0, int w, int h)
ccl_device_inline int4 rect_clip(int4 a, int4 b)
ccl_device_inline int coord_to_local_index(int4 rect, int x, int y)
ccl_device_inline int4 rect_expand(int4 rect, int d)
ccl_device_inline int rect_size(int4 rect)