An element with a location in 3-dimensional space.
More...
#include <entity.h>
Inherited by Camera, EntityMoveable, and Splat.
|
| | Entity (float x, float y, float z) |
| | Creates a new entity at the given location. More...
|
| |
|
| Entity () |
| | Creates a new entity at the origin (0,0,0).
|
| |
| float | distance (Entity &to) |
| | Computes the euclidean distance to another entity. More...
|
| |
| float | distance (float x, float y, float z) |
| | Computes the euclidean distance to a location. More...
|
| |
| QVector3D | getPos () |
| | Returns the location of the entity. More...
|
| |
| virtual void | setPos (QVector3D &pos) |
| | Changes the entity's location. More...
|
| |
| virtual void | setPos (float x, float y, float z) |
| | Changes the entity's location. More...
|
| |
|
|
float | x |
| | The x coordinate of the entity's location.
|
| |
|
float | y |
| | The y coordinate of the entity's location.
|
| |
|
float | z |
| | The z coordinate of the entity's location.
|
| |
An element with a location in 3-dimensional space.
| Entity::Entity |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
Creates a new entity at the given location.
- Parameters
-
| x | The x coordinate. |
| y | The y coordinate. |
| z | The z coordinate. |
| float Entity::distance |
( |
Entity & |
to | ) |
|
Computes the euclidean distance to another entity.
- Parameters
-
- Returns
- The distance.
| float Entity::distance |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
Computes the euclidean distance to a location.
- Parameters
-
| x | The location's x coordinate. |
| y | The location's y coordinate. |
| z | The location's z coordinate. |
- Returns
- The distance.
| QVector3D Entity::getPos |
( |
| ) |
|
Returns the location of the entity.
- Returns
- The position.
| void Entity::setPos |
( |
QVector3D & |
pos | ) |
|
|
virtual |
Changes the entity's location.
- Parameters
-
Reimplemented in Camera.
| void Entity::setPos |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
|
virtual |
Changes the entity's location.
- Parameters
-
| x | The new x coordinate. |
| y | The new y coordinate. |
| z | The new z coordinate. |
Reimplemented in Camera.
The documentation for this class was generated from the following files: