69 return (_flags & F_has_time) != 0;
107 return (_flags & F_has_pos) != 0;
122 static LPoint3 zero(0.0, 0.0, 0.0);
139 _flags |= F_has_orient;
150 return (_flags & F_has_orient) != 0;
194 return (_flags & F_has_dt) != 0;
static const LQuaternionf & ident_quat()
Returns an identity quaternion.
void clear()
Removes all data from the structure.
void set_time(double time)
Indicates the time at which the position information (pos and orient) are effective.
This is a unit quaternion representing an orientation.
void set_pos(const LPoint3 &pos)
Indicates the current position of the tracker sensor in space.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
void set_orient(const LOrientation &orient)
Indicates the current orientation of the tracker sensor in space.
const LPoint3 & get_pos() const
Returns the current position of the tracker.
bool has_dt() const
Returns true if the computed elapsed time is available.
double get_time() const
Returns the time at which the position information (pos and orient) are effective.
double get_dt() const
Returns the amount of elapsed time over which the information (pos and orient) were computed...
Stores the kinds of data that a tracker might output.
const LOrientation & get_orient() const
Returns the current orientation of the tracker.
bool has_pos() const
Returns true if the current position is available.
bool has_orient() const
Returns true if the current orientation is available.
void set_dt(double dt)
Indicates the amount of elapsed time over which which the information (pos and orient) were computed...
bool has_time() const
Returns true if the position information time is available.