Logo Search packages:      
Sourcecode: ktechlab version File versions

PositionInfo Class Reference

#include <mechanicsitem.h>

List of all members.

Detailed Description

Stores a position and orientation.

David Saxton

Definition at line 50 of file mechanicsitem.h.

Public Member Functions

double angle () const
const PositionInfo operator+ (const PositionInfo &info)
const PositionInfo operator- (const PositionInfo &info)
void reset ()
void rotate (double angle)
void rotateAboutPoint (double x, double y, double angle)
void setAngle (double angle)
void setX (double x)
void setY (double y)
void translate (double dx, const double dy)
double x () const
double y () const

Protected Attributes

double m_angle
double m_x
double m_y

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index