File numerics/src/tools/projectionOnCylinder.h

File numerics/src/tools/projectionOnCylinder.h#

Go to the source code of this file

functions to project on a cylinder

Functions

void projectionOnCylinder(double *r, double R)#

projectionOnCylinder Projection onto the positive Cylinder of radius R \( \{ r, r_1 \geq 0, 0 \sqrt(r_2^2+r_3^2) \geq R \} \)

Parameters:
  • r[inout] the vector to be projected

  • R[in] the radius of the cone

void projectionOnGeneralCylinder(double *r, double R, int dim)#

projectionOnGeneralCylinder Projection onto the positive Cylinder of radius R \( \{ r, r_1 \geq 0, 0 \sqrt(r_2^2+r_3^2) \geq R \} \)

Parameters:
  • r[inout] the vector to be projected

  • R[in] the radius of the cone

  • dim[in] dimension of the cylinder