Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

  • new R2Circle(cx: number, cy: number, r: number): R2Circle
  • Parameters

    • cx: number
    • cy: number
    • r: number

    Returns R2Circle

Properties

Readonly cx

cx: number

Readonly cy

cy: number

Readonly r

r: number

Accessors

bounds

  • Returns R2Box

xMax

  • get xMax(): number
  • Returns number

xMin

  • get xMin(): number
  • Returns number

yMax

  • get yMax(): number
  • Returns number

yMin

  • get yMin(): number
  • Returns number

Methods

contains

  • contains(that: AnyR2Shape): boolean
  • contains(x: number, y: number): boolean
  • Parameters

    Returns boolean

  • Parameters

    • x: number
    • y: number

    Returns boolean

containsBox

  • containsBox(that: R2Box): boolean
  • Parameters

    Returns boolean

containsCircle

  • containsCircle(that: R2Circle): boolean
  • Parameters

    Returns boolean

containsPoint

  • containsPoint(that: R2Point): boolean
  • Parameters

    Returns boolean

containsSegment

  • Parameters

    Returns boolean

debug

  • debug(output: Output<unknown>): void
  • Parameters

    Returns void

equals

  • equals(that: unknown): boolean
  • Parameters

    • that: unknown

    Returns boolean

equivalentTo

  • equivalentTo(that: unknown, epsilon?: number): boolean
  • Parameters

    • that: unknown
    • Optional epsilon: number

    Returns boolean

hashCode

  • hashCode(): number
  • Returns number

interpolateTo

  • Parameters

    Returns Interpolator<R2Circle>

  • Parameters

    • that: unknown

    Returns null | Interpolator<R2Circle>

intersects

  • Parameters

    Returns boolean

intersectsBox

  • intersectsBox(that: R2Box): boolean
  • Parameters

    Returns boolean

intersectsCircle

  • intersectsCircle(that: R2Circle): boolean
  • Parameters

    Returns boolean

intersectsPoint

  • intersectsPoint(that: R2Point): boolean
  • Parameters

    Returns boolean

intersectsSegment

  • intersectsSegment(that: R2Segment): boolean
  • Parameters

    Returns boolean

isDefined

  • isDefined(): boolean
  • Returns boolean

toAny

  • Returns R2CircleInit

toString

  • toString(): string
  • Returns string

transform

union

  • Parameters

    Returns R2Shape

Static fromAny

Static fromInit

  • Parameters

    Returns R2Circle

Static isAny

  • Parameters

    • value: unknown

    Returns value is AnyR2Circle

Static isInit

  • Parameters

    • value: unknown

    Returns value is R2CircleInit

Static of

  • of(cx: number, cy: number, r: number): R2Circle
  • Parameters

    • cx: number
    • cy: number
    • r: number

    Returns R2Circle

Generated using TypeDoc