class_docstr: Define an ellipsoid on which to solve geodesic problems.
docstr: Find a geodesic circle of given radius at a given point.
  
  Parameters
  ----------
  lon : float
      Longitude coordinate of the centre.
  lat : float
      Latitude coordinate of the centre.
  radius : float
      The radius of the circle (metres).
  n_samples: int, optional
      Integer number of sample points of circle.
  endpoint: bool, optional
      Whether to repeat endpoint at the end of returned array.
  
  Returns
  -------
  `numpy.ndarray`, shape=(n_samples, 2)
      The evenly spaced longitude-latitude points on the circle.
code: def circle(self, lon, lat, radius, n_samples=180, endpoint=False):
      """
      Find a geodesic circle of given radius at a given point.
  
      Parameters
      ----------
      lon : float
          Longitude coordinate of the centre.
      lat : float
          Latitude coordinate of the centre.
      radius : float
          The radius of the circle (metres).
      n_samples: int, optional
          Integer number of sample points of circle.
      endpoint: bool, optional
          Whether to repeat endpoint at the end of returned array.
  
      Returns
      -------
      `numpy.ndarray`, shape=(n_samples, 2)
          The evenly spaced longitude-latitude points on the circle.
  
      """
  
      # Put the input arguments into c-typed values.
      center = np.array([lon, lat]).reshape((1, 2))
      radius_m = np.asarray(radius).reshape(1)
  
      azimuths = np.linspace(
          360.0, 0.0, n_samples, endpoint=endpoint
      ).astype(np.double)
  
      return self.direct(center, azimuths, radius_m)[:, 0:2]
  
file_path: cartopy/lib/cartopy/geodesic.py
imports: import numpy
  import pyproj
  import shapely.geometry
label_desc: Use image node_id 5 for calling the Geodesic obj's underlying member method code with example usage: obj.circle(lon, lat, radius, n_samples, endpoint) and returns: self