This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
neofx-zoomedit/Edge.h

25 lines
464 B
C
Raw Normal View History

2008-02-15 11:01:04 +00:00
#ifndef EDGE_H_
#define EDGE_H_
#include "LevelVertex.h"
#include "Line.h"
class Edge {
private:
LevelVertex vertex1, vertex2;
public:
Edge(const LevelVertex &v1, const LevelVertex &v2)
: vertex1(v1), vertex2(v2) {}
const LevelVertex& getVertex1() const {return vertex1;}
const LevelVertex& getVertex2() const {return vertex2;}
Line toLine() const {
return Line(*vertex1, *vertex2);
}
};
#endif /*EDGE_H_*/