20#ifndef LIBREPCB_CORE_VERTEX_H
21#define LIBREPCB_CORE_VERTEX_H
26#include "../types/angle.h"
27#include "../types/point.h"
100inline std::size_t
qHash(
const Vertex& key, std::size_t seed = 0) noexcept {
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
static Angle deg0() noexcept
0 degrees
Definition angle.h:349
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition point.h:78
The SExpression class.
Definition sexpression.h:69
The Vertex class.
Definition vertex.h:43
Angle mAngle
Definition vertex.h:90
const Point & getPos() const noexcept
Definition vertex.h:55
Vertex(const Point &pos, const Angle &angle=Angle::deg0()) noexcept
Definition vertex.h:49
bool operator!=(const Vertex &rhs) const noexcept
Definition vertex.h:74
Vertex() noexcept
Definition vertex.h:46
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition vertex.cpp:47
bool operator==(const Vertex &rhs) const noexcept
Definition vertex.cpp:62
void setAngle(const Angle &angle) noexcept
Definition vertex.h:60
~Vertex() noexcept
Definition vertex.h:52
void setPos(const Point &pos) noexcept
Definition vertex.h:59
Vertex(const Vertex &other) noexcept
Definition vertex.h:47
bool operator<(const Vertex &rhs) const noexcept
The "<" operator to compare two librepcb::Vertex objects.
Definition vertex.cpp:66
Vertex & operator=(const Vertex &rhs) noexcept
Definition vertex.cpp:56
Point mPos
Definition vertex.h:89
const Angle & getAngle() const noexcept
Definition vertex.h:56
Definition occmodel.cpp:76
std::size_t qHash(const AttributeKey &key, std::size_t seed=0) noexcept
Definition attributekey.h:118
QDataStream & operator<<(QDataStream &stream, const AttributeKey &obj)
Definition attributekey.h:108