Bug fix in transformation of Cylinder vector to cartesian one
This commit is contained in:
@@ -132,7 +132,7 @@ void CylinderCoordinate::add(const Coordinate& coordinate) {
|
|||||||
const CartesianCoordinate c_cart(new_cart_position);
|
const CartesianCoordinate c_cart(new_cart_position);
|
||||||
const CylinderCoordinate c_cyl(c_cart);
|
const CylinderCoordinate c_cyl(c_cart);
|
||||||
cylinder_position = c_cyl.cylinderEntries();
|
cylinder_position = c_cyl.cylinderEntries();
|
||||||
limitPhi();
|
// limitPhi();
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
@@ -164,8 +164,8 @@ blitz::TinyVector<double, 3> CylinderVector::cartesianEntries(
|
|||||||
cosphi * cylinder_vector(0) -
|
cosphi * cylinder_vector(0) -
|
||||||
sinphi * cylinder_vector(1);
|
sinphi * cylinder_vector(1);
|
||||||
const double A_y =
|
const double A_y =
|
||||||
cosphi * cylinder_vector(0) +
|
sinphi * cylinder_vector(0) +
|
||||||
sinphi * cylinder_vector(1);
|
cosphi * cylinder_vector(1);
|
||||||
const double A_z = cylinder_vector(2);
|
const double A_z = cylinder_vector(2);
|
||||||
return blitz::TinyVector<double, 3>(A_x, A_y, A_z);
|
return blitz::TinyVector<double, 3>(A_x, A_y, A_z);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user