GeometricPrimitive.Cone Class
Namespace: Stride.Graphics.GeometricPrimitivesAssembly: Stride.Graphics.dll
A cone with a circular base and rolled face.
public static class Cone
| Name | Description | |
|---|---|---|
| Methods | ||
| New(GraphicsDevice, Single, Single, Int32, Single, Single, Boolean) | Creates a cone a circular base and a rolled face. |
|
| New(Single, Single, Int32, Single, Single, Boolean) | Creates a cone a circular base and a rolled face. |
|
Methods
New(GraphicsDevice, Single, Single, Int32, Single, Single, Boolean)
Creates a cone a circular base and a rolled face.
public static GeometricPrimitive New(GraphicsDevice device, float radius = 0.5F, float height = 1F, int tessellation = 16, float uScale = 1F, float vScale = 1F, bool toLeftHanded = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicsDevice | device | The device. |
| System.Single | radius | The radius or the base |
| System.Single | height | The height of the cone |
| System.Int32 | tessellation | The number of segments composing the base |
| System.Single | uScale | Scale U coordinates between 0 and the values of this parameter. |
| System.Single | vScale | Scale V coordinates 0 and the values of this parameter. |
| System.Boolean | toLeftHanded | if set to |
Returns
| Type | Description |
|---|---|
| GeometricPrimitive | A cone. |
New(Single, Single, Int32, Single, Single, Boolean)
Creates a cone a circular base and a rolled face.
public static GeometricMeshData<VertexPositionNormalTexture> New(float radius = 0.5F, float height = 1F, int tessellation = 16, float uScale = 1F, float vScale = 1F, bool toLeftHanded = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | radius | The radius or the base |
| System.Single | height | The height of the cone |
| System.Int32 | tessellation | The number of segments composing the base |
| System.Single | uScale | Scale U coordinates between 0 and the values of this parameter. |
| System.Single | vScale | Scale V coordinates 0 and the values of this parameter. |
| System.Boolean | toLeftHanded | if set to |
Returns
| Type | Description |
|---|---|
| GeometricMeshData<VertexPositionNormalTexture> | A cone. |