Main Page | Class List | Directories | File List | Class Members | File Members

vertex Struct Reference

Represents a (bridge or train) vertex. More...

#include <structures.h>

List of all members.

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.


Detailed Description

Represents a (bridge or train) vertex.


Constructor & Destructor Documentation

vertex::vertex component  x,
component  y
[inline]
 

Constructs a vertex.

Parameters:
x the x coordinate of the initial position
y the y coordinate of the initial position


Member Function Documentation

bool vertex::operator== const vertex v  )  [inline]
 

Equality operator.

Parameters:
v the vertex to compare with
Returns:
true iff the initial positions match (regardless of any other properties)


The documentation for this struct was generated from the following file:
Generated on Sun Jul 10 22:32:04 2005 for S12 by  doxygen 1.4.2