Search Grid
AUVSI Search Path Algorithm 2019-2021
Public Member Functions | Public Attributes | List of all members
Coord Struct Reference

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
 

Detailed Description

Simple representation of a 2D coordinate.

Member Function Documentation

◆ str()

std::string Coord::str ( ) const
inline

Format the coordinate as a string.

Returns
a string representation of the Coord

The documentation for this struct was generated from the following file: