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

edge Struct Reference

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

#include <structures.h>

List of all members.

Public Member Functions

component deformation ()
 Computes the relative deformation of this edge.
bool operator== (const edge &e)
 Equality operator.

Public Attributes

int start
 The index of the start vertex of this edge.
int end
 The index of the end vertex of this edge.
bool isRoad
 True iff this edge belongs to the horizontal end-to-end road.
component initialLength
 The initial length.
component length
 The current length.
bool isBroken
 True iff this edge is broken.


Detailed Description

Represents a (bridge or train) edge.


Member Function Documentation

component edge::deformation  )  [inline]
 

Computes the relative deformation of this edge.

edge::initialLength and edge::length should be set properly before any call to this method.

Returns:
the relative deformation

bool edge::operator== const edge e  )  [inline]
 

Equality operator.

Parameters:
e the edge to compare with
Returns:
true iff the start and end indices match


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