Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly Abstract xMax

xMax: number

Readonly Abstract xMin

xMin: number

Readonly Abstract yMax

yMax: number

Readonly Abstract yMin

yMin: number

Accessors

bounds

  • Returns R2Box

Methods

Abstract contains

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

    Returns boolean

  • Parameters

    • x: number
    • y: number

    Returns boolean

draw

  • Parameters

    Returns void

Abstract drawMove

  • Parameters

    Returns void

Abstract drawRest

  • Parameters

    Returns void

Abstract equals

  • equals(that: unknown): boolean
  • Parameters

    • that: unknown

    Returns boolean

Abstract equivalentTo

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

    • that: unknown
    • Optional epsilon: number

    Returns boolean

Abstract interpolate

  • Parameters

    • u: number

    Returns R2Point

Abstract interpolateX

  • interpolateX(u: number): number
  • Parameters

    • u: number

    Returns number

Abstract interpolateY

  • interpolateY(u: number): number
  • Parameters

    • u: number

    Returns number

Abstract intersects

  • Parameters

    Returns boolean

Abstract split

  • Parameters

    • u: number

    Returns [R2Curve, R2Curve]

toPathString

  • Parameters

    Returns string

Abstract transform

transformDraw

  • Parameters

    Returns void

Abstract transformDrawMove

  • Parameters

    Returns void

Abstract transformDrawRest

  • Parameters

    Returns void

union

  • Parameters

    Returns R2Shape

Abstract writeMove

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

    Returns void

writePath

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

    Returns void

Abstract writeRest

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

    Returns void

Static cubic

  • cubic(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number): R2Curve
  • Parameters

    • x0: number
    • y0: number
    • x1: number
    • y1: number
    • x2: number
    • y2: number
    • x3: number
    • y3: number

    Returns R2Curve

Static elliptic

  • elliptic(cx: number, cy: number, rx: number, ry: number, phi: number, a0: number, da: number): R2Curve
  • Parameters

    • cx: number
    • cy: number
    • rx: number
    • ry: number
    • phi: number
    • a0: number
    • da: number

    Returns R2Curve

Static fromAny

  • Parameters

    Returns R2Shape

Static isAny

  • Parameters

    • value: unknown

    Returns value is AnyR2Shape

Static linear

  • linear(x0: number, y0: number, x1: number, y1: number): R2Curve
  • Parameters

    • x0: number
    • y0: number
    • x1: number
    • y1: number

    Returns R2Curve

Static parse

  • Parameters

    • string: string

    Returns R2Curve

Static quadratic

  • quadratic(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number): R2Curve
  • Parameters

    • x0: number
    • y0: number
    • x1: number
    • y1: number
    • x2: number
    • y2: number

    Returns R2Curve

Generated using TypeDoc