|
gucoordinates
|
A cartesian_coordinate is a general coordinate for representing positions on a tow dimensional plane. More...
#include <cartesian_coordinate.h>


Public Attributes | |
| millimetres_t | x |
| The x coordinate of the position in centimetres. More... | |
| millimetres_t | y |
| The y coordinate of the position in centimetres. More... | |
A cartesian_coordinate is a general coordinate for representing positions on a tow dimensional plane.
This coordinate describes the position through the x and y axes. The gu_cartesian_coordinate is generally used for the coordinate system of the soccer field. This describes the world (or more specifically the field) in terms of the location of each side of the soccer field. The home side is in the west, whereas the away side is in the east. Because of this,it may not be a good idea to repurpose this coordinate for use in other applications since the x and y coordinates of this coordinate must be in centimetres.
When describing objects that face in certain directions it is important to disregard this coordinate and instead use gu_field_coordinate.
Definition at line 84 of file cartesian_coordinate.h.
| millimetres_t gu_cartesian_coordinate::x |
The x coordinate of the position in centimetres.
Definition at line 89 of file cartesian_coordinate.h.
Referenced by angle_between_points(), CGTEST::CartesianCoordinateCPPTests::cchange(), CGTEST::FieldCoordinateCPPTests::cchange(), distance_between_points(), gu_cartesian_coordinate_equals(), rr_coord_to_cartesian_coord_from_source(), GU::CartesianCoordinate::set_x(), CGTEST::TEST_F(), and GU::CartesianCoordinate::x().
| millimetres_t gu_cartesian_coordinate::y |
The y coordinate of the position in centimetres.
Definition at line 94 of file cartesian_coordinate.h.
Referenced by angle_between_points(), CGTEST::CartesianCoordinateCPPTests::cchange(), CGTEST::FieldCoordinateCPPTests::cchange(), distance_between_points(), gu_cartesian_coordinate_equals(), rr_coord_to_cartesian_coord_from_source(), GU::CartesianCoordinate::set_y(), CGTEST::TEST_F(), and GU::CartesianCoordinate::y().