36 #ifndef _NSOUND_MESH_JUNCTION_H_
37 #define _NSOUND_MESH_JUNCTION_H_
float64 velocity_south_
Velocity going north.
float64 previous_velocity_south_
void updateVelocity()
updates junction velocity.
MeshJunction(const float64 &leak_gain, const float64 &tau, const float64 &delta, const float64 &gamma)
Constructor.
float64 previous_velocity_east_
void strike(const float64 &velocity)
Adds velocity to this junction.
float64 leak_gain_
updates junction velocity.
MeshJunction * neighbor_west_
MeshJunction * neighbor_south_
void setNeighborNorth(MeshJunction *ptr)
float64 velocity_east_
Velocity going south.
float64 velocity_
Leak gain.
void setNeighborEast(MeshJunction *ptr)
void setNeighborSouth(MeshJunction *ptr)
float64 velocity_west_
Velocity going east.
MeshJunction & operator=(const MeshJunction &rhs)
This operator can not assign neighbor pointers.
MeshJunction * neighbor_east_
float64 previous_velocity_west_
void setNeighborWest(MeshJunction *ptr)
float64 getVelocity() const
float64 previous_velocity_north_
float64 velocity_north_
This junction's velocity.
void saveState()
Saves previous south and east velocities.
~MeshJunction()
Deconstructor.
void clear()
Clears all velicityes in the junctino.
float64 previous_velocity_
Velocity going west.
MeshJunction * neighbor_north_