|
| GenColor (const superclass &rhs) |
| GenColor copy constructor.
|
|
| GenColor (const T *rhs) |
| GenColor constructor from T array.
|
|
| GenColor (T r=0, T g=0, T b=0, T a=1) |
| GenColor constructor from 4 parameters.
|
|
GenColor & | operator= (const superclass &rhs) |
| assignment operator.
|
|
T | r () const |
| Gets the red component.
|
|
T | g () const |
| Gets the green component.
|
|
T | b () const |
| Gets the blue component.
|
|
T | a () const |
| Gets the alpha component (transparency).
|
|
void | set_r (T r) |
| Sets the red component.
|
|
void | set_g (T g) |
| Sets the green component.
|
|
void | set_b (T b) |
| Sets the blue component.
|
|
void | set_a (T a) |
| Sets the alpha component (transparency).
|
|
| vecng () |
| Default vector constructor.
|
|
| vecng (T x_in, T y_in, T z_in, T w_in) |
| Constructs a vector from coordinates.
|
|
template<class T2 > |
| vecng (const vecng< dim, T2 > &v) |
| Constructs a vector by copy.
|
|
template<class T2 > |
| vecng (const T2 *v) |
| Constructs a vector from an array.
|
|
| vecng (const std::initializer_list< T > &Vi) |
|
T | length2 () const |
| Gets the squared length of the vector.
|
|
T | length () const |
| Gets the length of the vector.
|
|
T | distance2 (const vector_type &v) const |
|
T | distance (const vector_type &v) const |
|
index_t | dimension () const |
| Gets the vector dimension.
|
|
vector_type & | operator+= (const vector_type &v) |
|
vector_type & | operator-= (const vector_type &v) |
|
template<class T2 > |
vector_type & | operator*= (T2 s) |
| Multiplies by a scalar in place.
|
|
template<class T2 > |
vector_type & | operator/= (T2 s) |
| Divides by a scalar in place.
|
|
vector_type | operator+ (const vector_type &v) const |
|
vector_type | operator- (const vector_type &v) const |
|
template<class T2 > |
vector_type | operator* (T2 s) const |
| Multiplies a vector by a scalar.
|
|
template<class T2 > |
vector_type | operator/ (T2 s) const |
| Divides a vector by a scalar.
|
|
vector_type | operator- () const |
| Negates a vector.
|
|
T * | data () |
| Gets modifiable vector data.
|
|
const T * | data () const |
| Gets non-modifiable vector data.
|
|
T & | operator[] (index_t i) |
| Gets a modifiable vector coordinate.
|
|
const T & | operator[] (index_t i) const |
| Gets a non-modifiable vector coordinate.
|
|