org.opensha.sha.faultSurface
Class FourPointEvenlyGriddedSurface

java.lang.Object
  extended by org.opensha.commons.data.Container2DImpl<Location>
      extended by org.opensha.sha.faultSurface.AbstractEvenlyGriddedSurface
          extended by org.opensha.sha.faultSurface.FourPointEvenlyGriddedSurface
All Implemented Interfaces:
Serializable, Iterable<Location>, Container2D<Location>, Named, EvenlyGriddedSurface, RuptureSurface

public class FourPointEvenlyGriddedSurface
extends AbstractEvenlyGriddedSurface

This class represents an evenly gridded surface composed of four Locations.

Author:
field
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.opensha.sha.faultSurface.AbstractEvenlyGriddedSurface
C, gridSpacingAlong, gridSpacingDown, sameGridSpacing
 
Fields inherited from class org.opensha.commons.data.Container2DImpl
data, name, numCols, numRows, size, TAB
 
Constructor Summary
FourPointEvenlyGriddedSurface(Location upperLeft, Location lowerLeft, Location lowerRight, Location upperRight)
          The constructs the surface from the Locations given (counter clockwise when looking at surface from positive side), where no sub-discretization is applied.
 
Method Summary
 double getAveDip()
          Average dip (degrees) of rupture surface
 double getAveDipDirection()
          Average dip direction (degrees) of rupture surface
 double getAveRupTopDepth()
          Average depth (km) to top of rupture (always a positive number)
 double getAveStrike()
          Average strike (degrees) of rupture surface
 
Methods inherited from class org.opensha.sha.faultSurface.AbstractEvenlyGriddedSurface
getArea, getAveGridSpacing, getAveLength, getAveWidth, getDistanceJB, getDistanceRup, getDistanceSeis, getDistanceX, getEvenlyDiscritizedListOfLocsOnSurface, getEvenlyDiscritizedLowerEdge, getEvenlyDiscritizedPerimeter, getEvenlyDiscritizedUpperEdge, getFirstLocOnUpperEdge, getFractionOfSurfaceInRegion, getGridSpacingAlongStrike, getGridSpacingDownDip, getInfo, getLastLocOnUpperEdge, getLocation, getLocationsIterator, getMinDistance, getPerimeter, getRowAsTrace, getUpperEdge, isGridSpacingSame, isPointSurface
 
Methods inherited from class org.opensha.commons.data.Container2DImpl
checkBounds, clear, exist, get, getAllByColumnsIterator, getAllByRowsIterator, getColumnIterator, getName, getNumCols, getNumRows, getRowIterator, iterator, listIterator, main, set, setName, setNumRowsAndNumCols, size, toJava2D, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opensha.commons.data.Container2D
clear, exist, get, getAllByColumnsIterator, getAllByRowsIterator, getColumnIterator, getNumCols, getNumRows, getRowIterator, listIterator, set, setName, size, toString
 
Methods inherited from interface org.opensha.commons.data.Named
getName
 
Methods inherited from interface java.lang.Iterable
iterator
 

Constructor Detail

FourPointEvenlyGriddedSurface

public FourPointEvenlyGriddedSurface(Location upperLeft,
                                     Location lowerLeft,
                                     Location lowerRight,
                                     Location upperRight)
The constructs the surface from the Locations given (counter clockwise when looking at surface from positive side), where no sub-discretization is applied. This gridSpacingAlong is the average between the top two and bottom two points, and likewise for gridSpacingDown.

Parameters:
upperLeft -
lowerLeft -
lowerRight -
upperRight -
Method Detail

getAveDip

public double getAveDip()
Description copied from interface: RuptureSurface
Average dip (degrees) of rupture surface

Returns:

getAveDipDirection

public double getAveDipDirection()
Description copied from interface: RuptureSurface
Average dip direction (degrees) of rupture surface

Returns:

getAveRupTopDepth

public double getAveRupTopDepth()
Description copied from interface: RuptureSurface
Average depth (km) to top of rupture (always a positive number)

Returns:

getAveStrike

public double getAveStrike()
Description copied from interface: RuptureSurface
Average strike (degrees) of rupture surface

Returns: