Go to the documentation of this file.
  174                 const double     precision = std::numeric_limits<double>::min())
 const 
  176       return (fabs(
getX() - vector.
getX()) <= precision &&
 
  177               fabs(
getY() - vector.
getY()) <= precision);
 
  211       return JVector2D(point).sub(*this).getLengthSquared();
 
  272     const double A = a.
getX() - b.
getX();
 
  273     const double B = a.
getY() - b.
getY();
 
  275     const double D = c.
getY() - b.
getY();
 
  277     return (A*D - B*
C) <= 0.0;
 
  
JVector2D & transform(const JMatrix2D &T)
Transform.
 
JVector2D & mul(const double factor)
Scale vector.
 
bool getCCW(const JVector2D &a, const JVector2D &b, const JVector2D &c)
Check sequence of three points.
 
JVector2D & div(const double factor)
Scale vector.
 
JVector2D(const double x, const double y)
Constructor.
 
double getLengthSquared() const
Get length squared.
 
Auxiliary base class for aritmetic operations of derived class types.
 
Auxiliary classes and methods for 2D geometrical objects and operations.
 
JVector2D & add(const JVector2D &vector)
Add vector.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
double getDistanceSquared(const JVector2D &point) const
Get squared of distance to point.
 
bool equals(const JVector2D &vector, const double precision=std::numeric_limits< double >::min()) const
Check equality.
 
void transform(double &__x, double &__y) const
Transform.
 
JTOOLS::JRange< double > JRangeX
Type definition of range along x-axis.
 
JVector2D & negate()
Negate vector.
 
double getDistance(const JVector2D &point) const
Get distance to point.
 
JTOOLS::JRange< double > JRangeY
Type definition of range along y-axis.
 
JVector2D & sub(const JVector2D &vector)
Subtract vector.
 
JVector2D()
Default constructor.
 
double getX() const
Get x position.
 
double getLength() const
Get length.
 
double getY() const
Get y position.
 
double getPerpDot(const JVector2D &point) const
Get perpendicular dot product.
 
double getDot(const JVector2D &point) const
Get dot product.
 
Data structure for vector in two dimensions.