Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    GeometricPrimitive.Cone Class

    Namespace: Stride.Graphics.GeometricPrimitives
    Assembly: Stride.Graphics.dll

    A cone with a circular base and rolled face.

    System.Object → GeometricPrimitive.Cone
    Derived from GeometricPrimitive.Cone:

    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.

    | Improve this Doc View Source

    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 true vertices and indices will be transformed to left handed. Default is false.

    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 true vertices and indices will be transformed to left handed. Default is false.

    Returns
    Type Description
    GeometricMeshData<VertexPositionNormalTexture>

    A cone.


    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation