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.
#include <mrpt/otherlibs/octomap/math/Vector3.h>
Public Member Functions | |
| Vector3 () | |
| Default constructor. More... | |
| Vector3 (const Vector3 &other) | |
| Copy constructor. More... | |
| Vector3 (float x, float y, float z) | |
| Constructor. More... | |
| Vector3 & | operator= (const Vector3 &other) |
| Assignment operator. More... | |
| Vector3 | cross (const Vector3 &other) const |
| Three-dimensional vector (cross) product. More... | |
| double | dot (const Vector3 &other) const |
| const float & | operator() (unsigned int i) const |
| float & | operator() (unsigned int i) |
| float & | x () |
| float & | y () |
| float & | z () |
| const float & | x () const |
| const float & | y () const |
| const float & | z () const |
| float & | roll () |
| float & | pitch () |
| float & | yaw () |
| const float & | roll () const |
| const float & | pitch () const |
| const float & | yaw () const |
| Vector3 | operator- () const |
| Vector3 | operator+ (const Vector3 &other) const |
| Vector3 | operator* (float x) const |
| Vector3 | operator- (const Vector3 &other) const |
| void | operator+= (const Vector3 &other) |
| void | operator-= (const Vector3 &other) |
| void | operator/= (float x) |
| void | operator*= (float x) |
| bool | operator== (const Vector3 &other) const |
| double | norm () const |
| Vector3 & | normalize () |
| Vector3 | normalized () const |
| double | angleTo (const Vector3 &other) const |
| double | distance (const Vector3 &other) const |
| double | distanceXY (const Vector3 &other) const |
| Vector3 & | rotate_IP (double roll, double pitch, double yaw) |
| std::istream & | read (std::istream &s) |
| std::ostream & | write (std::ostream &s) const |
| std::istream & | readBinary (std::istream &s) |
| std::ostream & | writeBinary (std::ostream &s) const |
Protected Attributes | |
| float | data [3] |
|
inline |
|
inline |
|
inline |
Definition at line 294 of file Vector3.h.
References mrpt::math::norm(), and norm().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 281 of file Vector3.h.
References mrpt::math::norm().
Referenced by normalized().
|
inline |
Definition at line 288 of file Vector3.h.
References normalize().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| std::istream& octomath::Vector3::read | ( | std::istream & | s | ) |
| std::istream& octomath::Vector3::readBinary | ( | std::istream & | s | ) |
| Vector3& octomath::Vector3::rotate_IP | ( | double | roll, |
| double | pitch, | ||
| double | yaw | ||
| ) |
| std::ostream& octomath::Vector3::write | ( | std::ostream & | s | ) | const |
| std::ostream& octomath::Vector3::writeBinary | ( | std::ostream & | s | ) | const |
|
inline |
Definition at line 145 of file Vector3.h.
Referenced by mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::castRay(), cross(), distance(), distanceXY(), and dot().
|
inline |
Definition at line 150 of file Vector3.h.
Referenced by mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::castRay(), cross(), distance(), distanceXY(), and dot().
|
inline |
Definition at line 155 of file Vector3.h.
Referenced by mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::castRay(), cross(), distance(), and dot().
| Page generated by Doxygen 1.8.9.1 for MRPT 1.3.2 SVN:Unversioned directory at Thu Dec 10 00:07:55 UTC 2015 |