Panda3D
Loading...
Searching...
No Matches
odePlaneGeom.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 odePlaneGeom.I
10 * @author joswilso
11 * @date 2006-12-27
12 */
13
14INLINE void OdePlaneGeom::
15set_params(dReal a, dReal b, dReal c, dReal d) {
16 dGeomPlaneSetParams(_id, a, b, c, d);
17}
18
19INLINE void OdePlaneGeom::
20set_params(const LVecBase4f &params) {
21 set_params(params[0], params[1], params[2], params[3]);
22}
23
24INLINE LVecBase4f OdePlaneGeom::
25get_params() const {
26 dVector4 res;
27 dGeomPlaneGetParams(_id, res);
28 return LVecBase4f(res[0], res[1], res[2], res[3]);
29}
30
31INLINE dReal OdePlaneGeom::
32get_point_depth(dReal x, dReal y, dReal z) const {
33 return dGeomPlanePointDepth(_id, x, y, z);
34}
35
36INLINE dReal OdePlaneGeom::
37get_point_depth(const LPoint3f &p) const {
38 return get_point_depth(p[0], p[1], p[2]);
39}