Program Listing for File Point3d.hpp

Return to documentation for file (include/depthai/common/Point3d.hpp)

#pragma once

// std
#include <cstdint>

// project
#include "depthai/utility/Serialization.hpp"

namespace dai {

struct Point3d {
    Point3d() = default;
    Point3d(double x, double y, double z) : x(x), y(y), z(z) {}
    double x = 0, y = 0, z = 0;
};

DEPTHAI_SERIALIZE_EXT(Point3d, x, y, z);

}  // namespace dai