Function G2lib::xy_to_guess_angle

Function Documentation

void G2lib::xy_to_guess_angle(int_type npts, real_type const *x, real_type const *y, real_type *theta, real_type *theta_min, real_type *theta_max, real_type *omega, real_type *len)

Given a list of \( n \) points \( (x_i,y_i) \) compute the guess angles for the \( G^2 \) curve construction.

../_images/node_angles.jpg

Parameters
  • npts[in] \( n \)

  • x[in] x-coordinates of the points

  • y[in] y-coordinates of the points

  • theta[out] guess angles

  • theta_min[out] minimum angles at each nodes

  • theta_max[out] maximum angles at each nodes

  • omega[out] angles of two consecutive points, with accumulated \( 2\pi \) angle rotation

  • len[out] distance between two consecutive poijts