#include <Karto.h>
Public Member Functions | |
kt_double | GetHeading () const |
const Vector2< kt_double > & | GetPosition () const |
kt_double | GetX () const |
kt_double | GetY () const |
kt_bool | operator!= (const Pose2 &rOther) const |
Pose2 | operator+ (const Pose2 &rOther) const |
void | operator+= (const Pose2 &rOther) |
Pose2 | operator- (const Pose2 &rOther) const |
Pose2 & | operator= (const Pose2 &rOther) |
kt_bool | operator== (const Pose2 &rOther) const |
Pose2 () | |
Pose2 (const Vector2< kt_double > &rPosition, kt_double heading) | |
Pose2 (kt_double x, kt_double y, kt_double heading) | |
Pose2 (const Pose3 &rPose) | |
Pose2 (const Pose2 &rOther) | |
void | SetHeading (kt_double heading) |
void | SetPosition (const Vector2< kt_double > &rPosition) |
void | SetX (kt_double x) |
void | SetY (kt_double y) |
kt_double | SquaredDistance (const Pose2 &rOther) const |
Private Attributes | |
kt_double | m_Heading |
Vector2< kt_double > | m_Position |
Friends | |
std::ostream & | operator<< (std::ostream &rStream, const Pose2 &rPose) |
std::istream & | operator>> (std::istream &rStream, const Pose2 &) |
Defines a position (x, y) in 2-dimensional space and heading.
karto::Pose2::Pose2 | ( | ) | [inline] |
karto::Pose2::Pose2 | ( | const Vector2< kt_double > & | rPosition, |
kt_double | heading | ||
) | [inline] |
karto::Pose2::Pose2 | ( | kt_double | x, |
kt_double | y, | ||
kt_double | heading | ||
) | [inline] |
karto::Pose2::Pose2 | ( | const Pose2 & | rOther | ) | [inline] |
kt_double karto::Pose2::GetHeading | ( | ) | const [inline] |
const Vector2<kt_double>& karto::Pose2::GetPosition | ( | ) | const [inline] |
kt_double karto::Pose2::GetX | ( | ) | const [inline] |
kt_double karto::Pose2::GetY | ( | ) | const [inline] |
void karto::Pose2::operator+= | ( | const Pose2 & | rOther | ) | [inline] |
void karto::Pose2::SetHeading | ( | kt_double | heading | ) | [inline] |
void karto::Pose2::SetPosition | ( | const Vector2< kt_double > & | rPosition | ) | [inline] |
void karto::Pose2::SetX | ( | kt_double | x | ) | [inline] |
void karto::Pose2::SetY | ( | kt_double | y | ) | [inline] |
kt_double karto::Pose2::SquaredDistance | ( | const Pose2 & | rOther | ) | const [inline] |
std::ostream& operator<< | ( | std::ostream & | rStream, |
const Pose2 & | rPose | ||
) | [friend] |
std::istream& operator>> | ( | std::istream & | rStream, |
const Pose2 & | |||
) | [friend] |
kt_double karto::Pose2::m_Heading [private] |
Vector2<kt_double> karto::Pose2::m_Position [private] |