octomap
1.9.7
|
This class represents a three-dimensional vector. More...
Public Member Functions | |
double | angleTo (const Vector3 &other) const |
Vector3 | cross (const Vector3 &other) const |
Three-dimensional vector (cross) product. More... | |
double | distance (const Vector3 &other) const |
double | distanceXY (const Vector3 &other) const |
double | dot (const Vector3 &other) const |
dot product More... | |
double | norm () const |
double | norm_sq () const |
Vector3 & | normalize () |
normalizes this vector, so that it has norm=1.0 More... | |
Vector3 | normalized () const |
float & | operator() (unsigned int i) |
const float & | operator() (unsigned int i) const |
Vector3 | operator* (float x) const |
void | operator*= (float x) |
Vector3 | operator+ (const Vector3 &other) const |
void | operator+= (const Vector3 &other) |
Vector3 | operator- () const |
Vector3 | operator- (const Vector3 &other) const |
void | operator-= (const Vector3 &other) |
void | operator/= (float x) |
Vector3 & | operator= (const Vector3 &other) |
Assignment operator. More... | |
bool | operator== (const Vector3 &other) const |
float & | pitch () |
const float & | pitch () const |
std::istream & | read (std::istream &s) |
std::istream & | readBinary (std::istream &s) |
float & | roll () |
const float & | roll () const |
Vector3 & | rotate_IP (double roll, double pitch, double yaw) |
Vector3 () | |
Default constructor. More... | |
Vector3 (const Vector3 &other) | |
Copy constructor. More... | |
Vector3 (float x, float y, float z) | |
Constructor. More... | |
std::ostream & | write (std::ostream &s) const |
std::ostream & | writeBinary (std::ostream &s) const |
float & | x () |
const float & | x () const |
float & | y () |
const float & | y () const |
float & | yaw () |
const float & | yaw () const |
float & | z () |
const float & | z () const |
Protected Attributes | |
float | data [3] |
This class represents a three-dimensional vector.
The three-dimensional vector can be used to represent a translation in three-dimensional space or to represent the attitude of an object using Euler angle.
|
inline |
|
inline |
|
inline |
Three-dimensional vector (cross) product.
Calculates the tree-dimensional cross product, which represents the vector orthogonal to the plane defined by this and other.
References Vector3(), x(), y(), and z().
Referenced by octomap::OccupancyOcTreeBase< OcTreeNodeStamped >::getNormals().
|
inline |
Referenced by octomap::MapCollection< MAPNODE >::castRay().
|
inline |
dot product
Referenced by angleTo(), and octomap::OccupancyOcTreeBase< OcTreeNodeStamped >::getRayIntersection().
|
inline |
References norm_sq().
Referenced by angleTo(), octomap::OcTreeBaseImpl< ColorOcTreeNode, AbstractOccupancyOcTree >::computeRayKeys(), and normalize().
|
inline |
|
inline |
normalizes this vector, so that it has norm=1.0
References norm().
Referenced by octomap::OccupancyOcTreeBase< OcTreeNodeStamped >::getNormals(), and normalized().
|
inline |
References normalize().
Referenced by octomap::OccupancyOcTreeBase< OcTreeNodeStamped >::castRay().
|
inline |
References data.
|
inline |
References data.
Referenced by pitch(), readBinary(), roll(), writeBinary(), x(), y(), yaw(), and z().
|
inline |
|
inline |
References operator()().
Referenced by octomath::Quaternion::Quaternion(), and rotate_IP().
|
inline |
References operator()().
std::istream & octomath::Vector3::read | ( | std::istream & | s | ) |
Referenced by octomath::Pose6D::read(), and octomap::ScanNode::readPoseASCII().
std::istream & octomath::Vector3::readBinary | ( | std::istream & | s | ) |
References operator()().
Referenced by octomap::Pointcloud::readBinary(), and octomath::Pose6D::readBinary().
|
inline |
References operator()().
Referenced by octomath::Quaternion::Quaternion(), and rotate_IP().
|
inline |
References operator()().
Vector3 & octomath::Vector3::rotate_IP | ( | double | roll, |
double | pitch, | ||
double | yaw | ||
) |
std::ostream & octomath::Vector3::write | ( | std::ostream & | s | ) | const |
Referenced by octomath::Pose6D::write(), and octomap::ScanNode::writePoseASCII().
std::ostream & octomath::Vector3::writeBinary | ( | std::ostream & | s | ) | const |
References operator()().
Referenced by octomath::Pose6D::writeBinary().
|
inline |
References operator()().
Referenced by octomap::MapCollection< MAPNODE >::castRay(), cross(), distance(), distanceXY(), dot(), generateSphereTree(), octomap::OcTreeBaseImpl< ColorOcTreeNode, AbstractOccupancyOcTree >::getUnknownLeafCenters(), octomap::OccupancyOcTreeBase< OcTreeNodeStamped >::inBBX(), main(), norm_sq(), operator*(), operator*=(), operator/=(), octomath::operator<<(), octomath::Quaternion::Quaternion(), rotate_IP(), and Vector3().
|
inline |
References operator()().
|
inline |
References operator()().
Referenced by octomap::MapCollection< MAPNODE >::castRay(), cross(), distance(), distanceXY(), dot(), octomap::OcTreeBaseImpl< ColorOcTreeNode, AbstractOccupancyOcTree >::getUnknownLeafCenters(), octomap::OccupancyOcTreeBase< OcTreeNodeStamped >::inBBX(), main(), norm_sq(), octomath::operator<<(), octomath::Quaternion::Quaternion(), rotate_IP(), and Vector3().
|
inline |
References operator()().
|
inline |
References operator()().
Referenced by octomath::Quaternion::Quaternion(), and rotate_IP().
|
inline |
References operator()().
|
inline |
References operator()().
Referenced by octomap::MapCollection< MAPNODE >::castRay(), cross(), distance(), dot(), octomap::OcTreeBaseImpl< ColorOcTreeNode, AbstractOccupancyOcTree >::getUnknownLeafCenters(), octomap::OccupancyOcTreeBase< OcTreeNodeStamped >::inBBX(), main(), norm_sq(), octomath::operator<<(), octomath::Quaternion::Quaternion(), rotate_IP(), and Vector3().
|
inline |
References operator()().
|
protected |
Referenced by operator()(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator=(), and Vector3().