libalmath
2.8.7.4
|
Classes | |
struct | AL::Math::Pose2D |
A pose in a 2-dimentional space. More... | |
struct | AL::Math::Position2D |
Create and play with a Position2D. More... | |
struct | AL::Math::Position3D |
Create and play with a Position3D. More... | |
struct | AL::Math::Position6D |
Create and play with a Position6D. More... | |
struct | AL::Math::PositionAndVelocity |
Create and play with a PositionAndVelocity. More... | |
struct | AL::Math::Quaternion |
Create and play with a Quaternion. More... | |
struct | AL::Math::Rotation |
A 3*3 rotation matrix. More... | |
struct | AL::Math::Rotation3D |
A Rotation3D give 3 composed angles in radians. More... | |
struct | AL::Math::Transform |
A homogenous transformation matrix. More... | |
struct | AL::Math::Velocity3D |
Create and play with a Velocity3D. More... | |
struct | AL::Math::Velocity6D |
Create and play with a Velocity6D. More... | |
struct | AL::Math::Point2Di |
Create a Point2Di. Point2Di are used on objects that deal with pixels only, and should not care about metric distances. More... | |
struct | AL::Math::Pose2Di |
Create a Pose2Di. Pose2Di are used on objects that deal with pixels only, and should not care about metric distances. More... | |
struct | AL::Math::OccupancyMapParams |
Create a OccupancyMapParams. OccupancyMapParams are used used to define occupancy maps and to provide helpers to change from metrical to pixel frames. Maps are squared. More... | |
Typedefs | |
typedef std::bitset< 6 > | AL::Math::AXIS_MASK |
Definition of an AXIS_MASK as a bit set. More... | |
Functions | |
ALMATH_API std::ostream & | AL::Math::operator<< (std::ostream &pStream, const Pose2D &pPos) |
Overloading of operator << for Pose2D. More... | |
ALMATH_API std::ostream & | AL::Math::operator<< (std::ostream &pStream, const Position2D &pPos) |
Overloading of operator << for Position2D. More... | |
ALMATH_API std::ostream & | AL::Math::operator<< (std::ostream &pStream, const Position3D &pPos) |
Overloading of operator << for Position3D. More... | |
ALMATH_API std::ostream & | AL::Math::operator<< (std::ostream &pStream, const Position6D &pPos) |
Overloading of operator << for Position6D. More... | |
ALMATH_API std::ostream & | AL::Math::operator<< (std::ostream &pStream, const PositionAndVelocity &pPosVel) |
Overloading of operator << for PositionAndVelocity. More... | |
ALMATH_API std::ostream & | AL::Math::operator<< (std::ostream &pStream, const Rotation &pRot) |
Overloading of operator << for Rotation. More... | |
ALMATH_API std::ostream & | AL::Math::operator<< (std::ostream &pStream, const Rotation3D &pRot) |
Overloading of operator << for Rotation3D. More... | |
ALMATH_API std::ostream & | AL::Math::operator<< (std::ostream &pStream, const Transform &pT) |
Overloading of operator << for Transform. More... | |
ALMATH_API std::ostream & | AL::Math::operator<< (std::ostream &pStream, const TransformAndVelocity6D &pTV) |
Overloading of operator << for TransformAndVelocity6D. More... | |
ALMATH_API std::ostream & | AL::Math::operator<< (std::ostream &pStream, const Velocity3D &pVel) |
Overloading of operator << for Velocity3D. More... | |
ALMATH_API std::ostream & | AL::Math::operator<< (std::ostream &pStream, const Quaternion &pQua) |
Overloading of operator << for Quaternion. More... | |
ALMATH_API std::ostream & | AL::Math::operator<< (std::ostream &pStream, const Velocity6D &pVel) |
Overloading of operator << for Velocity6D. More... | |
ALMATH_API std::string | AL::Math::toSpaceSeparated (const Position3D &pPos) |
Create a string of Position3D. More... | |
ALMATH_API std::string | AL::Math::toSpaceSeparated (const Rotation3D &pPos) |
Create a string of Rotation3D. More... | |
ALMATH_API std::string | AL::Math::toSpaceSeparated (const Velocity6D &pVel) |
Create a string of Velocity6D. More... | |
ALMATH_API std::string | AL::Math::toSpaceSeparated (const Transform &pT) |
Create a string of Transform. More... | |
ALMATH_API std::string | AL::Math::toSpaceSeparated (const Position6D &pPos) |
Create a string of Position6D. More... | |
ALMATH_API std::string | AL::Math::toSpaceSeparated (const Quaternion &pQuat) |
Create a string of Quaternion. More... | |
ALMATH_API float | AL::Math::distanceSquared (const Pose2D &pPos1, const Pose2D &pPos2) |
Compute the squared distance between two Pose2D. More... | |
ALMATH_API float | AL::Math::distance (const Pose2D &pPos1, const Pose2D &pPos2) |
Compute the distance between two Pose2D. More... | |
ALMATH_API void | AL::Math::pose2dInvertInPlace (Pose2D &pPos) |
Inverse the given Pose2D in place: More... | |
ALMATH_API Pose2D | AL::Math::pinv (const Pose2D &pPos) |
Alternative name for inverse: return the pose2d inverse of the given Pose2D. More... | |
ALMATH_API Pose2D | AL::Math::pose2dDiff (const Pose2D &pPos1, const Pose2D &pPos2) |
Compute the Pose2D between the actual Pose2D and the one give in argument result: More... | |
ALMATH_API Pose2D | AL::Math::pose2DInverse (const Pose2D &pPos) |
Compute the inverse of a Pose2D. More... | |
ALMATH_API void | AL::Math::pose2DInverse (const Pose2D &pPos, Pose2D &pRes) |
Compute the inverse of a Pose2D. More... | |
ALMATH_API float | AL::Math::distanceSquared (const Position2D &pPos1, const Position2D &pPos2) |
Compute the squared distance between two Position2D. More... | |
ALMATH_API float | AL::Math::distance (const Position2D &pPos1, const Position2D &pPos2) |
Compute the distance between two Position2D : More... | |
ALMATH_API float | AL::Math::norm (const Position2D &pPos) |
Compute the norm of a Position2D. More... | |
ALMATH_API Position2D | AL::Math::normalize (const Position2D &pPos) |
Normalize a Position2D. More... | |
ALMATH_API float | AL::Math::crossProduct (const Position2D &pPos1, const Position2D &pPos2) |
Compute the cross Product of two Position2D. More... | |
ALMATH_API void | AL::Math::crossProduct (const Position2D &pPos1, const Position2D &pPos2, float &pRes) |
Compute the cross Product of two Position2D. More... | |
bool | AL::Math::Position3D::isUnitVector (const float &pEpsilon=0.0001f) const |
Checks if the norm of the Position3D is near to 1.0 More... | |
bool | AL::Math::Position3D::isOrthogonal (const Position3D &pPos, const float &pEpsilon=0.0001f) const |
Checks if this Position3D is orthogonal to Position3D pPos More... | |
ALMATH_API float | AL::Math::distanceSquared (const Position3D &pPos1, const Position3D &pPos2) |
Compute the squared distance between two Position3D: More... | |
ALMATH_API float | AL::Math::distance (const Position3D &pPos1, const Position3D &pPos2) |
Compute the distance between two Position3D: More... | |
ALMATH_API float | AL::Math::norm (const Position3D &pPos) |
Compute the norm of a Position3D: More... | |
ALMATH_API Position3D | AL::Math::normalize (const Position3D &pPos) |
Normalize a Position3D: More... | |
ALMATH_API bool | AL::Math::isUnitVector (const Position3D &pPos, const float &pEpsilon=0.0001f) |
Checks if the norm of a Position3D is near to 1.0 More... | |
ALMATH_API bool | AL::Math::isOrthogonal (const Position3D &pPos1, const Position3D &pPos2, const float &pEpsilon=0.0001f) |
Checks if two Position3D are orthogonal More... | |
ALMATH_API float | AL::Math::distanceSquared (const Position6D &pPos1, const Position6D &pPos2) |
Compute the squared distance of translation part (x, y and z) between two Position6D: More... | |
ALMATH_API float | AL::Math::distance (const Position6D &pPos1, const Position6D &pPos2) |
Compute the distance of translation part (x, y and z) between two Position6D: More... | |
ALMATH_API float | AL::Math::norm (const Position6D &pPos) |
Compute the norm of a Position6D: More... | |
ALMATH_API Position6D | AL::Math::normalize (const Position6D &pPos) |
Normalize a Position6D: More... | |
ALMATH_API float | AL::Math::norm (const Quaternion &pQua) |
Compute the norm of a Quaternion: More... | |
ALMATH_API Quaternion | AL::Math::normalize (const Quaternion &pQua) |
Normalize a Quaternion: More... | |
ALMATH_API void | AL::Math::quaternionInverse (const Quaternion &pQua, Quaternion &pQuaOut) |
Return the quaternion inverse of the given Quaternion: More... | |
ALMATH_API Quaternion | AL::Math::quaternionInverse (const Quaternion &pQua) |
Return the quaternion inverse of the given Quaternion More... | |
ALMATH_API Quaternion | AL::Math::quaternionFromAngleAndAxisRotation (const float pAngle, const float pAxisX, const float pAxisY, const float pAxisZ) |
Create a Quaternion initialized with explicit angle and axis rotation. More... | |
ALMATH_API void | AL::Math::angleAndAxisRotationFromQuaternion (const Quaternion &pQuaternion, float &pAngle, float &pAxisX, float &pAxisY, float &pAxisZ) |
Compute angle and axis rotation from a Quaternion. More... | |
ALMATH_API std::vector< float > | AL::Math::angleAndAxisRotationFromQuaternion (const Quaternion &pQuaternion) |
Compute angle and axis rotation from a Quaternion. More... | |
ALMATH_API Rotation | AL::Math::transpose (const Rotation &pRot) |
Compute the transpose rotation of the one given in argument: More... | |
ALMATH_API float | AL::Math::determinant (const Rotation &pRot) |
Compute the determinant of the given Rotation: More... | |
ALMATH_API void | AL::Math::normalizeRotation (Rotation &pRot) |
Normalize data, if needed, to have Rotation properties. More... | |
ALMATH_API Rotation | AL::Math::rotationFromQuaternion (const float pA, const float pB, const float pC, const float pD) |
Creates a 3*3 Rotation Matrix from a normalized quaternion ( |a + bi + cj + dk| = 1). More... | |
ALMATH_API Rotation | AL::Math::rotationFromAngleDirection (const float pAngle, const float pX, const float pY, const float pZ) |
Creates a 3*3 Rotation Matrix from a an angle and a normalized direction( |pX, pY, pZ| = 1). More... | |
ALMATH_API void | AL::Math::applyRotation (const AL::Math::Rotation &pRot, float &pX, float &pY, float &pZ) |
Apply Rotation to a 3D point. More... | |
ALMATH_API Rotation | AL::Math::rotationFromRotX (const float pRotX) |
Create a Rotation initialized with explicit rotation around x axis. More... | |
ALMATH_API Rotation | AL::Math::rotationFromRotY (const float pRotY) |
Create a Rotation initialized with explicit rotation around y axis. More... | |
ALMATH_API Rotation | AL::Math::rotationFromRotZ (const float pRotZ) |
Create a Rotation initialized with explicit rotation around z axis. More... | |
ALMATH_API Rotation | AL::Math::rotationFrom3DRotation (const float &pWX, const float &pWY, const float &pWZ) |
Create a Rotation initialized with euler angle. Rot = fromRotZ(pWZ)*fromRotY(pWY)*fromRotX(pWX) More... | |
ALMATH_API float | AL::Math::norm (const Rotation3D &pRot) |
Compute the norm of a Rotation3D: More... | |
ALMATH_API void | AL::Math::transformPreMultiply (const Transform &pT, Transform &pTOut) |
pTOut = pT*pTOut More... | |
ALMATH_API float | AL::Math::norm (const Transform &pT) |
Compute the norm translation part of the actual Transform: More... | |
ALMATH_API void | AL::Math::normalizeTransform (Transform &pT) |
Normalize data, if needed, to have transform properties. More... | |
ALMATH_API void | AL::Math::transformToFloatVector (const Transform &pT, std::vector< float > &pTOut) |
DEPRECATED: Use toVector function. Copy the Transform in a vector of float: More... | |
ALMATH_API std::vector< float > | AL::Math::transformToFloatVector (const Transform &pT) |
DEPRECATED: Use toVector function. Return the Transform in a vector of float: More... | |
ALMATH_API float | AL::Math::determinant (const Transform &pT) |
Compute the determinant of rotation part of the given Transform: More... | |
ALMATH_API float | AL::Math::determinant (const std::vector< float > &pFloats) |
Compute the determinant of rotation part of the given vector of floats: More... | |
ALMATH_API void | AL::Math::transformInverse (const Transform &pT, Transform &pTOut) |
Return the transform inverse of the given Transform: More... | |
ALMATH_API Transform | AL::Math::transformInverse (const Transform &pT) |
Return the transform inverse of the given Transform: More... | |
ALMATH_API Transform | AL::Math::transformFromRotX (const float pRotX) |
Create a Transform initialize with explicit rotation around x axis: More... | |
ALMATH_API Transform | AL::Math::transformFromRotY (const float pRotY) |
Create a Transform initialize with explicit rotation around y axis: More... | |
ALMATH_API Transform | AL::Math::transformFromRotZ (const float pRotZ) |
Create a Transform initialize with explicit rotation around z axis: More... | |
ALMATH_API Transform | AL::Math::transformFrom3DRotation (const float &pWX, const float &pWY, const float &pWZ) |
Create a Transform initialize with euler angle: H = fromRotZ(pWZ)*fromRotY(pWY)*fromRotX(pWX) More... | |
ALMATH_API Transform | AL::Math::transformFromPosition (const float &pX, const float &pY, const float &pZ) |
Create a Transform initialize with explicit value for translation part: More... | |
ALMATH_API Transform | AL::Math::transformFromPosition (const float &pX, const float &pY, const float &pZ, const float &pWX, const float &pWY, const float &pWZ) |
Create a Transform initialize with explicit value for translation part and euler angle: More... | |
ALMATH_API void | AL::Math::transformInvertInPlace (Transform &pT) |
Inverse the given Transform in place: More... | |
ALMATH_API Transform | AL::Math::pinv (const Transform &pT) |
Alternative name for inverse: return the transform inverse of the given Transform: More... | |
ALMATH_API Transform | AL::Math::transformDiff (const Transform &pT1, const Transform &pT2) |
Compute the Transform between the actual Transform and the one give in argument result: More... | |
ALMATH_API float | AL::Math::transformDistanceSquared (const Transform &pT1, const Transform &pT2) |
Compute the squared distance between the actual Transform and the one give in argument (translation part): More... | |
ALMATH_API float | AL::Math::transformDistance (const Transform &pT1, const Transform &pT2) |
Compute the distance between the actual Transform and the one give in argument: More... | |
ALMATH_API float | AL::Math::norm (const Velocity3D &pVel) |
Compute the norm of a Velocity3D: More... | |
ALMATH_API Velocity3D | AL::Math::normalize (const Velocity3D &pVel) |
Normalize a Velocity3D: More... | |
ALMATH_API float | AL::Math::norm (const Velocity6D &pVel) |
Compute the norm of a Velocity6D: More... | |
ALMATH_API Velocity6D | AL::Math::normalize (const Velocity6D &pVel) |
Normalize a Velocity6D: More... | |
Types classes provide many usefull defintion in robotics field such as homogenous transform matrix, 6D vector of velocty and so on.
typedef std::bitset<6> AL::Math::AXIS_MASK |
Definition of an AXIS_MASK as a bit set.
static const int AXIS_MASK_X = 1
static const int AXIS_MASK_Y = 2
static const int AXIS_MASK_XY = 3
static const int AXIS_MASK_Z = 4
static const int AXIS_MASK_WX = 8
static const int AXIS_MASK_WY = 16
static const int AXIS_MASK_WZ = 32
static const int AXIS_MASK_WYWZ = 48
static const int AXIS_MASK_ALL = 63
static const int AXIS_MASK_VEL = 7
static const int AXIS_MASK_ROT = 56
static const int AXIS_MASK_NONE = 0
static const int AXIS_MASK_PLANEZ = 28
Definition at line 36 of file alaxismask.h.
ALMATH_API void AL::Math::angleAndAxisRotationFromQuaternion | ( | const Quaternion & | pQuaternion, |
float & | pAngle, | ||
float & | pAxisX, | ||
float & | pAxisY, | ||
float & | pAxisZ | ||
) |
Compute angle and axis rotation from a Quaternion.
pQuaternion | the given quaternion |
pAngle | the computed float value for angle in radian around axis rotation |
pAxisX | the computed float value for x value of axis rotation |
pAxisY | the computed float value for y value of axis rotation |
pAxisZ | the computed float value for z value of axis rotation |
ALMATH_API std::vector<float> AL::Math::angleAndAxisRotationFromQuaternion | ( | const Quaternion & | pQuaternion | ) |
Compute angle and axis rotation from a Quaternion.
pQuaternion | the given quaternion |
ALMATH_API void AL::Math::applyRotation | ( | const AL::Math::Rotation & | pRot, |
float & | pX, | ||
float & | pY, | ||
float & | pZ | ||
) |
Apply Rotation to a 3D point.
pRot | the given rotation |
pX | the X position of the 3D point after rotation |
pY | the Y position of the 3D point after rotation |
pZ | the Z position of the 3D point after rotation |
ALMATH_API float AL::Math::crossProduct | ( | const Position2D & | pPos1, |
const Position2D & | pPos2 | ||
) |
Compute the cross Product of two Position2D.
pPos1 | the first Position2D |
pPos2 | the second Position2D |
ALMATH_API void AL::Math::crossProduct | ( | const Position2D & | pPos1, |
const Position2D & | pPos2, | ||
float & | pRes | ||
) |
Compute the cross Product of two Position2D.
pPos1 | the first Position2D |
pPos2 | the second Position2D |
pRes | the float cross product between the two Position2D |
ALMATH_API float AL::Math::determinant | ( | const Rotation & | pRot | ) |
ALMATH_API float AL::Math::determinant | ( | const Transform & | pT | ) |
ALMATH_API float AL::Math::determinant | ( | const std::vector< float > & | pFloats | ) |
Compute the determinant of rotation part of the given vector of floats:
pFloats | the given vector of floats |
ALMATH_API float AL::Math::distance | ( | const Position2D & | pPos1, |
const Position2D & | pPos2 | ||
) |
Compute the distance between two Position2D :
pPos1 | the first Position2D |
pPos2 | the second Position2D |
ALMATH_API float AL::Math::distance | ( | const Position3D & | pPos1, |
const Position3D & | pPos2 | ||
) |
Compute the distance between two Position3D:
pPos1 | the first Position3D |
pPos2 | the second Position3D |
ALMATH_API float AL::Math::distance | ( | const Position6D & | pPos1, |
const Position6D & | pPos2 | ||
) |
Compute the distance of translation part (x, y and z) between two Position6D:
pPos1 | the first Position6D |
pPos2 | the second Position6D |
ALMATH_API float AL::Math::distance | ( | const Pose2D & | pPos1, |
const Pose2D & | pPos2 | ||
) |
ALMATH_API float AL::Math::distanceSquared | ( | const Position2D & | pPos1, |
const Position2D & | pPos2 | ||
) |
Compute the squared distance between two Position2D.
pPos1 | the first Position2D |
pPos2 | the second Position2D |
ALMATH_API float AL::Math::distanceSquared | ( | const Position3D & | pPos1, |
const Position3D & | pPos2 | ||
) |
Compute the squared distance between two Position3D:
pPos1 | the first Position3D |
pPos2 | the second Position3D |
ALMATH_API float AL::Math::distanceSquared | ( | const Position6D & | pPos1, |
const Position6D & | pPos2 | ||
) |
Compute the squared distance of translation part (x, y and z) between two Position6D:
pPos1 | the first Position6D |
pPos2 | the second Position6D |
ALMATH_API float AL::Math::distanceSquared | ( | const Pose2D & | pPos1, |
const Pose2D & | pPos2 | ||
) |
bool AL::Math::Position3D::isOrthogonal | ( | const Position3D & | pPos, |
const float & | pEpsilon = 0.0001f |
||
) | const |
Checks if this Position3D is orthogonal to Position3D pPos
pEpsilon | an optional epsilon distance |
ALMATH_API bool AL::Math::isOrthogonal | ( | const Position3D & | pPos1, |
const Position3D & | pPos2, | ||
const float & | pEpsilon = 0.0001f |
||
) |
Checks if two Position3D are orthogonal
pPos1 | the first Position3D |
pPos2 | the second Position3D |
pEpsilon | an optional epsilon distance |
bool AL::Math::Position3D::isUnitVector | ( | const float & | pEpsilon = 0.0001f | ) | const |
Checks if the norm of the Position3D is near to 1.0
pEpsilon | an optional epsilon distance |
ALMATH_API bool AL::Math::isUnitVector | ( | const Position3D & | pPos, |
const float & | pEpsilon = 0.0001f |
||
) |
Checks if the norm of a Position3D is near to 1.0
pPos | the Position3D |
pEpsilon | an optional epsilon distance |
ALMATH_API float AL::Math::norm | ( | const Rotation3D & | pRot | ) |
Compute the norm of a Rotation3D:
pRot | the given Rotation3D |
ALMATH_API float AL::Math::norm | ( | const Quaternion & | pQua | ) |
Compute the norm of a Quaternion:
pQua | the given Quaternion |
ALMATH_API float AL::Math::norm | ( | const Velocity3D & | pVel | ) |
Compute the norm of a Velocity3D:
pVel | the given Velocity3D |
ALMATH_API float AL::Math::norm | ( | const Velocity6D & | pVel | ) |
Compute the norm of a Velocity6D:
pVel | the given Velocity6D |
ALMATH_API float AL::Math::norm | ( | const Position2D & | pPos | ) |
Compute the norm of a Position2D.
pPos | the given Position2D |
ALMATH_API float AL::Math::norm | ( | const Position3D & | pPos | ) |
Compute the norm of a Position3D:
pPos | the given Position3D |
ALMATH_API float AL::Math::norm | ( | const Position6D & | pPos | ) |
Compute the norm of a Position6D:
pPos | the given Position6D |
ALMATH_API float AL::Math::norm | ( | const Transform & | pT | ) |
ALMATH_API Quaternion AL::Math::normalize | ( | const Quaternion & | pQua | ) |
ALMATH_API Velocity3D AL::Math::normalize | ( | const Velocity3D & | pVel | ) |
ALMATH_API Velocity6D AL::Math::normalize | ( | const Velocity6D & | pVel | ) |
ALMATH_API Position2D AL::Math::normalize | ( | const Position2D & | pPos | ) |
ALMATH_API Position3D AL::Math::normalize | ( | const Position3D & | pPos | ) |
ALMATH_API Position6D AL::Math::normalize | ( | const Position6D & | pPos | ) |
ALMATH_API void AL::Math::normalizeRotation | ( | Rotation & | pRot | ) |
ALMATH_API void AL::Math::normalizeTransform | ( | Transform & | pT | ) |
Normalize data, if needed, to have transform properties.
pT | the given Transform |
ALMATH_API std::ostream& AL::Math::operator<< | ( | std::ostream & | pStream, |
const Pose2D & | pPos | ||
) |
ALMATH_API std::ostream& AL::Math::operator<< | ( | std::ostream & | pStream, |
const Position2D & | pPos | ||
) |
Overloading of operator << for Position2D.
pStream | the given ostream |
pPos | the given Position2D |
ALMATH_API std::ostream& AL::Math::operator<< | ( | std::ostream & | pStream, |
const Position3D & | pPos | ||
) |
Overloading of operator << for Position3D.
pStream | the given ostream |
pPos | the given Position3D |
ALMATH_API std::ostream& AL::Math::operator<< | ( | std::ostream & | pStream, |
const Position6D & | pPos | ||
) |
Overloading of operator << for Position6D.
pStream | the given ostream |
pPos | the given Position6D |
ALMATH_API std::ostream& AL::Math::operator<< | ( | std::ostream & | pStream, |
const PositionAndVelocity & | pPosVel | ||
) |
Overloading of operator << for PositionAndVelocity.
pStream | the given ostream |
pPosVel | the given PositionAndVelocity |
ALMATH_API std::ostream& AL::Math::operator<< | ( | std::ostream & | pStream, |
const Rotation & | pRot | ||
) |
ALMATH_API std::ostream& AL::Math::operator<< | ( | std::ostream & | pStream, |
const Rotation3D & | pRot | ||
) |
Overloading of operator << for Rotation3D.
pStream | the given ostream |
pRot | the given Rotation3D |
ALMATH_API std::ostream& AL::Math::operator<< | ( | std::ostream & | pStream, |
const Transform & | pT | ||
) |
ALMATH_API std::ostream& AL::Math::operator<< | ( | std::ostream & | pStream, |
const TransformAndVelocity6D & | pTV | ||
) |
Overloading of operator << for TransformAndVelocity6D.
pStream | the given ostream |
pTV | the given TransformAndVelocity6D |
ALMATH_API std::ostream& AL::Math::operator<< | ( | std::ostream & | pStream, |
const Velocity3D & | pVel | ||
) |
Overloading of operator << for Velocity3D.
pStream | the given ostream |
pVel | the given Velocity3D |
ALMATH_API std::ostream& AL::Math::operator<< | ( | std::ostream & | pStream, |
const Quaternion & | pQua | ||
) |
Overloading of operator << for Quaternion.
pStream | the given ostream |
pQua | the given Quaternion |
ALMATH_API std::ostream& AL::Math::operator<< | ( | std::ostream & | pStream, |
const Velocity6D & | pVel | ||
) |
Overloading of operator << for Velocity6D.
pStream | the given ostream |
pVel | the given Velocity6D |
ALMATH_API Pose2D AL::Math::pinv | ( | const Pose2D & | pPos | ) |
ALMATH_API Transform AL::Math::pinv | ( | const Transform & | pT | ) |
ALMATH_API Pose2D AL::Math::pose2dDiff | ( | const Pose2D & | pPos1, |
const Pose2D & | pPos2 | ||
) |
ALMATH_API Pose2D AL::Math::pose2DInverse | ( | const Pose2D & | pPos | ) |
ALMATH_API void AL::Math::pose2DInverse | ( | const Pose2D & | pPos, |
Pose2D & | pRes | ||
) |
ALMATH_API void AL::Math::pose2dInvertInPlace | ( | Pose2D & | pPos | ) |
ALMATH_API Quaternion AL::Math::quaternionFromAngleAndAxisRotation | ( | const float | pAngle, |
const float | pAxisX, | ||
const float | pAxisY, | ||
const float | pAxisZ | ||
) |
Create a Quaternion initialized with explicit angle and axis rotation.
pAngle | the float value for angle in radian around axis rotation |
pAxisX | the float value for x value of axis rotation |
pAxisY | the float value for y value of axis rotation |
pAxisZ | the float value for z value of axis rotation |
ALMATH_API void AL::Math::quaternionInverse | ( | const Quaternion & | pQua, |
Quaternion & | pQuaOut | ||
) |
Return the quaternion inverse of the given Quaternion:
pQua | the given Quaternion |
pQuaOut | the inverse of the given Quaternion |
ALMATH_API Quaternion AL::Math::quaternionInverse | ( | const Quaternion & | pQua | ) |
Return the quaternion inverse of the given Quaternion
pQua | the given Quaternion |
ALMATH_API Rotation AL::Math::rotationFrom3DRotation | ( | const float & | pWX, |
const float & | pWY, | ||
const float & | pWZ | ||
) |
ALMATH_API Rotation AL::Math::rotationFromAngleDirection | ( | const float | pAngle, |
const float | pX, | ||
const float | pY, | ||
const float | pZ | ||
) |
Creates a 3*3 Rotation Matrix from a an angle and a normalized direction( |pX, pY, pZ| = 1).
pAngle | the float value of angle in radian |
pX | the X direction of the vector of the rotation |
pY | the Y direction of the vector of the rotation |
pZ | the Z direction of the vector of the rotation |
ALMATH_API Rotation AL::Math::rotationFromQuaternion | ( | const float | pA, |
const float | pB, | ||
const float | pC, | ||
const float | pD | ||
) |
Creates a 3*3 Rotation Matrix from a normalized quaternion ( |a + bi + cj + dk| = 1).
pA | Coefficient a of the normalized quaternion |
pB | Coefficient b of the normalized quaternion |
pC | Coefficient c of the normalized quaternion |
pD | Coefficient d of the normalized quaternion |
ALMATH_API Rotation AL::Math::rotationFromRotX | ( | const float | pRotX | ) |
ALMATH_API Rotation AL::Math::rotationFromRotY | ( | const float | pRotY | ) |
ALMATH_API Rotation AL::Math::rotationFromRotZ | ( | const float | pRotZ | ) |
ALMATH_API std::string AL::Math::toSpaceSeparated | ( | const Position3D & | pPos | ) |
ALMATH_API std::string AL::Math::toSpaceSeparated | ( | const Rotation3D & | pPos | ) |
ALMATH_API std::string AL::Math::toSpaceSeparated | ( | const Velocity6D & | pVel | ) |
ALMATH_API std::string AL::Math::toSpaceSeparated | ( | const Transform & | pT | ) |
ALMATH_API std::string AL::Math::toSpaceSeparated | ( | const Position6D & | pPos | ) |
ALMATH_API std::string AL::Math::toSpaceSeparated | ( | const Quaternion & | pQuat | ) |
Create a string of Quaternion.
<param name="pQuat> the given Quaternion
ALMATH_API Transform AL::Math::transformDiff | ( | const Transform & | pT1, |
const Transform & | pT2 | ||
) |
ALMATH_API float AL::Math::transformDistance | ( | const Transform & | pT1, |
const Transform & | pT2 | ||
) |
ALMATH_API float AL::Math::transformDistanceSquared | ( | const Transform & | pT1, |
const Transform & | pT2 | ||
) |
ALMATH_API Transform AL::Math::transformFrom3DRotation | ( | const float & | pWX, |
const float & | pWY, | ||
const float & | pWZ | ||
) |
ALMATH_API Transform AL::Math::transformFromPosition | ( | const float & | pX, |
const float & | pY, | ||
const float & | pZ | ||
) |
ALMATH_API Transform AL::Math::transformFromPosition | ( | const float & | pX, |
const float & | pY, | ||
const float & | pZ, | ||
const float & | pWX, | ||
const float & | pWY, | ||
const float & | pWZ | ||
) |
Create a Transform initialize with explicit value for translation part and euler angle:
H = fromRotZ(pWZ)*fromRotY(pWY)*fromRotX(pWX)
H.r1_c4 = pX
H.r2_c4 = pY
H.r3_c4 = pZ
pX | the float value for translation axis x in meter (r1_c4) |
pY | the float value for translation axis y in meter (r2_c4) |
pZ | the float value for translation axis z in meter (r3_c4) |
pWX | the float value for euler angle x in radian |
pWY | the float value for euler angle y in radian |
pWZ | the float value for euler angle z in radian |
ALMATH_API Transform AL::Math::transformFromRotX | ( | const float | pRotX | ) |
ALMATH_API Transform AL::Math::transformFromRotY | ( | const float | pRotY | ) |
ALMATH_API Transform AL::Math::transformFromRotZ | ( | const float | pRotZ | ) |
ALMATH_API void AL::Math::transformInverse | ( | const Transform & | pT, |
Transform & | pTOut | ||
) |
ALMATH_API Transform AL::Math::transformInverse | ( | const Transform & | pT | ) |
ALMATH_API void AL::Math::transformInvertInPlace | ( | Transform & | pT | ) |
ALMATH_API void AL::Math::transformPreMultiply | ( | const Transform & | pT, |
Transform & | pTOut | ||
) |
ALMATH_API void AL::Math::transformToFloatVector | ( | const Transform & | pT, |
std::vector< float > & | pTOut | ||
) |
ALMATH_API std::vector<float> AL::Math::transformToFloatVector | ( | const Transform & | pT | ) |
ALMATH_API Rotation AL::Math::transpose | ( | const Rotation & | pRot | ) |
Compute the transpose rotation of the one given in argument:
pRot | the rotation matrix |