#include <structures.h>
Public Types | |
enum | vertexType { normal = 0, fixed = 1, fixedTrainStartOrEnd = 2 } |
The possible vertex types. | |
Public Member Functions | |
vertex () | |
Constructs an uninitialized vertex. | |
vertex (component x, component y) | |
Constructs a vertex. | |
bool | operator== (const vertex &v) |
Equality operator. | |
Public Attributes | |
vertexType | type |
The vertex type. | |
component | mass |
The mass. | |
vector2 | initialPosition |
The initial position. | |
vector2 | position |
The current position. | |
vector2 | velocity |
The current velocity. | |
vector2 | force |
The current resulting force applied to this vertex. | |
component | forceCoach |
The vertical component of the force exerted to the bridge by the train. |
|
Constructs a vertex.
|
|
Equality operator.
|