add get_sample_pos, get_sample_hpr

This commit is contained in:
David Rose 2007-01-17 19:22:38 +00:00
parent bffc110045
commit 9ac35805f9
2 changed files with 31 additions and 0 deletions

View File

@ -236,6 +236,34 @@ set_r(float r) {
return result;
}
////////////////////////////////////////////////////////////////////
// Function: SmoothMover::get_sample_pos
// Access: Published
// Description: Returns the current position of the working sample
// point. This position is updated periodically by
// set_x(), set_y(), etc., and its current value is
// copied to the sample point table when
// mark_position() is called.
////////////////////////////////////////////////////////////////////
INLINE const LPoint3f &SmoothMover::
get_sample_pos() const {
return _sample._pos;
}
////////////////////////////////////////////////////////////////////
// Function: SmoothMover::get_sample_hpr
// Access: Published
// Description: Returns the current orientation of the working sample
// point. This orientation is updated periodically by
// set_h(), set_p(), etc., and its current value is
// copied to the sample point table when
// mark_position() is called.
////////////////////////////////////////////////////////////////////
INLINE const LVecBase3f &SmoothMover::
get_sample_hpr() const {
return _sample._hpr;
}
////////////////////////////////////////////////////////////////////
// Function: SmoothMover::set_phony_timestamp
// Access: Published

View File

@ -79,6 +79,9 @@ PUBLISHED:
INLINE bool set_p(float p);
INLINE bool set_r(float r);
INLINE const LPoint3f &get_sample_pos() const;
INLINE const LVecBase3f &get_sample_hpr() const;
bool set_mat(const LMatrix4f &mat);
INLINE void set_phony_timestamp();