Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Cone

A shape that is a 3D cone. A shape that is a 3D cone.

Hierarchy

  • Cone

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Cone(halfHeight: number, radius: number): Cone
  • new Cone(halfHeight: number, radius: number): Cone
  • Creates a new cone with the given radius and half-height.

    Parameters

    • halfHeight: number

      The balls half-height along the y axis.

    • radius: number

      The balls radius.

    Returns Cone

  • Creates a new cone with the given radius and half-height.

    Parameters

    • halfHeight: number

      The balls half-height along the y axis.

    • radius: number

      The balls radius.

    Returns Cone

Properties

Readonly halfHeight

halfHeight: number

The cone's half height, along the y axis. The cone's half height, along the y axis.

Readonly radius

radius: number

The radius of the cone's basis. The radius of the cone's basis.

Methods

intoRaw

  • intoRaw(): RawShape
  • intoRaw(): RawShape
  • Returns RawShape

  • Returns RawShape

Generated using TypeDoc