00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
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 ¶ms) {
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 }