Thunderbots Project
Loading...
Searching...
No Matches
Line Class Referencefinal

#include <line.h>

Classes

struct  Coeffs
 

Public Member Functions

 Line (const Point &first, const Point &second)
 
const CoeffsgetCoeffs () const
 
Vector toNormalUnitVector () const
 
void swapXY ()
 

Detailed Description

A 2D line.

Constructor & Destructor Documentation

◆ Line()

Line ( const Point first,
const Point second 
)
explicit

Creates a Line from two Points

Parameters
firstthe first Point
secondthe second Point

Member Function Documentation

◆ getCoeffs()

const Line::Coeffs & getCoeffs ( ) const

Returns the coefficient struct

Returns
the coefficient struct

◆ swapXY()

void swapXY ( )

Reflects the Line about the line y = x

◆ toNormalUnitVector()

Vector toNormalUnitVector ( ) const

Returns the normal unit vector of the Line

Returns
the normal unit vector of the Line

The documentation for this class was generated from the following files: