16 INLINE
void OdeRayGeom::
17 set_length(dReal length) {
18 dGeomRaySetLength(_id, length);
21 INLINE dReal OdeRayGeom::
23 return dGeomRayGetLength(_id);
26 INLINE
void OdeRayGeom::
27 set(dReal px, dReal py, dReal pz, dReal dx, dReal dy, dReal dz) {
28 dGeomRaySet(_id, px, py, pz, dx, dy, dz);
31 INLINE
void OdeRayGeom::
33 set(start[0], start[1], start[2], dir[0], dir[1], dir[2]);
36 INLINE
void OdeRayGeom::
39 dGeomRayGet(_id, s, d);
40 start.set(s[0], s[1], s[2]);
41 dir.set(d[0], d[1], d[2]);
47 dGeomRayGet(_id, start, dir);
48 return LVecBase3f(start[0], start[1], start[2]);
52 get_direction()
const {
54 dGeomRayGet(_id, start, dir);
58 INLINE
void OdeRayGeom::
59 set_params(
int first_contact,
int backface_cull) {
60 dGeomRaySetParams(_id, first_contact, backface_cull);
63 INLINE
void OdeRayGeom::
64 get_params(
int &first_contact,
int &backface_cull)
const {
65 dGeomRayGetParams(_id, &first_contact, &backface_cull);
68 INLINE
int OdeRayGeom::
69 get_first_contact()
const {
71 dGeomRayGetParams(_id, &fc, &bc);
75 INLINE
int OdeRayGeom::
76 get_backface_cull()
const {
78 dGeomRayGetParams(_id, &fc, &bc);
82 INLINE
void OdeRayGeom::
83 set_closest_hit(
int closest_hit) {
84 dGeomRaySetClosestHit(_id, closest_hit);
87 INLINE
int OdeRayGeom::
89 return dGeomRayGetClosestHit(_id);
This is the base class for all three-component vectors and points.