Thunderbots Project
Loading...
Searching...
No Matches
line.h
1#pragma once
2
3#include "software/geom/point.h"
4#include "software/geom/vector.h"
5
9class Line final
10{
11 public:
15 struct Coeffs
16 {
17 double a;
18 double b;
19 double c;
20 };
21
22 Line() = delete;
23
30 explicit Line(const Point& first, const Point& second);
31
37 const Coeffs& getCoeffs() const;
38
45
49 void swapXY();
50
51 private:
52 // Coefficients for a line
53 Coeffs coeffs;
54};
Definition line.h:10
void swapXY()
Definition line.cpp:24
Vector toNormalUnitVector() const
Definition line.cpp:19
const Coeffs & getCoeffs() const
Definition line.cpp:14
Definition point.h:14
Definition vector.h:12
Definition line.h:16