Public Member Functions | |
VArray (const ChannelSetInit c) | |
VArray (const ChannelSet &c) | |
VArray (Channel c) | |
VArray (const VArray &b) | |
float & | operator[] (Channel z) |
const float & | operator[] (Channel z) const |
float * | array () |
VArray & | operator= (const VArray &v) |
Vector4 & | P () const |
float | x () const |
float | y () const |
float | z () const |
float | w () const |
Vector3 & | PL () const |
Vector3 & | PW () const |
Vector3 & | MB () const |
Vector4 & | UV () const |
Vector3 & | N () const |
Vector4 & | Cf () const |
float | r () const |
float | g () const |
float | b () const |
float | a () const |
Vector3 & | VEL () const |
void | lerp (const VArray &b, float t) |
void | offset (const VArray &b, const VArray &delta, float t) |
void | offset (const VArray &b, const VArray &dx, float x, const VArray &dy, float y) |
void | midpoint (const VArray &a, const VArray &b) |
void | w_normalize () |
Divide all the channels by w, and put 1/w into w. | |
Public Attributes | |
ChannelSet | channels |
float | chan [VARRAY_CHANS] |
void DD::Image::VArray::lerp | ( | const VArray & | b, | |
float | t | |||
) | [inline] |
Sets it to b+delta*t
References chan.
void DD::Image::VArray::offset | ( | const VArray & | b, | |
const VArray & | dx, | |||
float | x, | |||
const VArray & | dy, | |||
float | y | |||
) | [inline] |
Sets it to b+dx*x+dy*y
References chan.
Sets it to the midpoint between a and b ((a+b)/2).
References chan.
void VArray::w_normalize | ( | ) |
Divide all the channels by w, and put 1/w into w.
Divide all the channels by w, and put 1/w into w. The resulting values can then be linearly interpolated in screen space. Don't forget to divide by w to get the original values back, unless the divided value is useful (which is only true for xyz).
References DD::Image::Vector4::w.
Referenced by DD::Image::rPoint::add_to_render().
©2009 The Foundry Visionmongers, Ltd. All Rights Reserved. |