|
Search Grid
AUVSI Search Path Algorithm 2019-2021
|
Simple representation of a 2D coordinate. More...
Public Member Functions | |
| Coord (float_type xCoord=0, float_type yCoord=0) | |
| Create a new Coord. | |
| std::string | str () const |
| Format the coordinate as a string. More... | |
| bool | operator== (const Coord &op) const |
| Overloaded == operator. | |
| bool | operator!= (const Coord &op) const |
| Overloaded != operator. | |
| Coord | operator+ (const Coord &op) const |
| Overloaded + operator. | |
| Coord | operator- (const Coord &op) const |
| Overloaded - operator. | |
| float_type | operator* (const Coord &op) const |
| Computes the dot product of two vectors. | |
| Coord | operator* (float_type mult) const |
| Scalar multiplication. | |
| float_type | vectorLength () const |
| Return length of vector from origin to the coordinate. | |
Public Attributes | |
| float_type | x |
| The X and Y values of the coordinate. | |
| float_type | y |
Simple representation of a 2D coordinate.
|
inline |
Format the coordinate as a string.