40 Tuple4(
const float v[4]) { setValue(v); }
41 Tuple4(
const double v[4]) { setValue(v); }
51 comp[
X] = v[
X]; comp[
Y] = v[
Y]; comp[
Z] = v[
Z]; comp[
W] = v[
W];
55 comp[
X] = v[
X]; comp[
Y] = v[
Y]; comp[
Z] = v[
Z]; comp[
W] = v[
W];
59 comp[
X] = x; comp[
Y] =
y; comp[
Z] = z; comp[
W] = w;
67 return t1[
X] == t2[
X] && t1[
Y] == t2[
Y] && t1[
Z] == t2[
Z] && t1[
W] == t2[
W];
71 return os << t[
X] <<
' ' << t[
Y] <<
' ' << t[
Z] <<
' ' << t[
W];
Tuple4(const double v[4])
void setValue(Scalar x, Scalar y, Scalar z, Scalar w)
bool operator==(const Tuple4 &t1, const Tuple4 &t2)
const Scalar & operator[](int i) const
Tuple4(Scalar x, Scalar y, Scalar z, Scalar w)
Scalar & operator[](int i)
ostream & operator<<(ostream &os, const Tuple4 &t)
void setValue(const float v[4])
void setValue(const double v[4])
const Scalar * getValue() const