21 Entity(
float x,
float y,
float z);
43 float distance(
float x,
float y,
float z);
55 virtual void setPos(QVector3D &pos);
63 virtual void setPos(
float x,
float y,
float z);
float z
The z coordinate of the entity's location.
Definition: entity.h:13
QVector3D getPos()
Returns the location of the entity.
Definition: entity.cpp:32
virtual void setPos(QVector3D &pos)
Changes the entity's location.
Definition: entity.cpp:36
Entity()
Creates a new entity at the origin (0,0,0).
Definition: entity.cpp:10
float distance(Entity &to)
Computes the euclidean distance to another entity.
Definition: entity.cpp:18
float y
The y coordinate of the entity's location.
Definition: entity.h:12
An element with a location in 3-dimensional space.
Definition: entity.h:9
float x
The x coordinate of the entity's location.
Definition: entity.h:11