in3Utils.geoTrans.areaPoly

areaPoly(X, Y)[source]

Gauss’s area formula to calculate polygon area

Parameters
  • X (1D numpy array) – x coord of the vertices

  • Y (1D numpy array) – y coord of the vertices

  • (Without repeating the first vertex!!!)

Returns

area – Area of the polygon

Return type

float