#include <Geometry.h>
Public Member Functions | |
kt_double | AngleTo (const Vector2d &rVector) const |
kt_double | GetHeading () const |
const Vector2d & | 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 Vector2d &rPosition, kt_double heading=0) | |
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 Vector2d &rPosition) |
void | SetX (kt_double x) |
void | SetY (kt_double y) |
kt_double | SquaredDistance (const Pose2 &rOther) const |
const String | ToString (kt_int32u precision=4) const |
Private Attributes | |
kt_double | m_Heading |
Vector2d | m_Position |
Friends | |
KARTO_FORCEINLINE std::ostream & | operator<< (std::ostream &rStream, const Pose2 &rPose) |
Defines a pose (position and heading) in 2-dimensional space.
Definition at line 2182 of file Geometry.h.
karto::Pose2::Pose2 | ( | ) |
Pose at the origin with a heading of 0
Definition at line 28 of file Geometry.cpp.
Pose with given position and heading
rPosition | position |
heading | heading |
Definition at line 33 of file Geometry.cpp.
Pose with given position and heading
x | x-coordinate |
y | y-coordinate |
heading | heading |
Definition at line 39 of file Geometry.cpp.
karto::Pose2::Pose2 | ( | const Pose3 & | rPose | ) |
Pose2 object from a Pose3 (ignores z-coordinate)
Definition at line 45 of file Geometry.cpp.
karto::Pose2::Pose2 | ( | const Pose2 & | rOther | ) |
Copy constructor
Definition at line 54 of file Geometry.cpp.
Return the angle from this pose to the given vector
rVector | vector |
Definition at line 2303 of file Geometry.h.
|
inline |
Returns the heading of the pose (in radians)
Definition at line 2274 of file Geometry.h.
|
inline |
|
inline |
Returns the x-coordinate
Definition at line 2220 of file Geometry.h.
|
inline |
Returns the y-coordinate
Definition at line 2238 of file Geometry.h.
Inequality operator
Definition at line 2348 of file Geometry.h.
Pose2 addition
Definition at line 2365 of file Geometry.h.
|
inline |
In-place Pose2 addition
Definition at line 2356 of file Geometry.h.
Pose2 subtraction
Definition at line 2373 of file Geometry.h.
Assignment operator
Definition at line 2329 of file Geometry.h.
Equality operator
Definition at line 2340 of file Geometry.h.
|
inline |
|
inline |
|
inline |
|
inline |
Return the squared distance between this pose and the given pose
rOther | pose |
Definition at line 2293 of file Geometry.h.
Returns a string representation of this pose
precision | precision, default 4 |
Definition at line 2314 of file Geometry.h.
|
friend |
Write this pose onto output stream
Definition at line 2381 of file Geometry.h.
|
private |
Definition at line 2390 of file Geometry.h.
|
private |
Definition at line 2388 of file Geometry.h.