===== Primitive: Torus with X-axis =====
**Definition**: {r_0}^2-(x-x_0)^2-(y-y_0)^2-(z-z_0)^2-R^2+2*R*sqrt{(z-z_0)^2+(y-y_0)^2}
**Call**: hfTorusX(x,center,R,r0);
**Parameters**:
x - point coordinates array
center - center array
R - radius of revolution
r0 - disk radius
**Test file**: [[http://hyperfun.org/torus.hf|torus.hf]]
===== Primitive: Torus with Y-axis =====
**Definition**: {r_0}^2-(x-x_0)^2-(y-y_0)^2-(z-z_0)^2-R^2+2*R*sqrt{(z-z_0)^2+(x-x_0)^2}
**Call**: hfTorusY(x,center,R,r0);
**Parameters**:
x - point coordinates array
center - center array
R - radius of revolution
r0 - disk radius
**Test file**: [[http://hyperfun.org/torus.hf|torus.hf]]
===== Primitive: Torus with Z-axis =====
**Definition**: {r_0}^2-(x-x_0)^2-(y-y_0)^2-(z-z_0)^2-R^2+2*R*sqrt{(x-x_0)^2+(y-y_0)^2}
**Call**: hfTorusZ(x,center,R,r0);
**Parameters**:
x - point coordinates array
center - center array
R - radius of revolution
r0 - disk radius
**Test file**: [[http://hyperfun.org/torus.hf|torus.hf]]