opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
named_landmark.h
Go to the documentation of this file.
1#pragma once
2
4
6
7#include <string>
8
9namespace opyn
10{
11 struct NamedLandmark final {
12 // The name of this landmark.
13 std::string name;
14
15 // The position of the landmark in its caller-specified coordinate system.
17
18 friend bool operator==(const NamedLandmark&, const NamedLandmark&) = default;
19 friend bool operator==(const Landmark& lhs, const NamedLandmark& rhs)
20 {
21 return lhs.maybeName == rhs.name && lhs.position == rhs.position;
22 }
23 };
24}
Definition component_registry.h:14
Definition landmark.h:10
osc::Vector3 position
Definition landmark.h:15
std::optional< std::string > maybeName
Definition landmark.h:12
Definition named_landmark.h:11
friend bool operator==(const NamedLandmark &, const NamedLandmark &)=default
friend bool operator==(const Landmark &lhs, const NamedLandmark &rhs)
Definition named_landmark.h:19
std::string name
Definition named_landmark.h:13
osc::Vector3 position
Definition named_landmark.h:16