33    public JMath<JVector2D>
 
  176                const double     precision = std::numeric_limits<double>::min())
 const 
  178      return (fabs(
getX() - vector.
getX()) <= precision &&
 
  179              fabs(
getY() - vector.
getY()) <= precision);
 
 
  213      return JVector2D(point).sub(*this).getLengthSquared();
 
 
 
  274    const double A = a.getX() - b.
getX();
 
  275    const double B = a.getY() - b.
getY();
 
  276    const double C = c.
getX() - b.
getX();
 
  277    const double D = c.
getY() - b.
getY();
 
 
Base class for data structures with artithmetic capabilities.
 
Data structure for vector in two dimensions.
 
double getDistance(const JVector2D &point) const
Get distance to point.
 
bool equals(const JVector2D &vector, const double precision=std::numeric_limits< double >::min()) const
Check equality.
 
JVector2D & negate()
Negate vector.
 
JVector2D & transform(const JMatrix2D &T)
Transform.
 
JVector2D(const double x, const double y)
Constructor.
 
double getY() const
Get y position.
 
double getDistanceSquared(const JVector2D &point) const
Get squared of distance to point.
 
JVector2D & mul(const double factor)
Scale vector.
 
double getX() const
Get x position.
 
JVector2D()
Default constructor.
 
double getPerpDot(const JVector2D &point) const
Get perpendicular dot product.
 
JVector2D & div(const double factor)
Scale vector.
 
JVector2D & sub(const JVector2D &vector)
Subtract vector.
 
double getLength() const
Get length.
 
double getLengthSquared() const
Get length squared.
 
double getDot(const JVector2D &point) const
Get dot product.
 
JVector2D & add(const JVector2D &vector)
Add vector.
 
Auxiliary classes and methods for 2D geometrical objects and operations.
 
bool getCCW(const T &a, const T &b, const T &c)
Check sequence of three points in X-Y plane.
 
std::pair< double, double > JRangeX
Type definition of range along x-axis.
 
std::pair< double, double > JRangeY
Type definition of range along y-axis.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Auxiliary base class for aritmetic operations of derived class types.