#pragma once #include "zeus/CVector3f.hpp" namespace zeus { class CLineSeg { public: CLineSeg(const CVector3f& start, const CVector3f& end) : x0_start(start), x18_end(end) { CVector3f tmp = (end - start).normalized(); if (tmp.x() != 0.f || tmp.y() != 0.f || tmp.z() != 0.f) xc_dir = tmp.normalized(); else xc_dir = CVector3f(); } CVector3f x0_start; CVector3f xc_dir; CVector3f x18_end; }; } // namespace zeus