Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RoundCylinder

A shape that is a 3D cylinder with round corners. A shape that is a 3D cylinder with round corners.

Hierarchy

  • RoundCylinder

Index

Constructors

Properties

Methods

Constructors

constructor

  • new RoundCylinder(halfHeight: number, radius: number, borderRadius: number): RoundCylinder
  • new RoundCylinder(halfHeight: number, radius: number, borderRadius: number): RoundCylinder
  • 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.

    • borderRadius: number

      The radius of the borders of this cylinder.

    Returns RoundCylinder

  • 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.

    • borderRadius: number

      The radius of the borders of this cylinder.

    Returns RoundCylinder

Properties

Readonly borderRadius

borderRadius: number

The radius of the cylinder's rounded edges and vertices. The radius of the cylinder's rounded edges and vertices.

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