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

Class RegionOnEarthSurface


defines an region by a south,east and north,west corner
Method Summary
  __init__(self, west_south, east_north, resolution)
  __str__(self)
  comparePointsOnFace(self, p0, p1)
  cutSegment(self, p0, p1)
  getFace(self, p)
  interseptOfSegment(self, p0, p1, d, v)
find t isn [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 Variable Summary
int EAST = 2                                                                     
float GRAVITY = 9.8100000000000005                                                    
int NORTH = 1                                                                     
float RADIUS = 6378800.0                                                             
int SOUTH = 3                                                                     
int WEST = 0                                                                     

Method Details

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

find t isn [0,1] such that p0+t*(p0-p1) cuts x[d]=v. if it does nit exist None is returned.

Class Variable Details

EAST

Type:
int
Value:
2                                                                     

GRAVITY

Type:
float
Value:
9.8100000000000005                                                    

NORTH

Type:
int
Value:
1                                                                     

RADIUS

Type:
float
Value:
6378800.0                                                             

SOUTH

Type:
int
Value:
3                                                                     

WEST

Type:
int
Value:
0                                                                     

Generated by Epydoc 2.1 on Thu Apr 27 11:16:19 2006 http://epydoc.sf.net