Panda3D
 All Classes Functions Variables Enumerations
collisionLine.I
00001 // Filename: collisionLine.I
00002 // Created by:  drose (05Jan05)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: CollisionLine::Default Constructor
00018 //       Access: Public
00019 //  Description: Creates an invalid line.  This isn't terribly useful;
00020 //               it's expected that the user will subsequently adjust
00021 //               the line via set_origin()/set_direction() or
00022 //               set_from_lens().
00023 ////////////////////////////////////////////////////////////////////
00024 INLINE CollisionLine::
00025 CollisionLine() {
00026 }
00027 
00028 ////////////////////////////////////////////////////////////////////
00029 //     Function: CollisionLine::Constructor
00030 //       Access: Public
00031 //  Description:
00032 ////////////////////////////////////////////////////////////////////
00033 INLINE CollisionLine::
00034 CollisionLine(const LPoint3 &origin, const LVector3 &direction) :
00035   CollisionRay(origin, direction)
00036 {
00037 }
00038 
00039 ////////////////////////////////////////////////////////////////////
00040 //     Function: CollisionLine::Constructor
00041 //       Access: Public
00042 //  Description:
00043 ////////////////////////////////////////////////////////////////////
00044 INLINE CollisionLine::
00045 CollisionLine(PN_stdfloat ox, PN_stdfloat oy, PN_stdfloat oz,
00046               PN_stdfloat dx, PN_stdfloat dy, PN_stdfloat dz) :
00047   CollisionRay(ox, oy, oz, dx, dy, dz)
00048 {
00049 }
00050 
00051 ////////////////////////////////////////////////////////////////////
00052 //     Function: CollisionLine::Copy Constructor
00053 //       Access: Public
00054 //  Description:
00055 ////////////////////////////////////////////////////////////////////
00056 INLINE CollisionLine::
00057 CollisionLine(const CollisionLine &copy) :
00058   CollisionRay(copy)
00059 {
00060 }
 All Classes Functions Variables Enumerations