add get_time() from Steven Osman
This commit is contained in:
parent
8fd4a2fac2
commit
28a96485ab
|
|
@ -50,6 +50,26 @@ get_orient() const {
|
|||
return _data.get_orient();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: TrackerNode::get_time
|
||||
// Access: Public
|
||||
// Description: Returns the time of the tracker's last update.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE double TrackerNode::
|
||||
get_time() const {
|
||||
return _data.get_time();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: TrackerNode::has_time
|
||||
// Access: Public
|
||||
// Description: True if this data comes with timestamps.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE bool TrackerNode::
|
||||
has_time() const {
|
||||
return _data.has_time();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: TrackerNode::get_transform
|
||||
// Access: Public
|
||||
|
|
|
|||
|
|
@ -47,6 +47,8 @@ PUBLISHED:
|
|||
INLINE const LPoint3f &get_pos() const;
|
||||
INLINE const LOrientationf &get_orient() const;
|
||||
INLINE const LMatrix4f &get_transform() const;
|
||||
INLINE double get_time() const;
|
||||
INLINE bool has_time() const;
|
||||
|
||||
INLINE void set_tracker_coordinate_system(CoordinateSystem cs);
|
||||
INLINE CoordinateSystem get_tracker_coordinate_system() const;
|
||||
|
|
|
|||
Loading…
Reference in New Issue