-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeometry.h
28 lines (17 loc) · 882 Bytes
/
geometry.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
#pragma once
#ifndef GEOMETRY
#define GEOMETRY
#include <cmath>
#define _USE_MATH_DEFINES
#include "Point.h"
#include "Vector.h"
#include "Segment.h"
double distance_point_to_point(const Point& first_point, const Point& second_point);
double distance_point_to_line(const Point& point, const Point& first_line_point, const Point& second_line_point);
double distance_point_to_line(const Point& point, const Segment& segment);
double distance_point_to_line(const Point& point, const Vector& vector);
double cos_angle_line_to_line(const Vector& first_line, const Vector& second_line);
double cos_angle_line_to_line(const Segment& first_line, const Segment& second_line);
double cos_angle_line_to_line(const Point& angle_point, const Point& first_line_point, const Point& second_line_point);
double cos_angle_line_to_line(const Point& angle_point, const Segment& line);
#endif