7using namespace Tempest;
9static std::string
upcaseof(std::string_view src) {
10 auto ret = std::string(src);
12 i=
char(std::toupper(i));
20 : pos(dat.position.x, dat.position.y, dat.position.z),
21 dir(dat.direction.x, dat.direction.y, dat.direction.z),
22 underWater(dat.under_water),
27 :pos(pos),freePoint(true),name(
upcaseof(name)){
31 :pos(pos), dir(dir), freePoint(isFp), name(
upcaseof(name)){
47 if(inexact &&
name.find(n)!=std::string::npos)
64 return dx*dx+dy*dy+dz*dz;
Tempest::Vec3 position() const
void connect(WayPoint &w)
bool checkName(std::string_view name, bool inexact=true) const
bool hasLadderConn(const WayPoint *w) const
float qDistTo(float x, float y, float z) const
Tempest::Vec3 direction() const
static std::string upcaseof(std::string_view src)