77 setXYZ(u[0],u[1],u[2]);
84 setXYZ(u[0],u[1],u[2]);
127 return (
Vector3(r*u[0], r*u[1], r*u[2]) );
135 return sqrt( _xyz[0]*_xyz[0] + _xyz[1]*_xyz[1] + _xyz[2]*_xyz[2] );
142 return _xyz[0]*_xyz[0] + _xyz[1]*_xyz[1] + _xyz[2]*_xyz[2];
149 return std::max(std::max(fabs(_xyz[0]),fabs(_xyz[1])),fabs(_xyz[2])) ;
157 out << u[0] <<
" " << u[1] <<
" " << u[2];
163 return Vector3(std::min(v1[0],v2[0]),std::min(v1[1],v2[1]),std::min(v1[2],v2[2])) ;
168 return Vector3(std::max(v1[0],v2[0]),std::max(v1[1],v2[1]),std::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.