Module seaModels :: Class StripeWaterCurrents
[hide private]
[frames] | no frames]

Class StripeWaterCurrents

source code


This class implements a water-current that is constant and never changes, except one vertical stripe (with top and bottom part) that has different conditions.

Instance Methods [hide private]
 
__init__(self, waterDirectionX, waterDirectionY, stripeXStart, stripeXEnd, stripeYmiddle, stripeTopWaterDirectionX, stripeTopWaterDirectionY, stripeBottomWaterDirectionX, stripeBottomWaterDirectionY)
parameters define the constant water-current direction vector
source code
 
__str__(self) source code
 
getSpeedVectorInLocation(self, x, y)
Given a location, returns the wind vector in it
source code
Method Details [hide private]

__init__(self, waterDirectionX, waterDirectionY, stripeXStart, stripeXEnd, stripeYmiddle, stripeTopWaterDirectionX, stripeTopWaterDirectionY, stripeBottomWaterDirectionX, stripeBottomWaterDirectionY)
(Constructor)

source code 

parameters define the constant water-current direction vector

Overrides: WaterCurrents.__init__

getSpeedVectorInLocation(self, x, y)

source code 

Given a location, returns the wind vector in it

Overrides: WaterCurrents.getSpeedVectorInLocation