Class GeometricPrimitive.Disc
- Namespace
- Stride.Graphics.GeometricPrimitives
- Assembly
- Stride.Graphics.dll
A disc - a circular base, or a circular sector.
public static class GeometricPrimitive.Disc
- Inheritance
-
GeometricPrimitive.Disc
Methods
New(GraphicsDevice, float, float, int, float, float, bool)
Creates a disc.
public static GeometricPrimitive New(GraphicsDevice device, float radius = 0.5, float angle = 6.2831855, int tessellation = 16, float uScale = 1, float vScale = 1, bool toLeftHanded = false)
Parameters
device
GraphicsDeviceThe device.
radius
floatThe radius of the base
angle
floatThe angle of the circular sector
tessellation
intThe number of segments composing the base
uScale
floatScale U coordinates between 0 and the values of this parameter.
vScale
floatScale V coordinates 0 and the values of this parameter.
toLeftHanded
boolif set to
true
vertices and indices will be transformed to left handed. Default is false.
Returns
- GeometricPrimitive
A disc.
New(float, float, int, float, float, bool)
Creates a disc.
public static GeometricMeshData<VertexPositionNormalTexture> New(float radius = 0.5, float sectorAngle = 6.2831855, int tessellation = 16, float uScale = 1, float vScale = 1, bool toLeftHanded = false)
Parameters
radius
floatThe radius of the base
sectorAngle
floatThe angle of the circular sector
tessellation
intThe number of segments composing the base
uScale
floatScale U coordinates between 0 and the values of this parameter.
vScale
floatScale V coordinates 0 and the values of this parameter.
toLeftHanded
boolif set to
true
vertices and indices will be transformed to left handed. Default is false.