Package esys :: Package modellib :: Module tsunami :: Class RegionOnEarthSurface
[hide private]
[frames] | no frames]

Class RegionOnEarthSurface

Defines a region by a south-east and north-west corner

Instance Methods [hide private]
 
__init__(self, west_south=<esys.modellib.tsunami.PointOnEarthSurface instance at 0x9e64d6c>, east_north=<esys.modellib.tsunami.PointOnEarthSurface instance at 0x9e64dac>, resolution=1.0)
 
__str__(self)
 
comparePointsOnFace(self, p0, p1)
 
cutSegment(self, p0, p1)
 
getFace(self, p)
 
interceptOfSegment(self, p0, p1, d=0, v=0.0)
Finds t in [0,1] such that p0+t*(p0-p1) cuts x[d]=v.
 
isBoxVertex(self, p)
 
isInRegion(self, p)
 
isOnFace(self, p)
 
isOnThisFace(self, p, face)
Class Variables [hide private]
  EAST = 2
  GRAVITY = 9.81
  NORTH = 1
  RADIUS = 6378800.0
  SOUTH = 3
  WEST = 0
Method Details [hide private]

interceptOfSegment(self, p0, p1, d=0, v=0.0)

 

Finds t in [0,1] such that p0+t*(p0-p1) cuts x[d]=v. If it does not exist None is returned.