new stuff

This commit is contained in:
Tim Nebel 2023-07-02 22:21:26 +02:00
commit c595421288
44 changed files with 2556 additions and 0 deletions

View file

@ -0,0 +1,29 @@
//
// Created by tv on 30.04.23.
//
#ifndef SPOONTOOL_VECTOR3_H
#define SPOONTOOL_VECTOR3_H
#include <yaml-cpp/yaml.h>
#include<boost/algorithm/string.hpp>
#include<iostream>
struct Vector3{
Vector3(YAML::Node node);
float X,Y,Z;
inline Vector3(float x,float y,float z) : X(x),Y(y),Z(z){}
inline void InsertIntoYaml(YAML::Emitter &Emitter){
Emitter << YAML::BeginMap;
Emitter << YAML::Key << "X" << YAML::Value << X;
Emitter << YAML::Key << "Y" << YAML::Value << Y;
Emitter << YAML::Key << "Z" << YAML::Value << Z;
Emitter << YAML::EndMap;
}
};
#endif //SPOONTOOL_VECTOR3_H