33 using namespace Nsound;
47 leak_gain_(leak_gain),
53 previous_velocity_(0.0),
54 previous_velocity_north_(0.0),
55 previous_velocity_south_(0.0),
56 previous_velocity_east_(0.0),
57 previous_velocity_west_(0.0),
61 neighbor_north_(NULL),
62 neighbor_south_(NULL),
66 yj_ = 2.0 * ( (delta * delta) / (tau * tau * gamma * gamma) );
67 yc_ = 2.0 * ( (delta * delta) / (tau * tau * gamma * gamma) - 2.0);
92 previous_velocity_(0.0),
93 previous_velocity_north_(0.0),
94 previous_velocity_south_(0.0),
95 previous_velocity_east_(0.0),
96 previous_velocity_west_(0.0),
100 neighbor_north_(NULL),
101 neighbor_south_(NULL),
102 neighbor_east_(NULL),
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_