15 #include "cxResourceExport.h" 31 cxResource_EXPORT
bool similar(
double a,
double b,
double tol = 1.0E-6);
45 cxResource_EXPORT Vector3D
multiply_elems(
const Vector3D& a,
const Vector3D& b);
46 cxResource_EXPORT Vector3D
divide_elems(
const Vector3D& a,
const Vector3D& b);
47 cxResource_EXPORT Vector3D
cross(
const Vector3D& a,
const Vector3D& b);
48 cxResource_EXPORT
double dot(
const Vector3D& a,
const Vector3D& b);
49 cxResource_EXPORT
bool similar(
const Vector3D& a,
const Vector3D& b,
double tol = 1.0E-6);
50 cxResource_EXPORT Vector3D
unitVector(
double thetaXY,
double thetaZ = 0.0);
51 cxResource_EXPORT
double getThetaXY(Vector3D v);
52 cxResource_EXPORT
double getThetaZ(Vector3D v);
54 cxResource_EXPORT Vector3D
round(
const Vector3D& a);
55 cxResource_EXPORT Vector3D
ceil(
const Vector3D& a);
57 cxResource_EXPORT
bool similar(
const Eigen::Array3i& a,
const Eigen::Array3i& b);
59 cxResource_EXPORT QString
prettyFormat(Vector3D val,
int decimals=1,
int fieldWidth=3);
61 cxResource_EXPORT Eigen::Vector2d
fromString(
const QString& text);
Vector3D ceil(const Vector3D &a)
Vector3D divide_elems(const Vector3D &a, const Vector3D &b)
perform element-wise division of a and b.
Eigen::Vector2d fromString(const QString &text)
Vector3D unitVector(double thetaXY, double thetaZ)
compute a unit vector given angles xy in the xy plane and z meaning the elevation from the xy plane...
QString prettyFormat(Vector3D val, int decimals, int fieldWidth)
boost::shared_ptr< Vector3D > Vector3DPtr
double getThetaXY(Vector3D k)
get thetaXY, meaning the angle of v projected onto the xy plane
Vector3D cross(const Vector3D &a, const Vector3D &b)
compute cross product of a and b.
double getThetaZ(Vector3D k)
get thetaZ, z meaning the elevation from the xy plane
double dot(const Vector3D &a, const Vector3D &b)
compute inner product (or dot product) of a and b.
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
Vector3D multiply_elems(const Vector3D &a, const Vector3D &b)
perform element-wise multiplication of a and b.
bool similar(const CameraInfo &lhs, const CameraInfo &rhs, double tol)
Vector3D round(const Vector3D &a)
Namespace for all CustusX production code.