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();
 
  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.
 
JVector2D & sub(const JVector2D &vector)
Subtract vector.
 
bool equals(const JVector2D &vector, const double precision=std::numeric_limits< double >::min()) const
Check equality.
 
JVector2D & add(const JVector2D &vector)
Add vector.
 
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.
 
double getX() const
Get x position.
 
JVector2D & div(const double factor)
Scale vector.
 
JVector2D()
Default constructor.
 
double getPerpDot(const JVector2D &point) const
Get perpendicular dot product.
 
JVector2D & mul(const double factor)
Scale vector.
 
JVector2D & negate()
Negate vector.
 
double getLength() const
Get length.
 
double getLengthSquared() const
Get length squared.
 
JVector2D & transform(const JMatrix2D &T)
Transform.
 
double getDot(const JVector2D &point) const
Get dot product.
 
void transform(double &__x, double &__y) const
Transform.
 
Auxiliary classes and methods for 2D geometrical objects and operations.
 
std::pair< double, double > JRangeX
Type definition of range along x-axis.
 
bool getCCW(const JVector2D &a, const JVector2D &b, const JVector2D &c)
Check sequence of three points.
 
std::pair< double, double > JRangeY
Type definition of range along y-axis.
 
static const double C
Physics constants.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Auxiliary base class for aritmetic operations of derived class types.