76 setXYZ(u[0],u[1],u[2]);
83 setXYZ(u[0],u[1],u[2]);
126 return (
Vector3(r*u[0], r*u[1], r*u[2]) );
134 return sqrt( _xyz[0]*_xyz[0] + _xyz[1]*_xyz[1] + _xyz[2]*_xyz[2] );
141 return _xyz[0]*_xyz[0] + _xyz[1]*_xyz[1] + _xyz[2]*_xyz[2];
148 return max(max(fabs(_xyz[0]),fabs(_xyz[1])),fabs(_xyz[2])) ;
156 out << u[0] <<
" " << u[1] <<
" " << u[2];
162 return Vector3(min(v1[0],v2[0]),min(v1[1],v2[1]),min(v1[2],v2[2])) ;
167 return Vector3(max(v1[0],v2[0]),max(v1[1],v2[1]),max(v1[2],v2[2])) ;
double squareNorm() const
Square norm (self dot product)
Vector3 & operator-=(const Vector3 &v)
static Vector3 maxi(const Vector3 &, const Vector3 &)
ostream & operator<<(ostream &o, const Quaternion &Q)
Vector2 operator*(double r, const Vector2 &u)
Left multiplication by a real value.
static Vector3 mini(const Vector3 &, const Vector3 &)
double infNorm() const
Infinite norm.
Vector3 & operator=(const Vector3 &u)
~Vector3()
Default destructor.
Vector3 & operator+=(const Vector3 &v)
double norm() const
Norm.