cpe::patch4 Class Reference
+ Collaboration diagram for cpe::patch4:

Public Member Functions

 patch4 ()
 Empty constructor. More...
 
 patch4 (const vec3 &x00, const vec3 &x01, const vec3 &x02, const vec3 &x03, const vec3 &x10, const vec3 &x11, const vec3 &x12, const vec3 &x13, const vec3 &x20, const vec3 &x21, const vec3 &x22, const vec3 &x23, const vec3 &x30, const vec3 &x31, const vec3 &x32, const vec3 &x33)
 Direct constructor. More...
 
const vec3operator() (unsigned int ku, unsigned int kv) const
 Get value. More...
 
vec3operator() (unsigned int ku, unsigned int kv)
 Get value. More...
 
matrix4 get_x () const
 Get x coordinate in matrix4 form. More...
 
matrix4 get_y () const
 Get y coordinate in matrix4 form. More...
 
matrix4 get_z () const
 Get z coordinate in matrix4 form. More...
 

Private Member Functions

void assert_size (unsigned int ku, unsigned int kv) const
 

Private Attributes

vec3 internal_data [16]
 internal data More...
 

Constructor & Destructor Documentation

cpe::patch4::patch4 ( )

Empty constructor.

References internal_data.

cpe::patch4::patch4 ( const vec3 x00,
const vec3 x01,
const vec3 x02,
const vec3 x03,
const vec3 x10,
const vec3 x11,
const vec3 x12,
const vec3 x13,
const vec3 x20,
const vec3 x21,
const vec3 x22,
const vec3 x23,
const vec3 x30,
const vec3 x31,
const vec3 x32,
const vec3 x33 
)

Direct constructor.

References internal_data.

Member Function Documentation

void cpe::patch4::assert_size ( unsigned int  ku,
unsigned int  kv 
) const
private

Ensure (ku,kv) is within [[0,3]]

Referenced by operator()().

matrix4 cpe::patch4::get_x ( ) const

Get x coordinate in matrix4 form.

References internal_data.

matrix4 cpe::patch4::get_y ( ) const

Get y coordinate in matrix4 form.

References internal_data.

matrix4 cpe::patch4::get_z ( ) const

Get z coordinate in matrix4 form.

References internal_data.

const vec3 & cpe::patch4::operator() ( unsigned int  ku,
unsigned int  kv 
) const

Get value.

References assert_size(), and internal_data.

+ Here is the call graph for this function:

vec3 & cpe::patch4::operator() ( unsigned int  ku,
unsigned int  kv 
)

Get value.

References assert_size(), and internal_data.

+ Here is the call graph for this function:

Member Data Documentation

vec3 cpe::patch4::internal_data[16]
private

internal data

Referenced by get_x(), get_y(), get_z(), operator()(), and patch4().


The documentation for this class was generated from the following files: