Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Ball

A shape that is a sphere in 3D and a circle in 2D. A shape that is a sphere in 3D and a circle in 2D.

Hierarchy

  • Ball

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Ball(radius: number): Ball
  • new Ball(radius: number): Ball
  • Creates a new ball with the given radius.

    Parameters

    • radius: number

      The balls radius.

    Returns Ball

  • Creates a new ball with the given radius.

    Parameters

    • radius: number

      The balls radius.

    Returns Ball

Properties

Readonly radius

radius: number

The balls radius. The balls radius.

Methods

intoRaw

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

  • Returns RawShape

Generated using TypeDoc