Represents a line segment in 2D space.
Definition edge.hpp:41
Edge(Point p1, Point p2, float w)
Constructs an Edge object with specified start and end points and a weight.
Definition edge.hpp:55
float length()
Computes the length of the edge.
Definition edge.hpp:78
Point p2
The end point of the edge.
Definition edge.hpp:44
Edge(Point p1, Point p2)
Constructs an Edge object with specified start and end points and a default weight of 0.
Definition edge.hpp:66
Point p1
The start point of the edge.
Definition edge.hpp:43
float w
A weight associated with the edge.
Definition edge.hpp:45
A class to represent and manipulate 2D points that can carry a value.
Definition point.hpp:38
Definition algebra.hpp:28
float distance(const Point &p1, const Point &p2)
Calculates the distance between two points.
Definition points.cpp:93
Defines a class for representing and manipulating 3D points.