Creates a new rectangle with the default color.

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

Syntax

C#
public XMaterialSprite AddRectangle(
	float x1,
	float y1,
	float z1,
	float x2,
	float y2,
	float z2,
	float x3,
	float y3,
	float z3,
	float x4,
	float y4,
	float z4,
	bool fill
)

Parameters

x1
Type: System..::.Single
The X coordinate ot the vertex nr. 1.
y1
Type: System..::.Single
The Y coordinate ot the vertex nr. 1.
z1
Type: System..::.Single
The Y coordinate ot the vertex nr. 1.
x2
Type: System..::.Single
The X coordinate ot the vertex nr. 2.
y2
Type: System..::.Single
The Y coordinate ot the vertex nr. 2.
z2
Type: System..::.Single
The Y coordinate ot the vertex nr. 2.
x3
Type: System..::.Single
The X coordinate ot the vertex nr. 3.
y3
Type: System..::.Single
The Y coordinate ot the vertex nr. 3.
z3
Type: System..::.Single
The Y coordinate ot the vertex nr. 3.
x4
Type: System..::.Single
The X coordinate ot the vertex nr. 4.
y4
Type: System..::.Single
The Y coordinate ot the vertex nr. 4.
z4
Type: System..::.Single
The Y coordinate ot the vertex nr. 4.
fill
Type: System..::.Boolean
Indicates whether the object is filled.

Return Value

Returns the created rectangle.

See Also