forked from panda3d/panda3d
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathodePlaneGeom.I
More file actions
39 lines (34 loc) · 1006 Bytes
/
odePlaneGeom.I
File metadata and controls
39 lines (34 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file odePlaneGeom.I
* @author joswilso
* @date 2006-12-27
*/
INLINE void OdePlaneGeom::
set_params(dReal a, dReal b, dReal c, dReal d) {
dGeomPlaneSetParams(_id, a, b, c, d);
}
INLINE void OdePlaneGeom::
set_params(const LVecBase4f ¶ms) {
set_params(params[0], params[1], params[2], params[3]);
}
INLINE LVecBase4f OdePlaneGeom::
get_params() const {
dVector4 res;
dGeomPlaneGetParams(_id, res);
return LVecBase4f(res[0], res[1], res[2], res[3]);
}
INLINE dReal OdePlaneGeom::
get_point_depth(dReal x, dReal y, dReal z) const {
return dGeomPlanePointDepth(_id, x, y, z);
}
INLINE dReal OdePlaneGeom::
get_point_depth(const LPoint3f &p) const {
return get_point_depth(p[0], p[1], p[2]);
}