# 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
• [inout] r: the vector to be projected

• [in] R: 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
• [inout] r: the vector to be projected

• [in] R: the radius of the cone

• [in] dim: dimension of the cylinder