/* mesh.h * by Francois Labelle (flab@cs.berkeley.edu) * December 3, 1999 */ /* type for real numbers, uncomment exactly ONE of the following */ //typedef float real; typedef double real; struct EllipticityTensor { real ix, iy; // where the i-vector (x-axis) maps real jx, jy; // where the j-vector (y-axis) maps }; /* prototypes of functions found in transform.c */ void T_hstretch(struct EllipticityTensor *T, real x, real y, real nx, real ny); void T_vstretch(struct EllipticityTensor *T, real x, real y, real nx, real ny); void T_dstretch(struct EllipticityTensor *T, real x, real y, real nx, real ny); void T_sink(struct EllipticityTensor *T, real x, real y, real nx, real ny); void T_swirl(struct EllipticityTensor *T, real x, real y, real nx, real ny); void T_hline(struct EllipticityTensor *T, real x, real y, real nx, real ny); void T_vline(struct EllipticityTensor *T, real x, real y, real nx, real ny); void T_dline(struct EllipticityTensor *T, real x, real y, real nx, real ny); void T_center(struct EllipticityTensor *T, real x, real y, real nx, real ny); void T_perimeter(struct EllipticityTensor *T, real x, real y, real nx, real ny); void T_left(struct EllipticityTensor *T, real x, real y, real nx, real ny); void T_right(struct EllipticityTensor *T, real x, real y, real nx, real ny); void T_top(struct EllipticityTensor *T, real x, real y, real nx, real ny); void T_bottom(struct EllipticityTensor *T, real x, real y, real nx, real ny); void T_custom(struct EllipticityTensor *T, real x, real y, real nx, real ny);