Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Circle

Canonical circle representation.

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Circle(center: number[], radius: number): Circle
  • Parameters

    • center: number[]

      The center.

    • radius: number

      The radius.

    Returns Circle

Properties

center

center: number[]

The center.

radius

radius: number

The radius.

Methods

Static engulfsCircle

  • Returns true if the first circle engulfs the second.

    Parameters

    Returns boolean

Static scale

  • Returns a scaled version of the given circle without changing its center.

    Parameters

    • circle: Circle
    • s: number

      multiplier

    Returns Circle

Static toString

  • toString(circle: Circle): string
  • Returns a human-readable string description of the given circle.

    Parameters

    Returns string

Generated using TypeDoc