From c068f22329d5cc722622a2183bbb22eef2093df7 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 24 Aug 2026 11:16:07 +0200 Subject: initial import --- tool_src/BspLib/LineSeg3.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 tool_src/BspLib/LineSeg3.h (limited to 'tool_src/BspLib/LineSeg3.h') diff --git a/tool_src/BspLib/LineSeg3.h b/tool_src/BspLib/LineSeg3.h new file mode 100644 index 0000000..0f436f3 --- /dev/null +++ b/tool_src/BspLib/LineSeg3.h @@ -0,0 +1,46 @@ +//----------------------------------------------------------------------------- +// BSPLIB HEADER: LineSeg3.h +// +// Copyright (c) 1997 by Markus Hadwiger +// All Rights Reserved. +//----------------------------------------------------------------------------- + +#ifndef _LINESEG3_H_ +#define _LINESEG3_H_ + +// bsplib header files +#include "BspLibDefs.h" +#include "Vector3.h" + + +BSPLIB_NAMESPACE_BEGIN + + +// line segment in 3-space ---------------------------------------------------- +// +class LineSeg3 { + +public: + LineSeg3( const Vertex3& basevtx, const Vector3& dirvec ); + ~LineSeg3() { } + + int PointOnLineSeg( const Vertex3& vertex ) const; + +private: + Vertex3 m_basevtx; + Vector3 m_dirvec; +}; + +// construct a LineSeg3 using a basevertex and a direction vector ------------- +inline LineSeg3::LineSeg3( const Vertex3& basevtx, const Vector3& dirvec ) +{ + m_basevtx = basevtx; + m_dirvec = dirvec; +} + + +BSPLIB_NAMESPACE_END + + +#endif // _LINESEG3_H_ + -- cgit v1.2.3