Panda3D
panda
src
collide
collisionLine.I
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file collisionLine.I
10
* @author drose
11
* @date 2005-01-05
12
*/
13
14
/**
15
* Creates an invalid line. This isn't terribly useful; it's expected that
16
* the user will subsequently adjust the line via set_origin()/set_direction()
17
* or set_from_lens().
18
*/
19
INLINE
CollisionLine::
20
CollisionLine
() {
21
}
22
23
/**
24
*
25
*/
26
INLINE
CollisionLine::
27
CollisionLine
(
const
LPoint3 &origin,
const
LVector3 &direction) :
28
CollisionRay
(origin, direction)
29
{
30
}
31
32
/**
33
*
34
*/
35
INLINE
CollisionLine::
36
CollisionLine
(PN_stdfloat ox, PN_stdfloat oy, PN_stdfloat oz,
37
PN_stdfloat dx, PN_stdfloat dy, PN_stdfloat dz) :
38
CollisionRay
(ox, oy, oz, dx, dy, dz)
39
{
40
}
41
42
/**
43
*
44
*/
45
INLINE
CollisionLine::
46
CollisionLine
(
const
CollisionLine
©) :
47
CollisionRay
(copy)
48
{
49
}
CollisionRay
An infinite ray, with a specific origin and direction.
Definition:
collisionRay.h:27
CollisionLine
An infinite line, similar to a CollisionRay, except that it extends in both directions.
Definition:
collisionLine.h:25
CollisionLine::CollisionLine
CollisionLine()
Creates an invalid line.
Definition:
collisionLine.I:20
Generated on Sun Dec 27 2020 13:22:50 for Panda3D by
1.8.20