Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

  • new R2Point(x: number, y: number): R2Point
  • Parameters

    • x: number
    • y: number

    Returns R2Point

Properties

Readonly x

x: number

Readonly y

y: 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

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<R2Point>

  • Parameters

    • that: unknown

    Returns null | Interpolator<R2Point>

intersects

  • Parameters

    Returns boolean

isDefined

  • isDefined(): boolean
  • Returns boolean

minus

  • Parameters

    Returns R2Point

  • Parameters

    Returns R2Vector

plus

  • Parameters

    Returns R2Point

toAny

  • Returns R2PointInit

toString

  • toString(): string
  • Returns string

transform

union

  • Parameters

    Returns R2Shape

Static fromAny

Static fromInit

  • Parameters

    Returns R2Point

Static fromTuple

  • Parameters

    Returns R2Point

Static isAny

  • Parameters

    • value: unknown

    Returns value is AnyR2Point

Static isInit

  • Parameters

    • value: unknown

    Returns value is R2PointInit

Static isTuple

  • Parameters

    • value: unknown

    Returns value is R2PointTuple

Static of

  • of(x: number, y: number): R2Point
  • Parameters

    • x: number
    • y: number

    Returns R2Point

Static origin

  • Returns R2Point

Static undefined

  • Returns R2Point

Generated using TypeDoc