16 namespace JGEOMETRY2D {}
 
   17 namespace JPP { 
using namespace JGEOMETRY2D; }
 
   19 namespace JGEOMETRY2D {
 
   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();
 
  275     const double B = a.
getY() - b.
getY();
 
  279     return (A*D - B*C) <= 0.0;
 
Data structure for vector in two dimensions. 
 
void transform(double &__x, double &__y) const 
Transform. 
 
double getLengthSquared() const 
Get length squared. 
 
do echo Generating $dir eval D
 
JVector2D(const double x, const double y)
Constructor. 
 
Auxiliary base class for aritmetic operations of derived class types. 
 
double getDot(const JVector2D &point) const 
Get dot product. 
 
JVector2D & mul(const double factor)
Scale vector. 
 
JVector2D()
Default constructor. 
 
double getDistanceSquared(const JVector2D &point) const 
Get squared of distance to point. 
 
JVector2D & transform(const JMatrix2D &T)
Transform. 
 
double getDistance(const JVector2D &point) const 
Get distance to point. 
 
std::pair< double, double > JRangeX
Type definition of range along x-axis. 
 
bool equals(const JVector2D &vector, const double precision=std::numeric_limits< double >::min()) const 
Check equality. 
 
std::pair< double, double > JRangeY
Type definition of range along y-axis. 
 
bool getCCW(const T &a, const T &b, const T &c)
Check sequence of three points in X-Y plane. 
 
double getY() const 
Get y position. 
 
JVector2D & sub(const JVector2D &vector)
Subtract vector. 
 
static const double C
Physics constants. 
 
JVector2D & negate()
Negate vector. 
 
double getX() const 
Get x position. 
 
do set_variable OUTPUT_DIRECTORY $WORKDIR T
 
JVector2D & div(const double factor)
Scale vector. 
 
JVector2D & add(const JVector2D &vector)
Add vector. 
 
double getPerpDot(const JVector2D &point) const 
Get perpendicular dot product. 
 
Base class for data structures with artithmetic capabilities. 
 
double getLength() const 
Get length. 
 
source $JPP_DIR setenv csh $JPP_DIR eval JShellParser o a A