ESyS-Particle
2.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
LineSegment.h
Go to the documentation of this file.
1
2
// //
3
// Copyright (c) 2003-2013 by The University of Queensland //
4
// Earth Systems Science Computational Centre (ESSCC) //
5
// http://www.uq.edu.au/esscc //
6
// //
7
// Primary Business: Brisbane, Queensland, Australia //
8
// Licensed under the Open Software License version 3.0 //
9
// http://www.opensource.org/licenses/osl-3.0.php //
10
// //
12
13
#ifndef __LINE_SEGMENT_H
14
#define __LINE_SEGMENT_H
15
16
//--- Project includes ---
17
#include "
Foundation/vec3.h
"
18
#include "
Geometry/Line.h
"
19
28
class
LineSegment
:
public
Line
29
{
30
private
:
31
double
m_len
;
32
33
public
:
34
LineSegment
(
const
Vec3
&,
const
Vec3
&);
35
virtual
~LineSegment
(){}
36
37
virtual
double
sep
(
const
Vec3
&);
38
virtual
bool
intersect
(
const
Vec3
&,
const
Vec3
&);
39
Vec3
getP1
() {
return
Pos
;};
40
Vec3
getP2
() {
return
Pos
+
m_len
*
U
;};
41
};
42
43
#endif // __LINE_SEGMENT_H
Geometry
LineSegment.h
Generated on Mon May 6 2013 23:26:29 for ESyS-Particle by
1.8.3.1