17 namespace JGEOMETRY2D {}
 
   18 namespace JPP { 
using namespace JGEOMETRY2D; }
 
   20 namespace JGEOMETRY2D {
 
   89       return (
getCCW(this->
first,   segment.first, this->second)   != 
getCCW(this->
first,   segment.second, this->second) &&
 
   90               getCCW(segment.first, this->first,   segment.second) != 
getCCW(segment.first, this->second,   segment.second));
 
  103       JVector2D db(segment.second - segment.first);
 
  155         return first.getDistanceSquared(point);
 
  194       in >> segment.second;
 
  209       out << segment.first;
 
  210       out << segment.second;
 
Data structure for vector in two dimensions. 
double getLengthSquared() const 
Get length squared. 
std::pair< JPosition2D, JPosition2D > JSegment2D_t
Type definition of line segment in two dimensions. 
Line segment in two dimensions. 
double getLengthSquared() const 
Get length squared. 
Interface for binary output. 
double getDot(const JVector2D &point) const 
Get dot product. 
JVector2D & mul(const double factor)
Scale vector. 
double getDistanceSquared(const JVector2D &point) const 
Get squared of distance to point. 
JSegment2D(const JVector2D &A, const JVector2D &B)
Constructor. 
bool getCCW(const T &a, const T &b, const T &c)
Check sequence of three points in X-Y plane. 
JSegment2D()
Default constructor. 
double getPerpDot(const JFirst_t &first, const JSecond_t &second)
Get perpendicular dot product of objects. 
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
friend JWriter & operator<<(JWriter &out, const JSegment2D &segment)
Write segment to output. 
JVector2D & sub(const JVector2D &vector)
Subtract vector. 
double getLength() const 
Get length. 
Interface for binary input. 
JVector2D & div(const double factor)
Scale vector. 
double getDistance(const JVector2D &point) const 
Get distance to point. 
Exception for division by zero. 
friend JReader & operator>>(JReader &in, JSegment2D &segment)
Read segment from input. 
double getDot(const JSegment2D &segment) const 
Get dot product. 
bool intersects(const JSegment2D &segment) const 
Test whether two line segments intersect. 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
JVector2D getIntersection(const JSegment2D &segment) const 
Get intersection of two line segments. 
do echo Generating $dir eval D
source $JPP_DIR setenv csh $JPP_DIR eval JShellParser o a A