Panda3D

bulletCylinderShape.I

00001 // Filename: bulletCylinderShape.I
00002 // Created by:  enn0x (17Feb10)
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 //     Function: BulletCylinderShape::Destructor
00017 //       Access: Published
00018 //  Description:
00019 ////////////////////////////////////////////////////////////////////
00020 INLINE BulletCylinderShape::
00021 ~BulletCylinderShape() {
00022 
00023   delete _shape;
00024 }
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //     Function: BulletCylinderShape::Copy Constructor
00028 //       Access: Published
00029 //  Description:
00030 ////////////////////////////////////////////////////////////////////
00031 INLINE BulletCylinderShape::
00032 BulletCylinderShape(const BulletCylinderShape &copy) :
00033   _shape(copy._shape) {
00034 }
00035 
00036 ////////////////////////////////////////////////////////////////////
00037 //     Function: BulletCylinderShape::Copy Assignment Operator
00038 //       Access: Published
00039 //  Description:
00040 ////////////////////////////////////////////////////////////////////
00041 INLINE void BulletCylinderShape::
00042 operator = (const BulletCylinderShape &copy) {
00043   _shape = copy._shape;
00044 }
00045 
00046 ////////////////////////////////////////////////////////////////////
00047 //     Function: BulletCylinderShape::get_radius
00048 //       Access: Published
00049 //  Description:
00050 ////////////////////////////////////////////////////////////////////
00051 INLINE PN_stdfloat BulletCylinderShape::
00052 get_radius() const {
00053 
00054   return (PN_stdfloat)_shape->getRadius();
00055 }
00056 
00057 ////////////////////////////////////////////////////////////////////
00058 //     Function: BulletCylinderShape::get_half_extents_without_margin
00059 //       Access: Published
00060 //  Description:
00061 ////////////////////////////////////////////////////////////////////
00062 INLINE LVecBase3 BulletCylinderShape::
00063 get_half_extents_without_margin() const {
00064 
00065   return btVector3_to_LVecBase3(_shape->getHalfExtentsWithoutMargin());
00066 }
00067 
00068 ////////////////////////////////////////////////////////////////////
00069 //     Function: BulletCylinderShape::get_half_extents_with_margin
00070 //       Access: Published
00071 //  Description:
00072 ////////////////////////////////////////////////////////////////////
00073 INLINE LVecBase3 BulletCylinderShape::
00074 get_half_extents_with_margin() const {
00075 
00076   return btVector3_to_LVecBase3(_shape->getHalfExtentsWithMargin());
00077 }
00078 
 All Classes Functions Variables Enumerations