Panda3D
 All Classes Functions Variables Enumerations
odePlaneGeom.I
00001 // Filename: odePlaneGeom.I
00002 // Created by:  joswilso (27Dec06)
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 INLINE void OdePlaneGeom::
00016 set_params(dReal a, dReal b, dReal c, dReal d) {
00017   dGeomPlaneSetParams(_id, a, b, c, d);
00018 }
00019 
00020 INLINE void OdePlaneGeom::
00021 set_params(const LVecBase4f &params) {
00022   set_params(params[0], params[1], params[2], params[3]);
00023 }
00024 
00025 INLINE LVecBase4f OdePlaneGeom::
00026 get_params() const {
00027   dVector4 res;
00028   dGeomPlaneGetParams(_id, res);
00029   return LVecBase4f(res[0], res[1], res[2], res[3]);
00030 }
00031 
00032 INLINE dReal OdePlaneGeom::
00033 get_point_depth(dReal x, dReal y, dReal z) const {
00034   return dGeomPlanePointDepth(_id, x, y, z);
00035 }
00036 
00037 INLINE dReal OdePlaneGeom::
00038 get_point_depth(const LPoint3f &p) const {
00039   return get_point_depth(p[0], p[1], p[2]);
00040 }
 All Classes Functions Variables Enumerations