test_class.file: common-tools/clas-physics/src/test/java/org/jlab/clas/physics/Vector3Test.java
test_class.identifier: Vector3Test
test_case.body: @Test
  	public void testCompare() {
  		Vector3 v1 = new Vector3(1, 2, 3);
  		Vector3 v2 = new Vector3(1, 2, 3);
  		assertEquals(v1.compare(v2), 0.0, 1e-6);
  		assertEquals(v1.compareWeighted(v2), 0.0, 1e-6);
  	}
test_case.class_method_signature: Vector3Test.testCompare()
test_case.full_signature: @Test public void testCompare()
test_case.identifier: testCompare
test_case.invocations: assertEquals compare assertEquals compareWeighted
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCompare()
focal_class.declarator: fX
focal_class.original_string: double fX;
focal_class.type: double
focal_class.var_name: fX
focal_class.declarator: fY
focal_class.original_string: double fY;
focal_class.type: double
focal_class.var_name: fY
focal_class.declarator: fZ
focal_class.original_string: double fZ;
focal_class.type: double
focal_class.var_name: fZ
focal_class.file: common-tools/clas-physics/src/main/java/org/jlab/clas/physics/Vector3.java
focal_class.identifier: Vector3
focal_class.class_method_signature: Vector3.Vector3(Vector3 v)
focal_class.full_signature: public  Vector3(Vector3 v)
focal_class.identifier: Vector3
focal_class.modifiers: public
focal_class.parameters: (Vector3 v)
focal_class.signature:  Vector3(Vector3 v)
focal_class.class_method_signature: Vector3.Vector3()
focal_class.full_signature: public  Vector3()
focal_class.identifier: Vector3
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  Vector3()
focal_class.class_method_signature: Vector3.Vector3(double x, double y, double z)
focal_class.full_signature: public  Vector3(double x, double y, double z)
focal_class.identifier: Vector3
focal_class.modifiers: public
focal_class.parameters: (double x, double y, double z)
focal_class.signature:  Vector3(double x, double y, double z)
focal_class.class_method_signature: Vector3.x()
focal_class.full_signature: public double x()
focal_class.identifier: x
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double x()
focal_class.class_method_signature: Vector3.y()
focal_class.full_signature: public double y()
focal_class.identifier: y
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double y()
focal_class.class_method_signature: Vector3.z()
focal_class.full_signature: public double z()
focal_class.identifier: z
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double z()
focal_class.class_method_signature: Vector3.setXYZ(double x, double y, double z)
focal_class.full_signature: public void setXYZ(double x, double y, double z)
focal_class.identifier: setXYZ
focal_class.modifiers: public
focal_class.parameters: (double x, double y, double z)
focal_class.return: void
focal_class.signature: void setXYZ(double x, double y, double z)
focal_class.class_method_signature: Vector3.rotateX(double angle)
focal_class.full_signature: public void rotateX(double angle)
focal_class.identifier: rotateX
focal_class.modifiers: public
focal_class.parameters: (double angle)
focal_class.return: void
focal_class.signature: void rotateX(double angle)
focal_class.class_method_signature: Vector3.rotateY(double angle)
focal_class.full_signature: public void rotateY(double angle)
focal_class.identifier: rotateY
focal_class.modifiers: public
focal_class.parameters: (double angle)
focal_class.return: void
focal_class.signature: void rotateY(double angle)
focal_class.class_method_signature: Vector3.rotateZ(double angle)
focal_class.full_signature: public void rotateZ(double angle)
focal_class.identifier: rotateZ
focal_class.modifiers: public
focal_class.parameters: (double angle)
focal_class.return: void
focal_class.signature: void rotateZ(double angle)
focal_class.class_method_signature: Vector3.setMagThetaPhi(double mag, double theta , double phi)
focal_class.full_signature: public void setMagThetaPhi(double mag, double theta , double phi)
focal_class.identifier: setMagThetaPhi
focal_class.modifiers: public
focal_class.parameters: (double mag, double theta , double phi)
focal_class.return: void
focal_class.signature: void setMagThetaPhi(double mag, double theta , double phi)
focal_class.class_method_signature: Vector3.setMag(double mag)
focal_class.full_signature: public void setMag(double mag)
focal_class.identifier: setMag
focal_class.modifiers: public
focal_class.parameters: (double mag)
focal_class.return: void
focal_class.signature: void setMag(double mag)
focal_class.class_method_signature: Vector3.mag2()
focal_class.full_signature: public double mag2()
focal_class.identifier: mag2
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double mag2()
focal_class.class_method_signature: Vector3.mag()
focal_class.full_signature: public double mag()
focal_class.identifier: mag
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double mag()
focal_class.class_method_signature: Vector3.rho()
focal_class.full_signature: public double rho()
focal_class.identifier: rho
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double rho()
focal_class.class_method_signature: Vector3.theta()
focal_class.full_signature: public double theta()
focal_class.identifier: theta
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double theta()
focal_class.class_method_signature: Vector3.phi()
focal_class.full_signature: public double phi()
focal_class.identifier: phi
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double phi()
focal_class.class_method_signature: Vector3.add(Vector3 vector)
focal_class.full_signature: public void add(Vector3 vector)
focal_class.identifier: add
focal_class.modifiers: public
focal_class.parameters: (Vector3 vector)
focal_class.return: void
focal_class.signature: void add(Vector3 vector)
focal_class.class_method_signature: Vector3.negative()
focal_class.full_signature: public void negative()
focal_class.identifier: negative
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void negative()
focal_class.class_method_signature: Vector3.sub(Vector3 vector)
focal_class.full_signature: public void sub(Vector3 vector)
focal_class.identifier: sub
focal_class.modifiers: public
focal_class.parameters: (Vector3 vector)
focal_class.return: void
focal_class.signature: void sub(Vector3 vector)
focal_class.class_method_signature: Vector3.compare(Vector3 vect)
focal_class.full_signature: public double compare(Vector3 vect)
focal_class.identifier: compare
focal_class.modifiers: public
focal_class.parameters: (Vector3 vect)
focal_class.return: double
focal_class.signature: double compare(Vector3 vect)
focal_class.class_method_signature: Vector3.dot(Vector3 vect)
focal_class.full_signature: public double dot(Vector3 vect)
focal_class.identifier: dot
focal_class.modifiers: public
focal_class.parameters: (Vector3 vect)
focal_class.return: double
focal_class.signature: double dot(Vector3 vect)
focal_class.class_method_signature: Vector3.cross(Vector3 vect)
focal_class.full_signature: public Vector3 cross(Vector3 vect)
focal_class.identifier: cross
focal_class.modifiers: public
focal_class.parameters: (Vector3 vect)
focal_class.return: Vector3
focal_class.signature: Vector3 cross(Vector3 vect)
focal_class.class_method_signature: Vector3.theta(Vector3 vect)
focal_class.full_signature: public double theta(Vector3 vect)
focal_class.identifier: theta
focal_class.modifiers: public
focal_class.parameters: (Vector3 vect)
focal_class.return: double
focal_class.signature: double theta(Vector3 vect)
focal_class.class_method_signature: Vector3.copy(Vector3 vect)
focal_class.full_signature: public void copy(Vector3 vect)
focal_class.identifier: copy
focal_class.modifiers: public
focal_class.parameters: (Vector3 vect)
focal_class.return: void
focal_class.signature: void copy(Vector3 vect)
focal_class.class_method_signature: Vector3.unit()
focal_class.full_signature: public void unit()
focal_class.identifier: unit
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void unit()
focal_class.class_method_signature: Vector3.compareWeighted(Vector3 vect)
focal_class.full_signature: public double compareWeighted(Vector3 vect)
focal_class.identifier: compareWeighted
focal_class.modifiers: public
focal_class.parameters: (Vector3 vect)
focal_class.return: double
focal_class.signature: double compareWeighted(Vector3 vect)
focal_class.class_method_signature: Vector3.getXYZString()
focal_class.full_signature: public String getXYZString()
focal_class.identifier: getXYZString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getXYZString()
focal_class.class_method_signature: Vector3.getMagThetaPhiString()
focal_class.full_signature: public String getMagThetaPhiString()
focal_class.identifier: getMagThetaPhiString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getMagThetaPhiString()
focal_class.class_method_signature: Vector3.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public double compare(Vector3 vect)
      {
          double quality = 0.0;
          quality += Math.abs(fX-vect.x())/Math.abs(fX);
          quality += Math.abs(fY-vect.y())/Math.abs(fY);
          quality += Math.abs(fZ-vect.z())/Math.abs(fZ);
          return quality;
      }
focal_method.class_method_signature: Vector3.compare(Vector3 vect)
focal_method.full_signature: public double compare(Vector3 vect)
focal_method.identifier: compare
focal_method.invocations: abs x abs abs y abs abs z abs
focal_method.modifiers: public
focal_method.parameters: (Vector3 vect)
focal_method.return: double
focal_method.signature: double compare(Vector3 vect)