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