Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Cylinder

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

Hierarchy

  • Cylinder

Index

Constructors

Properties

Methods

Constructors

constructor

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

    Parameters

    • halfHeight: number

      The balls half-height along the y axis.

    • radius: number

      The balls radius.

    Returns Cylinder

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

    Parameters

    • halfHeight: number

      The balls half-height along the y axis.

    • radius: number

      The balls radius.

    Returns Cylinder

Properties

Readonly halfHeight

halfHeight: number

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

Readonly radius

radius: number

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

Methods

intoRaw

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

  • Returns RawShape

Generated using TypeDoc