Geom Software - C++ Programming and Geometry Libraries
Fade3D Documentation pages v0.99
/home/geom/repo/dev/geomDev/dt3/dt3Library/Segment3.h
1 // Copyright (C) Geom Software e.U, Bernhard Kornberger, Graz/Austria
2 //
3 // This file is part of the Fade3D library. The student license is free
4 // of charge and covers personal non-commercial research. Licensees
5 // holding a commercial license may use this file in accordance with
6 // the Commercial License Agreement.
7 //
8 // This software is provided AS IS with NO WARRANTY OF ANY KIND,
9 // INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS
10 // FOR A PARTICULAR PURPOSE.
11 //
12 // Please contact the author if any conditions of this licensing are
13 // not clear to you.
14 //
15 // Author: Bernhard Kornberger, bkorn (at) geom.at
16 // https://www.geom.at
17 
18 
19 #pragma once
20 
21 //#include "common.h"
22 #include "Point3.h"
23 //#include "TrPoint.h"
24 
25 namespace FADE3D {
26 
29 class CLASS_DECLSPEC Segment3
30 {
31 private:
32  Point3 src,trg;
33 public:
34  Segment3(const Point3& src,const Point3& trg);
37  Point3 getSrc() const;
40  Point3 getTrg() const;
42  void debug();
43  friend std::ostream &operator<<(std::ostream &stream, Segment3 seg);
44 };
45 
46 
47 
48 } // NAMESPACE FADE3D
49 
50 
Definition: Ball3.h:16
Vertex.
Definition: Point3.h:32
Line segment.
Definition: Segment3.h:29