Panda3D
 All Classes Functions Variables Enumerations
collisionLine.I
1 // Filename: collisionLine.I
2 // Created by: drose (05Jan05)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: CollisionLine::Default Constructor
18 // Access: Public
19 // Description: Creates an invalid line. This isn't terribly useful;
20 // it's expected that the user will subsequently adjust
21 // the line via set_origin()/set_direction() or
22 // set_from_lens().
23 ////////////////////////////////////////////////////////////////////
24 INLINE CollisionLine::
26 }
27 
28 ////////////////////////////////////////////////////////////////////
29 // Function: CollisionLine::Constructor
30 // Access: Public
31 // Description:
32 ////////////////////////////////////////////////////////////////////
33 INLINE CollisionLine::
34 CollisionLine(const LPoint3 &origin, const LVector3 &direction) :
35  CollisionRay(origin, direction)
36 {
37 }
38 
39 ////////////////////////////////////////////////////////////////////
40 // Function: CollisionLine::Constructor
41 // Access: Public
42 // Description:
43 ////////////////////////////////////////////////////////////////////
44 INLINE CollisionLine::
45 CollisionLine(PN_stdfloat ox, PN_stdfloat oy, PN_stdfloat oz,
46  PN_stdfloat dx, PN_stdfloat dy, PN_stdfloat dz) :
47  CollisionRay(ox, oy, oz, dx, dy, dz)
48 {
49 }
50 
51 ////////////////////////////////////////////////////////////////////
52 // Function: CollisionLine::Copy Constructor
53 // Access: Public
54 // Description:
55 ////////////////////////////////////////////////////////////////////
56 INLINE CollisionLine::
57 CollisionLine(const CollisionLine &copy) :
58  CollisionRay(copy)
59 {
60 }
An infinite ray, with a specific origin and direction.
Definition: collisionRay.h:31
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
Definition: lvector3.h:100
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:99
CollisionLine()
Creates an invalid line.
Definition: collisionLine.I:25
An infinite line, similar to a CollisionRay, except that it extends in both directions.
Definition: collisionLine.h:28