|
| | Position (float x, float y, float z=0) |
| | Construct a new Position object from positions sent as parameter. More...
|
| |
| | Position (Position const &position) |
| | Construct a new object from other Position object sent as parameter. More...
|
| |
|
| Position () |
| | Construct a new Position object from default values.
|
| |
|
| ~Position () |
| | Destroy the Position object.
|
| |
| bool | operator== (Position const &position) |
| | Check if all positions are the same (x, y z) More...
|
| |
| Position & | setFromArray (std::array< float, 3 > const &position) |
| | Set x, y, z from other float array. More...
|
| |
| Position & | operator= (Position const &position) |
| | Set x, y, z from other Postition object. More...
|
| |
| Position & | operator= (float pos) |
| | Set x, y, z from a value. More...
|
| |
| Position | operator+ (float value) |
| | Overload the + operator. More...
|
| |
| Position | operator+ (Position const &position) |
| | Overload the + operator for Position objects. More...
|
| |
| Position | operator- (float value) |
| | Overload the - operator. More...
|
| |
| Position | operator- (Position const &position) |
| | Overload the - operator for Position objects. More...
|
| |
| Position | operator* (float value) |
| | Overload the * operator. More...
|
| |
| Position | operator* (Position const &position) |
| | Overload the * operator for Position objects. More...
|
| |
| Position & | operator+= (Position const &position) |
| | Add to x, y, z respectively the x, y, z of the Position object sent as parameter. More...
|
| |
| Position & | operator+= (float number) |
| | Add to x, y, z a value. More...
|
| |
| Position & | operator-= (Position const &position) |
| | Substract to x, y, z respectively the x, y, z of the Position object sent as parameter. More...
|
| |
| Position & | operator-= (float number) |
| | Substract to x, y, z a value. More...
|
| |
| Position & | operator*= (Position const &position) |
| | multiply to x, y, z respectively the x, y, z of the Position object sent as parameter More...
|
| |
| Position & | operator*= (float number) |
| | multiply to x, y, z a value More...
|
| |
| Position & | operator/= (Position const &position) |
| | divide to x, y, z respectively the x, y, z of the Position object sent as parameter More...
|
| |
| Position & | operator/= (float number) |
| | divide to x, y, z a value More...
|
| |
| void | setPosition (float x, float y) |
| | Set the position. More...
|
| |
| void | setPosition (float x, float y, float z) |
| | Set the position. More...
|
| |
| void | setPosition (Position const &position) |
| | Set the position. More...
|
| |
| void | setX (float x) |
| | set x value More...
|
| |
| void | setY (float y) |
| | set y value More...
|
| |
| void | setZ (float z) |
| | set z value More...
|
| |
| void | reset () |
| | reset x, y, z to 0 More...
|
| |
| std::array< float, 3 > | getPosition () const |
| | Get x, y, z position in an array. More...
|
| |
| float | getX () const |
| | get x value More...
|
| |
| float | getY () const |
| | get y value More...
|
| |
| float | getZ () const |
| | get z value More...
|
| |
| Vector3 | getVector3 () const |
| | Get the Vector3 object from Position values. More...
|
| |
| Vector2 | getVector2 () const |
| | Get the Vector2 object from Position values. More...
|
| |
3 dimension Position class (x, y, z)