Ignore:
Timestamp:
08/25/20 00:32:13 (5 years ago)
Author:
jdquinn
Message:

CHG: Saving chnages so that Basile has access to potential fix to solidearthmodel class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/geometry/polyarea.py

    r25125 r25455  
    55
    66def polyarea(x, y): #{{{
    7     '''
     7    """
    88    POLYAREA - returns the area of the 2-D polygon defined by the vertices in
    99    lists x and y
     
    2424    - Test that output falls within some tolerance of MATLAB's polyarea
    2525    function.
    26     '''
     26    """
     27
    2728    return 0.5 * np.abs(np.dot(x, np.roll(y, 1)) - np.dot(y, np.roll(x, 1)))
    2829#}}}
Note: See TracChangeset for help on using the changeset viewer.