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

Representation of a span in Vertex-Edge form. More...

Public Member Functions

 Span (Coord vert, Edge edge)
 Constructor.
 
float_type length () const
 Get the length of the span. More...
 
float_type theta () const
 Get the angle of the span from the horizontal. More...
 
float_type operator+ (const Span &op) const
 Add up the lengths of two spans. More...
 

Public Attributes

Coord v
 The antipodal vertex of the span.
 
Edge e
 The edge component of the span.
 

Detailed Description

Representation of a span in Vertex-Edge form.

Member Function Documentation

◆ length()

float_type Span::length ( ) const
inline

Get the length of the span.

Returns
the length of the span
See also
float_type

◆ operator+()

float_type Span::operator+ ( const Span op) const
inline

Add up the lengths of two spans.

Returns
the sum of lengths

◆ theta()

float_type Span::theta ( ) const
inline

Get the angle of the span from the horizontal.

Returns
the angle of the span in radians
See also
float_type

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