-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLine.h
44 lines (31 loc) · 1.08 KB
/
Line.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//-----------------------------------------------------------
// File : Line.h
// Class: COP 3003, Fall 2022
// Devl : Katarya Johnson-Williams
// Desc : Declaration of a Line class object
//---------------------------------------------------------
// HEADER GUARD
#ifndef PROJECT_SHAPES_CALCULATOR_LINE_H
#define PROJECT_SHAPES_CALCULATOR_LINE_H
#include "Shape.h"
class Line: public Shape {
public:
// Constructors
//---------------------------------------------------------
Line(); // default constructor
Line(Point pointOne, Point pointTwo);
// Accessors
//---------------------------------------------------------
Point getPointOne();
void setPointOne(Point point);
Point getPointTwo();
void setPointTwo(Point point);
// Methods
//---------------------------------------------------------
float calculateSlope();
float calculateAngle();
float calculateLength();
float calculateYIntercept();
virtual std::string shapeProperties();
};
#endif //PROJECT_SHAPES_CALCULATOR_LINE_H