Creates a new torus.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public XMeshSprite AddTorus(
	float x,
	float y,
	float z,
	float innerRadius,
	float outerRadius,
	int sides,
	int rings
)

Parameters

x
Type: System..::.Single
The X coordinate of the object.
y
Type: System..::.Single
The Y coordinate of the object.
z
Type: System..::.Single
The Z coordinate of the object.
innerRadius
Type: System..::.Single
Inner radius.
outerRadius
Type: System..::.Single
Outer radius.
sides
Type: System..::.Int32
Sides number.
rings
Type: System..::.Int32
Rings number.

Return Value

Returns the newly created object.

See Also