23 const double length =
norm();
37 else if (ratio <= -1.0)
52 os <<
"[" << point.
X() <<
"," << point.
Y() <<
"]";
Implements a 2-dimensional vector embedded in a 3D space, i.e.
double Y() const
Y position.
double normalize()
Make a normalized vector (return norm value)
double angle(const V2D &other) const
Angle between this and another vector.
double scalar_prod(const V2D &other) const
Compute the scalar product with another vector.
double X() const
X position.
double norm() const
Compute the norm.
MANTID_KERNEL_DLL std::ostream & operator<<(std::ostream &, CPUTimer &)
Convenience function to provide for easier debug printing.