Mantid
|
Class for 3D vectors. More...
#include <Kernel\V3D.h>
Public Member Functions | |
V3D | absoluteValue () const |
Absolute value. More... | |
double | angle (const V3D &) const |
Angle between this and another vector. More... | |
void | azimuth_polar_SNS (const double R, const double azimuth, const double polar) noexcept |
Sets the vector position based on azimuth and polar angle, in RADIANS, in the SNS instrument coordinate system, where +Z = beam direction, +Y = vertical. More... | |
bool | coLinear (const V3D &, const V3D &) const noexcept |
Determines if this,B,C are colinear. More... | |
double | cosAngle (const V3D &) const |
cos(Angle) between this and another vector More... | |
constexpr V3D | cross_prod (const V3D &v) const noexcept |
Cross product (this * argument) More... | |
V3D | directionAngles (bool inDegrees=true) const |
Direction angles. More... | |
double | distance (const V3D &v) const noexcept |
Calculates the distance between two vectors. More... | |
void | fromString (const std::string &str) |
Sets the vector using a string. More... | |
void | getSpherical (double &R, double &theta, double &phi) const noexcept |
Return the vector's position in spherical coordinates. More... | |
double | hklError () const |
Calculates the error in hkl. More... | |
void | loadNexus (::NeXus::File *file, const std::string &name) |
Load the object from an open NeXus file. More... | |
int | masterDir (const double Tol=1e-3) const noexcept |
Determine if there is a master direction. More... | |
int | maxCoeff () |
Maximum absolute integer value. More... | |
double | norm () const noexcept |
constexpr double | norm2 () const noexcept |
Vector length squared. More... | |
double | normalize () |
Make a normalized vector (return norm value) More... | |
bool | nullVector (const double tolerance=1e-3) const noexcept |
Determine if the point is null. More... | |
operator std::vector< double > () const | |
bool | operator!= (const V3D &other) const noexcept |
Not equals operator with tolerance factor. More... | |
void | operator() (const double xx, const double yy, const double zz) noexcept |
Sets the vector position from a triplet of doubles x,y,z. More... | |
constexpr V3D | operator* (const double D) const noexcept |
Scalar product. More... | |
constexpr V3D | operator* (const V3D &v) const noexcept |
Inner product. More... | |
V3D & | operator*= (const double D) noexcept |
Scalar product. More... | |
V3D & | operator*= (const V3D &v) noexcept |
Self-Inner product. More... | |
constexpr V3D | operator+ (const V3D &v) const noexcept |
Addtion operator. More... | |
V3D & | operator+= (const V3D &v) noexcept |
Self-Addition operator. More... | |
constexpr V3D | operator- () const noexcept |
Negation. More... | |
constexpr V3D | operator- (const V3D &v) const noexcept |
Subtraction operator. More... | |
V3D & | operator-= (const V3D &v) noexcept |
Self-Subtraction operator. More... | |
constexpr V3D | operator/ (const double D) const noexcept |
Scalar divsion. More... | |
constexpr V3D | operator/ (const V3D &v) const noexcept |
Inner division. More... | |
V3D & | operator/= (const double D) noexcept |
Scalar division. More... | |
V3D & | operator/= (const V3D &v) noexcept |
Self-Inner division. More... | |
constexpr bool | operator< (const V3D &V) const noexcept |
compare More... | |
bool | operator== (const V3D &v) const noexcept |
Equals operator with tolerance factor. More... | |
constexpr bool | operator> (const V3D &rhs) const noexcept |
Comparison operator greater than. More... | |
constexpr double | operator[] (const size_t index) const noexcept |
Returns the axis value based in the index provided. More... | |
double & | operator[] (const size_t index) noexcept |
Returns the axis value based in the index provided. More... | |
void | printSelf (std::ostream &) const |
Prints a text representation of itself in format "[x,y,z]". More... | |
void | read (std::istream &) |
Read data from a stream. More... | |
void | readPrinted (std::istream &) |
Read data from a stream in the format returned by printSelf ("[x,y,z]"). More... | |
int | reBase (const V3D &, const V3D &, const V3D &) noexcept |
rebase to new basis vector More... | |
void | rotate (const Matrix< double > &) noexcept |
Rotate a point by a matrix. More... | |
void | round () noexcept |
Round each component to the nearest integer. More... | |
void | saveNexus (::NeXus::File *file, const std::string &name) const |
Save the object to an open NeXus file. More... | |
constexpr double | scalar_prod (const V3D &v) const noexcept |
Calculates the cross product. More... | |
void | setX (const double xx) noexcept |
Set is x position. More... | |
void | setY (const double yy) noexcept |
Set is y position. More... | |
void | setZ (const double zz) noexcept |
Set is z position. More... | |
void | spherical (const double R, const double theta, const double phi) noexcept |
Sets the vector position based on spherical coordinates. More... | |
void | spherical_rad (const double R, const double polar, const double azimuth) noexcept |
Sets the vector position based on spherical coordinates, in radians. More... | |
double | toMillerIndexes (double eps=1.e-3) |
transform vector into form, used to describe directions in crystallogaphical coodinate system More... | |
std::string | toString () const |
bool | unitVector (const double tolerance=Kernel::Tolerance) const noexcept |
constexpr | V3D () noexcept |
constexpr | V3D (double xx, double yy, double zz) noexcept |
double | volume () const noexcept |
Calculate the volume of a cube X*Y*Z. More... | |
void | write (std::ostream &) const |
Write out the point values. More... | |
constexpr double | X () const noexcept |
Get x. More... | |
constexpr double | Y () const noexcept |
Get y. More... | |
constexpr double | Z () const noexcept |
Get z. More... | |
double | zenith (const V3D &) const noexcept |
Zenith (theta) angle between this and another vector. More... | |
Static Public Member Functions | |
static bool | compareMagnitude (const Kernel::V3D &v1, const Kernel::V3D &v2) |
Convenience method for sorting list of V3D objects based on magnitude. More... | |
static std::vector< V3D > | makeVectorsOrthogonal (const std::vector< V3D > &vectors) |
Take a list of 2 vectors and makes a 3D orthogonal system out of them The first vector i0 is taken as such. More... | |
Private Attributes | |
std::array< double, 3 > | m_pt |
|
inlineconstexprnoexcept |
Definition at line 36 of file V3D.h.
Referenced by absoluteValue(), and directionAngles().
|
inlineconstexprnoexcept |
V3D Mantid::Kernel::V3D::absoluteValue | ( | ) | const |
double Mantid::Kernel::V3D::angle | ( | const V3D & | v | ) | const |
Angle between this and another vector.
Calculates the angle between this and another vector.
v | :: The other vector |
Definition at line 165 of file V3D.cpp.
References cosAngle().
Referenced by Mantid::MDAlgorithms::calculate2Theta(), Mantid::CurveFitting::Algorithms::VesuvioCalculateMS::calculateCounts(), Mantid::DataHandling::LoadILLDiffraction::calculateRelativeRotations(), Mantid::Geometry::IndexingUtils::DiscardDuplicates(), Mantid::DataHandling::LoadIsawDetCal::doRotation(), Mantid::Algorithms::HRPDSlabCanAbsorption::exec(), Mantid::Crystal::LoadIsawSpectrum::exec(), export_V3D(), Mantid::Geometry::IndexingUtils::FormUB_From_abc_Vectors(), Mantid::CurveFitting::Algorithms::VesuvioCalculateMS::generateDetectorPos(), Mantid::MDAlgorithms::GetSpiceDataRawCountsFromMD::getDetCounts(), Mantid::Geometry::GetDiffFrom90Sum(), Mantid::DataObjects::Peak::getDSpacing(), Mantid::Geometry::ScalarUtils::GetRelatedUBs(), Mantid::DataObjects::Peak::getScattering(), Mantid::Geometry::Detector::getSignedTwoTheta(), Mantid::Geometry::DetectorGroup::getSignedTwoTheta(), Mantid::Geometry::Detector::getTwoTheta(), Mantid::Geometry::DetectorGroup::getTwoTheta(), Mantid::Geometry::NiggliCell::HasNiggliAngles(), Mantid::Geometry::InstrumentDefinitionParser::makeXYplaneFaceComponent(), Mantid::Kernel::Quat::operator()(), Mantid::Geometry::ConventionalCell::StandardizeHexagonal(), and Mantid::Algorithms::MCInteractionStatistics::UpdateScatterAngleStats().
|
noexcept |
Sets the vector position based on azimuth and polar angle, in RADIANS, in the SNS instrument coordinate system, where +Z = beam direction, +Y = vertical.
R | :: The R value (distance) |
azimuth | :: The azimuthal angle (in Radians) |
polar | :: The polar value (in Radians) |
Definition at line 95 of file V3D.cpp.
References Mantid::Kernel::Tolerance.
Referenced by Mantid::CurveFitting::Algorithms::VesuvioCalculateMS::calculateCounts().
Determines if this,B,C are colinear.
Bv | :: Vector to test |
Cv | :: Vector to test |
Definition at line 230 of file V3D.cpp.
References norm(), and Mantid::Kernel::Tolerance.
Referenced by Mantid::Crystal::CalculateUMatrix::exec().
|
static |
Convenience method for sorting list of V3D objects based on magnitude.
Comparator function for sorting list of 3D vectors based on their magnitude.
v1 | first vector |
v2 | seconde vector |
Definition at line 483 of file V3D.cpp.
Referenced by Mantid::Geometry::IndexingUtils::FFTScanFor_Directions(), Mantid::Geometry::IndexingUtils::Find_UB(), Mantid::Geometry::NiggliCell::MakeNiggliUB(), and Mantid::Geometry::ConventionalCell::SetSidesIncreasing().
double Mantid::Kernel::V3D::cosAngle | ( | const V3D & | v | ) | const |
cos(Angle) between this and another vector
Calculates the cosine of angle between this and another vector.
v | :: The other vector |
Definition at line 180 of file V3D.cpp.
References norm(), and scalar_prod().
Referenced by angle(), export_V3D(), Mantid::DataObjects::Peak::findDetector(), Mantid::Algorithms::SolidAngleHelpers::Rectangle::solidAngle(), and Mantid::Algorithms::SolidAngleHelpers::Wing::solidAngle().
Cross product (this * argument)
Definition at line 278 of file V3D.h.
Referenced by Mantid::DataHandling::AvrgDetector::addDetInfo(), Mantid::Kernel::VMDBase< TYPE >::cross_prod(), Mantid::Geometry::Plane::crossProd(), Mantid::DataHandling::LoadIsawDetCal::doRotation(), export_V3D(), Mantid::Geometry::IndexingUtils::FormUB_From_abc_Vectors(), Mantid::MDAlgorithms::IntegratePeaksMD2::getPinv(), Mantid::Geometry::Detector::getSignedTwoTheta(), Mantid::Geometry::DetectorGroup::getSignedTwoTheta(), Mantid::Geometry::MeshObjectCommon::getTriangleSolidAngle(), Mantid::Geometry::RandomPoint::localPointInCylinder(), Mantid::Geometry::IndexingUtils::MakeCircleDirections(), makeVectorsOrthogonal(), Mantid::Geometry::InstrumentDefinitionParser::makeXYplaneFaceComponent(), Mantid::Kernel::Quat::operator()(), Mantid::API::Projection::Projection(), Mantid::Kernel::Quat::Quat(), Mantid::Geometry::MeshObjectCommon::rayIntersectsTriangle(), Mantid::Geometry::CSGObject::rayTraceSolidAngle(), Mantid::MDAlgorithms::LoadSQW2::readSingleSPEHeader(), Mantid::Geometry::ConventionalCell::SetSidesIncreasing(), Mantid::Geometry::OrientedLattice::setUFromVectors(), Mantid::MDAlgorithms::MDWSTransform::setUVvectors(), Mantid::Crystal::PeaksOnSurface::validateExtentsInput(), Mantid::Geometry::CSGObject::volume(), Mantid::Geometry::MeshObject::volume(), and Mantid::DataHandling::Mantid3MFFileIO::writeMeshObject().
V3D Mantid::Kernel::V3D::directionAngles | ( | bool | inDegrees = true | ) | const |
|
inlinenoexcept |
Calculates the distance between two vectors.
v | :: The second vector to include in the calculation |
Definition at line 287 of file V3D.h.
Referenced by Mantid::Geometry::Track::addPoint(), Mantid::CurveFitting::Algorithms::VesuvioCalculateGammaBackground::cacheInstrumentGeometry(), Mantid::Algorithms::Q1DWeighted::calculate(), Mantid::CurveFitting::Algorithms::VesuvioCalculateGammaBackground::calculateBackgroundSingleFoil(), Mantid::CurveFitting::Algorithms::VesuvioCalculateMS::calculateCounts(), Mantid::Algorithms::ModeratorTzeroLinear::calculateTfLi(), Mantid::MDAlgorithms::IntegratePeaksMD2::checkOverlap(), Mantid::Geometry::Cylinder::distance(), Mantid::Geometry::Quadratic::distance(), Mantid::Geometry::MeshObject::distance(), export_V3D(), Mantid::Geometry::Component::getDistance(), Mantid::Algorithms::RadiusSum::getMaxDistance(), Mantid::Geometry::ObjComponent::interceptSurface(), Mantid::Crystal::PeakBackground::isBackground(), Mantid::Geometry::MeshObject::isValid(), Mantid::Geometry::Track::nonComplete(), Mantid::DataObjects::PeaksWorkspace::peakInfo(), Mantid::DataObjects::PeaksWorkspace::peakInfoNumber(), Mantid::MDAlgorithms::IntegratePeaksCWSD::simplePeakIntegration(), and Mantid::Geometry::Sphere::write().
void Mantid::Kernel::V3D::fromString | ( | const std::string & | str | ) |
Sets the vector using a string.
str | :: the vector as a string "X Y Z" |
Definition at line 348 of file V3D.cpp.
References read().
Referenced by Mantid::Geometry::ComponentParser::endElement().
|
noexcept |
Return the vector's position in spherical coordinates.
R | :: Returns the radial distance |
theta | :: Returns the theta angle in degrees |
phi | :: Returns the phi (azimuthal) angle in degrees |
Definition at line 117 of file V3D.cpp.
References Mantid::DataHandling::rad2deg.
Referenced by Mantid::DataHandling::AvrgDetector::addDetInfo(), Mantid::Algorithms::CalculateDynamicRange::calculateQMinMax(), Mantid::Algorithms::ConvertAxesToRealSpace::exec(), Mantid::Algorithms::ConvertToConstantL2::exec(), Mantid::DataHandling::ModifyDetectorDotDatFile::exec(), Mantid::MDAlgorithms::ConvertCWPDMDToSpectra::findXBoundary(), Mantid::Algorithms::RingProfile::getBinForPixel(), Mantid::Algorithms::RadiusSum::getBinForPixelPos(), Mantid::Geometry::DetectorGroup::getPhi(), Mantid::DataHandling::LoadILLDiffraction::initMovingWorkspace(), Mantid::DataHandling::LoadILLIndirect2::moveComponent(), Mantid::Algorithms::populateTable(), Mantid::Geometry::Instrument::saveDetectorSetInfoToNexus(), and Mantid::DataHandling::SaveNexusProcessed::saveSpectraDetectorMapNexus().
double Mantid::Kernel::V3D::hklError | ( | ) | const |
Calculates the error in hkl.
Calculates the error of the HKL to compare with tolerance.
Definition at line 530 of file V3D.cpp.
Referenced by Mantid::Geometry::IndexingUtils::CalculateMillerIndices().
void Mantid::Kernel::V3D::loadNexus | ( | ::NeXus::File * | file, |
const std::string & | name | ||
) |
|
static |
Take a list of 2 vectors and makes a 3D orthogonal system out of them The first vector i0 is taken as such.
The second vector is made perpendicular to i0, in the plane of i0-i1 The third vector is made perpendicular to the plane i0-i1 by performing the cross product of 0 and 1
vectors | :: list of 2 vectors |
Definition at line 298 of file V3D.cpp.
References cross_prod(), Mantid::Kernel::normalize(), Mantid::Kernel::Quat::rotate(), and Mantid::Kernel::Quat::setRotation().
Referenced by Mantid::MDAlgorithms::MDWSTransform::buildQTrahsf(), Mantid::Kernel::VMDBase< TYPE >::makeVectorsOrthogonal(), and Mantid::MDAlgorithms::MDWSTransform::setQ3DDimensionsNames().
|
noexcept |
Determine if there is a master direction.
Calculates the index of the primary direction (if there is one)
tolerance | :: Tolerance accepted |
range | -3,-2,-1 1,2,3 if the vector is orientaged within tolerance on the x,y,z direction (the sign indecates the direction to the +ve side ) |
0 | :: No master direction |
Definition at line 264 of file V3D.cpp.
References tolerance.
int Mantid::Kernel::V3D::maxCoeff | ( | ) |
Maximum absolute integer value.
Vector maximum absolute integer value.
Definition at line 509 of file V3D.cpp.
References m_pt.
Referenced by Mantid::Crystal::FindUBUsingIndexedPeaks::exec().
|
inlinenoexcept |
Definition at line 263 of file V3D.h.
Referenced by Mantid::Geometry::CoplanarChecks::allCoplanar(), Mantid::Geometry::BoundingBox::angularWidth(), Mantid::DataHandling::LoadStl::areEqualVertices(), Mantid::API::WorkspaceNearestNeighbours::build(), Mantid::Algorithms::GravitySANSHelper::calcSinTheta(), Mantid::Algorithms::AbsorptionCorrection::calculateDistances(), Mantid::Algorithms::PaalmanPingsAbsorptionCorrection::calculateDistances(), Mantid::MDAlgorithms::IntegratePeaksMD2::calculateDistanceToEdge(), Mantid::Algorithms::MultipleScatteringCorrection::calculateL2Ds(), Mantid::DataHandling::LoadDspacemap::CalculateOffsetsFromVulcanFactors(), Mantid::Crystal::IntegratePeakTimeSlices::CalculatePositionSpan(), Mantid::Crystal::IntegratePeakTimeSlices::CalculateTimeChannelSpan(), Mantid::DataObjects::BasePeak::calculateWavelengthFromQLab(), Mantid::Geometry::Sphere::centreToPoint(), coLinear(), Mantid::Geometry::CompareABCsum(), Mantid::MDAlgorithms::ConvertToDiffractionMDWorkspace::convertEventList(), Mantid::API::DetectorSearcher::convertQtoDirection(), Mantid::MDAlgorithms::ConvertCWSDExpToMomentum::convertSpiceMatrixToMomentumMDEvents(), cosAngle(), Mantid::MDAlgorithms::Integrate3DEvents::detectorQ(), Mantid::MDAlgorithms::IntegrateQLabEvents::detectorQ(), directionAngles(), Mantid::Geometry::IndexingUtils::DiscardDuplicates(), Mantid::Geometry::Cone::distance(), Mantid::Geometry::Sphere::distance(), Mantid::Geometry::Torus::distance(), Mantid::Algorithms::CompareWorkspaces::doLeanElasticPeaksComparison(), Mantid::Geometry::UnitCell::dstar(), Mantid::Algorithms::DiffractionEventCalibrateDetectors::exec(), Mantid::Algorithms::TOFSANSResolutionByPixel::exec(), Mantid::Crystal::LoadIsawSpectrum::exec(), Mantid::Crystal::SetGoniometer::exec(), Mantid::MDAlgorithms::ConvertToDiffractionMDWorkspace::exec(), Mantid::MDAlgorithms::IntegrateEllipsoidsV1::exec(), Mantid::MDAlgorithms::IntegrateEllipsoidsV2::exec(), export_V3D(), Mantid::Geometry::IndexingUtils::FFTScanFor_Directions(), Mantid::MDAlgorithms::IntegratePeaksMD2::findEllipsoid(), Mantid::Crystal::PeakHKLErrors::functionDeriv1D(), Mantid::DataObjects::LeanElasticPeak::getDSpacing(), Mantid::Geometry::IndexingUtils::GetIndexedPeaks_1D(), Mantid::Geometry::Instrument::getInstrumentParameters(), Mantid::Algorithms::RadiusSum::getMinBinSizeForInstrument(), Mantid::Crystal::PredictPeaks::getPeakParametersFromQ(), Mantid::MDAlgorithms::IntegratePeaksMD2::getPinv(), Mantid::DataObjects::Peak::getQLabFrame(), Mantid::Geometry::ScalarUtils::GetRelatedUBs(), Mantid::Geometry::MeshObjectCommon::getTriangleSolidAngle(), Mantid::Geometry::MeshObject2D::initialize(), Mantid::Crystal::lineIntersectsSphere(), Mantid::MDAlgorithms::IntegrateEllipsoidsTwoStep::makeIntegrationParameters(), Mantid::Geometry::NiggliCell::MakeNiggliUB(), Mantid::Geometry::InstrumentDefinitionParser::makeXYplaneFaceComponent(), normalize(), Mantid::Geometry::IndexingUtils::NumberIndexed_1D(), Mantid::Geometry::IndexingUtils::NumberIndexed_3D(), Mantid::DataHandling::V3DTrueComparator::operator()(), Mantid::DataObjects::PeaksWorkspace::peakInfo(), Mantid::DataObjects::PeaksWorkspace::peakInfoNumber(), Mantid::DataHandling::SetScalingPSD::processScalingFile(), Mantid::Algorithms::SANSCollimationLengthEstimator::provideCollimationLength(), Mantid::Geometry::CSGObject::rayTraceSolidAngle(), Mantid::Geometry::IndexingUtils::ScanFor_Directions(), Mantid::Algorithms::DiscusMultipleScatteringCorrection::scatter(), Mantid::Geometry::Cone::setNorm(), Mantid::Geometry::Torus::setNorm(), Mantid::DataObjects::Peak::setQLabFrame(), Mantid::Geometry::OrientedLattice::setUFromVectors(), Mantid::Geometry::ConventionalCell::StandardizeTetragonal(), Mantid::Algorithms::SmoothNeighbours::translateToMeters(), Mantid::Algorithms::LinearWeighting::weightAt(), and Mantid::Algorithms::GaussianWeightingnD::weightAt().
|
inlineconstexprnoexcept |
Vector length squared.
Definition at line 265 of file V3D.h.
Referenced by Mantid::Geometry::Goniometer::calcFromQSampleAndWavelength(), Mantid::Crystal::PredictPeaks::exec(), export_V3D(), Mantid::Geometry::IsotropicAtomBraggScatterer::getDebyeWallerFactor(), Mantid::Geometry::Line::intersect(), Mantid::Geometry::HKLFilterWavelength::isAllowed(), Mantid::Geometry::MeshObject2D::pointsCoplanar(), Mantid::Geometry::OrientedLattice::setUFromVectors(), and Mantid::Crystal::PeaksOnSurface::validateExtentsInput().
double Mantid::Kernel::V3D::normalize | ( | ) |
Make a normalized vector (return norm value)
Normalises the vector and returns its original length.
Definition at line 130 of file V3D.cpp.
References norm(), and operator/=().
Referenced by Mantid::DataHandling::AvrgDetector::addDetInfo(), Mantid::CurveFitting::Algorithms::VesuvioCalculateMS::cacheInputs(), Mantid::Algorithms::He3TubeEfficiency::calculateExponential(), Mantid::Algorithms::DetectorEfficiencyCor::correctForEfficiency(), Mantid::Geometry::ShapeFactory::createGeometryHandler(), Mantid::DataHandling::LoadIsawDetCal::doRotation(), Mantid::Algorithms::DiffractionEventCalibrateDetectors::exec(), Mantid::Algorithms::RayTracerTester::exec(), Mantid::Crystal::GoniometerAnglesFromPhiRotation::exec(), Mantid::Crystal::SaveHKL::exec(), Mantid::Crystal::SaveIsawPeaks::exec(), Mantid::DataHandling::SaveIsawDetCal::exec(), Mantid::Crystal::IntegratePeakTimeSlices::FindPlane(), Mantid::Crystal::PredictPeaks::getPeakParametersFromQ(), Mantid::Geometry::CSGObject::isOnSide(), Mantid::Geometry::RandomPoint::localPointInCylinder(), Mantid::Geometry::IndexingUtils::MakeCircleDirections(), Mantid::Kernel::normalize(), Mantid::Geometry::Line::rotate(), Mantid::Geometry::Cylinder::rotate(), Mantid::Geometry::Plane::rotate(), Mantid::Algorithms::DiscusMultipleScatteringCorrection::scatter(), Mantid::Geometry::IndexingUtils::SelectDirection(), Mantid::DataObjects::Peak::setQLabFrame(), Mantid::Geometry::Plane::setSurface(), Mantid::Geometry::OrientedLattice::setUFromVectors(), and Mantid::Geometry::Quadratic::surfaceNormal().
|
noexcept |
Determine if the point is null.
Checks the size of the vector.
tolerance | :: size of the biggest zero vector allowed. |
Definition at line 241 of file V3D.cpp.
References tolerance.
Referenced by Mantid::DataHandling::AvrgDetector::addDetInfo(), Mantid::API::MatrixWorkspace::detectorSignedTwoTheta(), Mantid::API::MatrixWorkspace::detectorTwoTheta(), Mantid::DataHandling::LoadIsawDetCal::doRotation(), Mantid::Crystal::CalculatePeaksHKL::exec(), Mantid::Crystal::CombinePeaksWorkspaces::exec(), Mantid::Crystal::DiffPeaksWorkspaces::exec(), Mantid::API::DetectorSearcher::findDetectorIndex(), Mantid::Kernel::Quat::operator()(), Mantid::Kernel::Quat::Quat(), Mantid::Geometry::CSGObject::rayTraceSolidAngle(), and Mantid::Geometry::Line::setLine().
|
inline |
|
inlinenoexcept |
Not equals operator with tolerance factor.
other | :: The V3D to compare against |
Definition at line 184 of file V3D.h.
References std::operator==().
|
inlinenoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
Self-Inner product.
v | :: Vector to multiply |
Definition at line 110 of file V3D.h.
References m_pt.
Referenced by toMillerIndexes().
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
Self-Inner division.
v | :: Vector to divide |
Definition at line 122 of file V3D.h.
References m_pt.
Referenced by normalize().
|
inlineconstexprnoexcept |
|
inlinenoexcept |
Equals operator with tolerance factor.
v | :: V3D for comparison |
Definition at line 175 of file V3D.h.
References Mantid::Kernel::Tolerance.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
void Mantid::Kernel::V3D::printSelf | ( | std::ostream & | os | ) | const |
Prints a text representation of itself in format "[x,y,z]".
os | :: the Stream to output to |
Definition at line 357 of file V3D.cpp.
References m_pt.
Referenced by Mantid::MDAlgorithms::IntegratePeaksMD2::calcCovar(), and Mantid::Kernel::operator<<().
void Mantid::Kernel::V3D::read | ( | std::istream & | IX | ) |
Read data from a stream.
IX | :: Input Stream |
Definition at line 328 of file V3D.cpp.
References m_pt.
Referenced by fromString().
void Mantid::Kernel::V3D::readPrinted | ( | std::istream & | IX | ) |
Read data from a stream in the format returned by printSelf ("[x,y,z]").
IX | :: Input Stream |
std::runtime_error | if the input is of wrong format |
Definition at line 364 of file V3D.cpp.
References m_pt.
Referenced by Mantid::DataHandling::SaveParameterFile::exec(), Mantid::Kernel::operator>>(), and Mantid::DataHandling::LoadAscii2::readTable().
rebase to new basis vector
Re-express this point as components of A,B,C.
Assuming that A,B,C form a basis set (which does not have to be orthonormal).
-1 | :: The points do not form a basis set. |
0 | :: Vec3D has successfully been re-expressed. |
Definition at line 199 of file V3D.cpp.
References Mantid::Kernel::Matrix< T >::Invert().
|
noexcept |
Rotate a point by a matrix.
A | :: Rotation matrix (needs to be >= 3x3) |
Definition at line 217 of file V3D.cpp.
Referenced by Mantid::Geometry::ShapeFactory::parseCuboid(), Mantid::Geometry::ShapeFactory::parseCylinder(), Mantid::Geometry::ShapeFactory::parseHollowCylinder(), Mantid::Geometry::ShapeFactory::parseInfiniteCylinder(), Mantid::Geometry::ShapeFactory::parseInfinitePlane(), Mantid::Geometry::ShapeFactory::parseSliceOfCylinderRing(), Mantid::Geometry::ShapeFactory::parseSphere(), Mantid::Geometry::ShapeFactory::parseTaperedGuide(), Mantid::Geometry::Line::rotate(), Mantid::Geometry::Cone::rotate(), Mantid::Geometry::Cylinder::rotate(), Mantid::Geometry::Plane::rotate(), Mantid::Geometry::Sphere::rotate(), Mantid::Geometry::Torus::rotate(), Mantid::Geometry::CuboidCorners::rotatePoints(), and Mantid::Geometry::Hexahedron::rotatePoints().
|
noexcept |
Round each component to the nearest integer.
Definition at line 140 of file V3D.cpp.
References m_pt.
Referenced by Mantid::Crystal::PeakStatisticsTools::UniqueReflectionCollection::addObservations(), Mantid::Crystal::PeakIntensityVsRadius::exec(), and Mantid::Crystal::PredictPeaks::fillPossibleHKLsUsingPeaksWorkspace().
void Mantid::Kernel::V3D::saveNexus | ( | ::NeXus::File * | file, |
const std::string & | name | ||
) | const |
|
inlineconstexprnoexcept |
Calculates the cross product.
Returns (this * v).
v | :: The second vector to include in the calculation |
Definition at line 274 of file V3D.h.
Referenced by Mantid::Algorithms::GravitySANSHelper::calcSinTheta(), Mantid::Algorithms::TimeAtSampleStrategyElastic::calculate(), Mantid::MDAlgorithms::IntegratePeaksMD2::calculateDistanceToEdge(), Mantid::Algorithms::He3TubeEfficiency::calculateExponential(), Mantid::DataHandling::LoadDspacemap::CalculateOffsetsFromVulcanFactors(), Mantid::Geometry::IsotropicAtomBraggScatterer::calculateStructureFactor(), Mantid::DataObjects::BasePeak::calculateWavelengthFromQLab(), Mantid::Crystal::PeaksInRegion::checkTouchPoint(), Mantid::Crystal::PeaksOnSurface::checkTouchPoint(), Mantid::API::DetectorSearcher::convertQtoDirection(), Mantid::Algorithms::DetectorEfficiencyCor::correctForEfficiency(), cosAngle(), Mantid::Geometry::ObjCompAssembly::createOutline(), Mantid::MDAlgorithms::Integrate3DEvents::detectorQ(), Mantid::MDAlgorithms::IntegrateQLabEvents::detectorQ(), Mantid::Geometry::Plane::displace(), Mantid::Geometry::MeshObject2D::distance(), Mantid::Geometry::Cone::distance(), Mantid::Geometry::Cylinder::distance(), export_V3D(), Mantid::Geometry::IndexingUtils::FormUB_From_abc_Vectors(), Mantid::Geometry::IndexingUtils::GetIndexedPeaks_1D(), Mantid::Geometry::IndexingUtils::GetIndexedPeaks_3D(), Mantid::Geometry::IndexingUtils::GetMagFFT(), Mantid::Crystal::PredictPeaks::getPeakParametersFromQ(), Mantid::MDAlgorithms::IntegratePeaksMD2::getPinv(), Mantid::Geometry::Detector::getSignedTwoTheta(), Mantid::Geometry::DetectorGroup::getSignedTwoTheta(), Mantid::Geometry::MeshObjectCommon::getTriangleSolidAngle(), Mantid::Geometry::MeshObject2D::interceptSurface(), Mantid::Geometry::Line::intersect(), Mantid::Geometry::SpaceGroup::isAllowedReflection(), Mantid::Geometry::MeshObjectCommon::isOnTriangle(), Mantid::Geometry::ReferenceFrame::isVectorPointingAlongBeam(), Mantid::Geometry::Plane::LineIntersectionWithPlane(), Mantid::Crystal::lineIntersectsSphere(), Mantid::Geometry::NiggliCell::MakeNiggliUB(), Mantid::Geometry::IndexingUtils::NumberIndexed_1D(), Mantid::Geometry::IndexingUtils::NumberIndexed_3D(), Mantid::Geometry::Cone::onSurface(), Mantid::API::Projection::Projection(), Mantid::Kernel::Quat::Quat(), Mantid::Geometry::MeshObjectCommon::rayIntersectsTriangle(), Mantid::Geometry::IndexingUtils::ScanFor_Directions(), Mantid::Geometry::IndexingUtils::ScanFor_UB(), Mantid::Geometry::IndexingUtils::SelectDirection(), Mantid::Geometry::Cone::setBaseEqn(), Mantid::Geometry::Cylinder::setBaseEqn(), Mantid::Geometry::Sphere::setBaseEqn(), Mantid::Geometry::Plane::setPlane(), Mantid::DataObjects::Peak::setQLabFrame(), Mantid::Geometry::ConventionalCell::SetSidesIncreasing(), Mantid::Geometry::Plane::setSurface(), Mantid::Crystal::IntegratePeakTimeSlices::SetUpData1(), Mantid::Geometry::Cone::side(), Mantid::Crystal::PeaksOnSurface::validateExtentsInput(), Mantid::Geometry::CSGObject::volume(), and Mantid::Geometry::MeshObject::volume().
|
inlinenoexcept |
Set is x position.
xx | :: The X coordinate |
Definition at line 218 of file V3D.h.
Referenced by Mantid::CurveFitting::Algorithms::VesuvioCalculateGammaBackground::calculateBackgroundSingleFoil(), Mantid::MDAlgorithms::ConvertCWSDMDtoHKL::exec(), Mantid::Crystal::IntegratePeakTimeSlices::FindPlane(), Mantid::CurveFitting::Algorithms::V3DFromHKLColumnExtractor::getHKLFromString(), Mantid::MDAlgorithms::ConvertCWSDExpToMomentum::getInputs(), Mantid::Geometry::RandomPoint::localPointInCylinder(), Mantid::MDAlgorithms::IntegratePeaksCWSD::processInputs(), Mantid::Algorithms::SolidAngleHelpers::AlphaAngleHorizontal::project(), V3DPickleSuite::setstate(), Mantid::Geometry::PeakTransform::transform(), and Mantid::Geometry::PeakTransform::transformBack().
|
inlinenoexcept |
Set is y position.
yy | :: The Y coordinate |
Definition at line 224 of file V3D.h.
Referenced by Mantid::CurveFitting::Algorithms::VesuvioCalculateGammaBackground::calculateBackgroundSingleFoil(), Mantid::MDAlgorithms::ConvertCWSDMDtoHKL::exec(), Mantid::Crystal::IntegratePeakTimeSlices::FindPlane(), Mantid::CurveFitting::Algorithms::V3DFromHKLColumnExtractor::getHKLFromString(), Mantid::MDAlgorithms::ConvertCWSDExpToMomentum::getInputs(), Mantid::Geometry::RandomPoint::localPointInCylinder(), Mantid::MDAlgorithms::IntegratePeaksCWSD::processInputs(), Mantid::Algorithms::SolidAngleHelpers::AlphaAngleVertical::project(), V3DPickleSuite::setstate(), Mantid::Geometry::PeakTransform::transform(), and Mantid::Geometry::PeakTransform::transformBack().
|
inlinenoexcept |
Set is z position.
zz | :: The Z coordinate |
Definition at line 230 of file V3D.h.
Referenced by Mantid::CurveFitting::Algorithms::VesuvioCalculateGammaBackground::calculateBackgroundSingleFoil(), Mantid::MDAlgorithms::ConvertCWSDMDtoHKL::exec(), Mantid::Crystal::IntegratePeakTimeSlices::FindPlane(), Mantid::CurveFitting::Algorithms::V3DFromHKLColumnExtractor::getHKLFromString(), Mantid::MDAlgorithms::ConvertCWSDExpToMomentum::getInputs(), Mantid::Geometry::RandomPoint::localPointInCylinder(), Mantid::MDAlgorithms::IntegratePeaksCWSD::processInputs(), V3DPickleSuite::setstate(), Mantid::Geometry::PeakTransform::transform(), and Mantid::Geometry::PeakTransform::transformBack().
|
noexcept |
Sets the vector position based on spherical coordinates.
R | :: The R value (distance) |
theta | :: The theta value (in degrees) = the polar angle away from the +Z axis. |
phi | :: The phi value (in degrees) = the azimuthal angle, where 0 points along +X and rotates clockwise in the XY plane |
Definition at line 57 of file V3D.cpp.
References Mantid::Geometry::deg2rad.
Referenced by Mantid::Algorithms::AbsorptionCorrection::calculateDistances(), Mantid::Algorithms::PaalmanPingsAbsorptionCorrection::calculateDistances(), Mantid::Algorithms::MultipleScatteringCorrection::calculateL2Ds(), Mantid::DataHandling::LoadGSS::createInstrumentGeometry(), Mantid::Algorithms::ConvertToConstantL2::exec(), Mantid::Algorithms::EditInstrumentGeometry::exec(), Mantid::DataHandling::LoadInstrumentFromRaw::exec(), Mantid::DataHandling::LoadNXSPE::exec(), Mantid::DataHandling::SetScalingPSD::getDetPositionsFromRaw(), Mantid::Geometry::InstrumentDefinitionParser::getRelativeTranslation(), Mantid::DataHandling::LoadILLDiffraction::initMovingWorkspace(), Mantid::DataHandling::LoadILLIndirect2::moveComponent(), Mantid::Geometry::InstrumentDefinitionParser::parseFacingElementToV3D(), Mantid::Geometry::InstrumentDefinitionParser::parsePosition(), Mantid::Geometry::ShapeFactory::parsePosition(), Mantid::API::ExperimentInfo::populateInstrumentParameters(), Mantid::DataHandling::SetScalingPSD::processScalingFile(), Mantid::DataHandling::UpdateInstrumentFromFile::setDetectorPosition(), and Mantid::DataHandling::LoadDetectorInfo::updateParameterMap().
|
noexcept |
Sets the vector position based on spherical coordinates, in radians.
R | :: The R value (distance) |
polar | :: the polar angle (in radians) away from the +Z axis. |
azimuth | :: the azimuthal angle (in radians), where 0 points along +X and rotates clockwise in the XY plane |
Definition at line 70 of file V3D.cpp.
References Mantid::Kernel::Tolerance.
double Mantid::Kernel::V3D::toMillerIndexes | ( | double | eps = 1.e-3 | ) |
transform vector into form, used to describe directions in crystallogaphical coodinate system
Definition at line 431 of file V3D.cpp.
References m_pt, and operator*=().
std::string Mantid::Kernel::V3D::toString | ( | ) | const |
Definition at line 340 of file V3D.cpp.
References write().
Referenced by Mantid::MDAlgorithms::ConvertCWSDExpToMomentum::convertSpiceMatrixToMomentumMDEvents(), Mantid::Crystal::PeakIntensityVsRadius::exec(), Mantid::MDAlgorithms::IntegratePeaksCWSD::getPeakInformation(), Mantid::DataObjects::Peak::setQLabFrame(), Mantid::MDAlgorithms::IntegratePeaksCWSD::simplePeakIntegration(), and Mantid::Geometry::Component::writeXML().
|
noexcept |
Definition at line 251 of file V3D.cpp.
References tolerance.
Referenced by Mantid::Geometry::Track::reset(), and Mantid::Geometry::Track::Track().
|
inlinenoexcept |
void Mantid::Kernel::V3D::write | ( | std::ostream & | OX | ) | const |
Write out the point values.
OX | :: Output stream |
Definition at line 330 of file V3D.cpp.
Referenced by Mantid::Geometry::Component::appendXML(), Mantid::Algorithms::DiffractionEventCalibrateDetectors::exec(), and toString().
|
inlineconstexprnoexcept |
Get x.
Definition at line 232 of file V3D.h.
Referenced by Mantid::Geometry::CoplanarChecks::allCoplanar(), Mantid::MDAlgorithms::ConvertCWPDMDToSpectra::binMD(), Mantid::API::WorkspaceNearestNeighbours::build(), Mantid::Geometry::CSGObject::calcBoundingBoxByGeometry(), Mantid::Algorithms::GravitySANSHelper::calcComponents(), Mantid::CurveFitting::Algorithms::VesuvioCalculateGammaBackground::calculateBackgroundSingleFoil(), Mantid::Algorithms::VesuvioL1ThetaResolution::calculateDetector(), Mantid::MDAlgorithms::CalculateCoverageDGS::calculateIntersections(), Mantid::MDAlgorithms::MDNormDirectSC::calculateIntersections(), Mantid::MDAlgorithms::MDNormSCD::calculateIntersections(), Mantid::MDAlgorithms::MDNorm::calculateIntersections(), ComponentCreationHelper::cappedCylinderXML(), Mantid::Crystal::PredictPeaks::checkBeamDirection(), Mantid::MDAlgorithms::ConvertToDiffractionMDWorkspace::convertEventList(), Mantid::MDAlgorithms::ConvertCWSDExpToMomentum::convertToQSample(), WorkspaceCreationHelper::create2DWorkspaceWithReflectometryInstrumentMultiDetector(), Mantid::Algorithms::CreateSampleWorkspace::createCappedCylinder(), Mantid::DataHandling::SetSample::createCylinderLikeXML(), Mantid::DataHandling::SetSample::createFlatPlateXML(), Mantid::MDAlgorithms::ConvertCWSDMDtoHKL::createHKLMDWorkspace(), Mantid::Geometry::ObjCompAssembly::createOutline(), Mantid::Algorithms::CreateSampleWorkspace::createSphere(), ComponentCreationHelper::cuboidXML(), Mantid::Algorithms::AnnularRingAbsorption::cylinderXML(), Mantid::Algorithms::RectangularBeamProfile::defineActiveRegion(), Mantid::Algorithms::CircularBeamProfile::defineActiveRegion(), Mantid::MDAlgorithms::IntegratePeaksMD::detectorQ(), Mantid::Geometry::SymmetryElementWithAxisGenerator::determineAxis(), Mantid::Geometry::MeshObject2D::distanceToPlane(), Mantid::Geometry::BoundingBox::doesLineIntersect(), Mantid::Algorithms::ApplyCalibration::exec(), Mantid::Algorithms::ConvertAxesToRealSpace::exec(), Mantid::Algorithms::Qxy::exec(), Mantid::Crystal::CalculateUMatrix::exec(), Mantid::Crystal::OptimizeCrystalPlacement::exec(), Mantid::Crystal::PeaksOnSurface::exec(), Mantid::Crystal::SaveIsawPeaks::exec(), Mantid::DataHandling::SaveIsawDetCal::exec(), Mantid::DataHandling::SaveParameterFile::exec(), Mantid::MDAlgorithms::RecalculateTrajectoriesExtents::exec(), Mantid::WorkflowAlgorithms::DgsConvertToEnergyTransfer::exec(), export_V3D(), Mantid::MDAlgorithms::LoadDNSSCD::fillOutputWorkspace(), Mantid::Crystal::IntegratePeakTimeSlices::FindPlane(), Mantid::Crystal::SCDCalibratePanels2::generateCalibrationTable(), Mantid::DataObjects::Peak::getAzimuthal(), Mantid::Geometry::ObjComponent::getBoundingBox(), Mantid::Geometry::Cone::getBoundingBox(), Mantid::MDAlgorithms::GetSpiceDataRawCountsFromMD::getDetCounts(), Mantid::Geometry::HKLGenerator::getEndHKL(), Mantid::Crystal::IntegratePeakTimeSlices::getNeighborPixIDs(), Mantid::Crystal::PeakHKLErrors::getNewInstrument(), Mantid::Geometry::HKLGenerator::getSize(), V3DPickleSuite::getstate(), Mantid::Geometry::ObjComponent::getWidth(), ComponentCreationHelper::hollowCylinderXML(), Mantid::Geometry::MeshObject2D::initialize(), Mantid::Geometry::BoundingBox::isPointInside(), Mantid::Geometry::RandomPoint::localPointInCylinder(), Mantid::MDAlgorithms::makeAxisName(), Mantid::DataHandling::LoadILLSANS::moveDetectorDistance(), Mantid::DataHandling::LoadILLSANS::moveDetectorVertical(), Mantid::WorkflowAlgorithms::EQSANSLoad::moveToBeamCenter(), Mantid::Geometry::AtomPositionsEqual::operator()(), Mantid::Geometry::AtomPositionsLessThan::operator()(), Mantid::Kernel::Matrix< T >::operator*(), Mantid::Algorithms::ParallaxCorrection::performCorrection(), Mantid::Algorithms::CylinderAbsorption::sampleXML(), Mantid::Algorithms::FlatPlateAbsorption::sampleXML(), Mantid::DataObjects::LeanElasticPeaksWorkspace::saveNexus(), Mantid::Crystal::SCDCalibratePanels::saveXmlFile(), Mantid::Crystal::SCDCalibratePanels2::saveXmlFile(), Mantid::DataObjects::BasePeak::setHKL(), Mantid::Geometry::Sphere::side(), Mantid::Geometry::ComponentHelper::sphereXML(), ComponentCreationHelper::sphereXML(), Mantid::Geometry::InstrumentDefinitionParser::translateRotateXMLcuboid(), Mantid::Algorithms::Qhelper::waveLengthCutOff(), Mantid::Algorithms::ParabolicWeighting::weightAt(), and Mantid::DataHandling::SaveStl::writeTriangle().
|
inlineconstexprnoexcept |
Get y.
Definition at line 233 of file V3D.h.
Referenced by Mantid::MDAlgorithms::ConvertCWPDMDToSpectra::binMD(), Mantid::API::WorkspaceNearestNeighbours::build(), Mantid::Geometry::CSGObject::calcBoundingBoxByGeometry(), Mantid::Algorithms::GravitySANSHelper::calcComponents(), Mantid::Algorithms::VesuvioL1ThetaResolution::calculateDetector(), Mantid::MDAlgorithms::CalculateCoverageDGS::calculateIntersections(), Mantid::MDAlgorithms::MDNormDirectSC::calculateIntersections(), Mantid::MDAlgorithms::MDNormSCD::calculateIntersections(), Mantid::MDAlgorithms::MDNorm::calculateIntersections(), ComponentCreationHelper::cappedCylinderXML(), Mantid::Crystal::PredictPeaks::checkBeamDirection(), Mantid::MDAlgorithms::ConvertToDiffractionMDWorkspace::convertEventList(), Mantid::MDAlgorithms::ConvertCWSDExpToMomentum::convertToQSample(), WorkspaceCreationHelper::create2DWorkspaceWithReflectometryInstrumentMultiDetector(), Mantid::Algorithms::CreateSampleWorkspace::createCappedCylinder(), Mantid::DataHandling::SetSample::createCylinderLikeXML(), Mantid::MDAlgorithms::ConvertCWSDMDtoHKL::createHKLMDWorkspace(), Mantid::Geometry::ObjCompAssembly::createOutline(), Mantid::Algorithms::CreateSampleWorkspace::createSphere(), Mantid::Algorithms::AnnularRingAbsorption::cylinderXML(), Mantid::Algorithms::RectangularBeamProfile::defineActiveRegion(), Mantid::Algorithms::CircularBeamProfile::defineActiveRegion(), Mantid::MDAlgorithms::IntegratePeaksMD::detectorQ(), Mantid::Geometry::SymmetryElementWithAxisGenerator::determineAxis(), Mantid::Geometry::MeshObject2D::distanceToPlane(), Mantid::Geometry::BoundingBox::doesLineIntersect(), Mantid::Algorithms::ApplyCalibration::exec(), Mantid::Algorithms::ConvertAxesToRealSpace::exec(), Mantid::Algorithms::Qxy::exec(), Mantid::Crystal::CalculateUMatrix::exec(), Mantid::Crystal::OptimizeCrystalPlacement::exec(), Mantid::Crystal::PeaksOnSurface::exec(), Mantid::Crystal::SaveIsawPeaks::exec(), Mantid::DataHandling::SaveIsawDetCal::exec(), Mantid::DataHandling::SaveParameterFile::exec(), Mantid::MDAlgorithms::RecalculateTrajectoriesExtents::exec(), Mantid::WorkflowAlgorithms::DgsConvertToEnergyTransfer::exec(), export_V3D(), Mantid::MDAlgorithms::LoadDNSSCD::fillOutputWorkspace(), Mantid::Crystal::IntegratePeakTimeSlices::FindPlane(), Mantid::Crystal::SCDCalibratePanels2::generateCalibrationTable(), Mantid::DataObjects::Peak::getAzimuthal(), Mantid::Geometry::ObjComponent::getBoundingBox(), Mantid::Geometry::Cone::getBoundingBox(), Mantid::MDAlgorithms::GetSpiceDataRawCountsFromMD::getDetCounts(), Mantid::Geometry::HKLGenerator::getEndHKL(), Mantid::Geometry::ObjComponent::getHeight(), Mantid::Crystal::IntegratePeakTimeSlices::getNeighborPixIDs(), Mantid::Crystal::PeakHKLErrors::getNewInstrument(), Mantid::Geometry::HKLGenerator::getSize(), V3DPickleSuite::getstate(), ComponentCreationHelper::hollowCylinderXML(), Mantid::Geometry::MeshObject2D::initialize(), Mantid::Geometry::BoundingBox::isPointInside(), Mantid::Geometry::RandomPoint::localPointInCylinder(), Mantid::MDAlgorithms::makeAxisName(), Mantid::DataHandling::LoadILLSANS::moveDetectorDistance(), Mantid::DataHandling::LoadILLSANS::moveDetectorHorizontal(), Mantid::WorkflowAlgorithms::EQSANSLoad::moveToBeamCenter(), Mantid::Geometry::AtomPositionsEqual::operator()(), Mantid::Geometry::AtomPositionsLessThan::operator()(), Mantid::Algorithms::ParallaxCorrection::performCorrection(), Mantid::DataHandling::LoadSwans::placeDetectorInSpace(), Mantid::Algorithms::CylinderAbsorption::sampleXML(), Mantid::Algorithms::FlatPlateAbsorption::sampleXML(), Mantid::DataObjects::LeanElasticPeaksWorkspace::saveNexus(), Mantid::Crystal::SCDCalibratePanels::saveXmlFile(), Mantid::Crystal::SCDCalibratePanels2::saveXmlFile(), Mantid::Geometry::Sphere::side(), Mantid::Geometry::ComponentHelper::sphereXML(), ComponentCreationHelper::sphereXML(), Mantid::Geometry::InstrumentDefinitionParser::translateRotateXMLcuboid(), Mantid::Algorithms::Qhelper::waveLengthCutOff(), Mantid::Algorithms::ParabolicWeighting::weightAt(), and Mantid::DataHandling::SaveStl::writeTriangle().
|
inlineconstexprnoexcept |
Get z.
Definition at line 234 of file V3D.h.
Referenced by Mantid::DataHandling::AvrgDetector::addDetInfo(), Mantid::MDAlgorithms::ConvertCWPDMDToSpectra::binMD(), Mantid::API::WorkspaceNearestNeighbours::build(), Mantid::Geometry::CSGObject::calcBoundingBoxByGeometry(), Mantid::CurveFitting::Algorithms::VesuvioCalculateGammaBackground::calculateBackgroundSingleFoil(), Mantid::MDAlgorithms::CalculateCoverageDGS::calculateIntersections(), Mantid::MDAlgorithms::MDNormDirectSC::calculateIntersections(), Mantid::MDAlgorithms::MDNormSCD::calculateIntersections(), Mantid::MDAlgorithms::MDNorm::calculateIntersections(), Mantid::Crystal::IntegratePeakTimeSlices::CalculatePositionSpan(), ComponentCreationHelper::cappedCylinderXML(), Mantid::MDAlgorithms::ConvertToDiffractionMDWorkspace::convertEventList(), Mantid::MDAlgorithms::ConvertCWSDExpToMomentum::convertToQSample(), WorkspaceCreationHelper::create2DWorkspaceWithReflectometryInstrumentMultiDetector(), Mantid::Algorithms::CreateSampleWorkspace::createCappedCylinder(), Mantid::DataHandling::SetSample::createCylinderLikeXML(), Mantid::MDAlgorithms::ConvertCWSDMDtoHKL::createHKLMDWorkspace(), Mantid::Geometry::ObjCompAssembly::createOutline(), Mantid::Crystal::PredictSatellitePeaks::createPeakForOutputWorkspace(), Mantid::Algorithms::CreateSampleWorkspace::createSphere(), Mantid::Algorithms::AnnularRingAbsorption::cylinderXML(), Mantid::Algorithms::RectangularBeamProfile::defineActiveRegion(), Mantid::Algorithms::CircularBeamProfile::defineActiveRegion(), Mantid::MDAlgorithms::IntegratePeaksMD::detectorQ(), Mantid::Geometry::SymmetryElementWithAxisGenerator::determineAxis(), Mantid::Geometry::MeshObject2D::distanceToPlane(), Mantid::Geometry::BoundingBox::doesLineIntersect(), Mantid::Algorithms::ApplyCalibration::exec(), Mantid::Algorithms::ConvertAxesToRealSpace::exec(), Mantid::Crystal::CalculateUMatrix::exec(), Mantid::Crystal::OptimizeCrystalPlacement::exec(), Mantid::Crystal::PeaksOnSurface::exec(), Mantid::Crystal::PredictPeaks::exec(), Mantid::Crystal::SaveIsawPeaks::exec(), Mantid::DataHandling::LoadILLSANS::exec(), Mantid::DataHandling::SaveIsawDetCal::exec(), Mantid::DataHandling::SaveParameterFile::exec(), Mantid::MDAlgorithms::RecalculateTrajectoriesExtents::exec(), Mantid::WorkflowAlgorithms::DgsConvertToEnergyTransfer::exec(), export_V3D(), Mantid::MDAlgorithms::LoadDNSSCD::fillOutputWorkspace(), Mantid::Crystal::IntegratePeakTimeSlices::FindPlane(), Mantid::Crystal::SCDCalibratePanels2::generateCalibrationTable(), Mantid::Geometry::ObjComponent::getBoundingBox(), Mantid::Geometry::Cone::getBoundingBox(), Mantid::Geometry::ObjComponent::getDepth(), Mantid::MDAlgorithms::GetSpiceDataRawCountsFromMD::getDetCounts(), Mantid::Geometry::HKLGenerator::getEndHKL(), Mantid::Crystal::IntegratePeakTimeSlices::getNeighborPixIDs(), Mantid::Crystal::PeakHKLErrors::getNewInstrument(), Mantid::Geometry::HKLGenerator::getSize(), V3DPickleSuite::getstate(), ComponentCreationHelper::hollowCylinderXML(), Mantid::Geometry::MeshObject2D::initialize(), Mantid::Geometry::HKLFilterWavelength::isAllowed(), Mantid::Geometry::BoundingBox::isPointInside(), Mantid::Geometry::RandomPoint::localPointInCylinder(), Mantid::MDAlgorithms::makeAxisName(), Mantid::DataHandling::LoadILLSANS::moveDetectorHorizontal(), Mantid::DataHandling::LoadILLSANS::moveDetectorVertical(), Mantid::Geometry::AtomPositionsEqual::operator()(), Mantid::Geometry::AtomPositionsLessThan::operator()(), Mantid::Algorithms::ParallaxCorrection::performCorrection(), Mantid::Geometry::CSGObject::rayTraceSolidAngle(), Mantid::Algorithms::CylinderAbsorption::sampleXML(), Mantid::Algorithms::FlatPlateAbsorption::sampleXML(), Mantid::DataObjects::LeanElasticPeaksWorkspace::saveNexus(), Mantid::Crystal::SCDCalibratePanels::saveXmlFile(), Mantid::Crystal::SCDCalibratePanels2::saveXmlFile(), Mantid::Geometry::Sphere::side(), Mantid::Geometry::ComponentHelper::sphereXML(), ComponentCreationHelper::sphereXML(), Mantid::Geometry::InstrumentDefinitionParser::translateRotateXMLcuboid(), and Mantid::DataHandling::SaveStl::writeTriangle().
|
noexcept |
Zenith (theta) angle between this and another vector.
Calculates the zenith angle (theta) of this vector with respect to another.
v | :: The other vector |
Definition at line 150 of file V3D.cpp.
Referenced by export_V3D().
|
private |
Definition at line 329 of file V3D.h.
Referenced by absoluteValue(), directionAngles(), hklError(), loadNexus(), maxCoeff(), operator*=(), operator+=(), operator-=(), operator/=(), printSelf(), read(), readPrinted(), round(), saveNexus(), and toMillerIndexes().