Options
All
  • Public
  • Public/Protected
  • All
Menu

Class R2EllipticCurve

Hierarchy

Implements

Index

Constructors

constructor

  • new R2EllipticCurve(cx: number, cy: number, rx: number, ry: number, phi: number, a0: number, da: number): R2EllipticCurve
  • Parameters

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

    Returns R2EllipticCurve

Properties

Readonly a0

a0: number

Readonly cx

cx: number

Readonly cy

cy: number

Readonly da

da: number

Readonly phi

phi: number

Readonly rx

rx: number

Readonly ry

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

draw

  • Parameters

    Returns void

drawMove

  • Parameters

    Returns void

drawRest

  • 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

interpolate

  • Parameters

    • u: number

    Returns R2Point

interpolateX

  • interpolateX(u: number): number
  • Parameters

    • u: number

    Returns number

interpolateY

  • interpolateY(u: number): number
  • Parameters

    • u: number

    Returns number

intersects

  • Parameters

    Returns boolean

split

toEndpoints

  • toEndpoints(): { large: boolean; phi: number; rx: number; ry: number; sweep: boolean; x0: number; x1: number; y0: number; y1: number }
  • Returns { large: boolean; phi: number; rx: number; ry: number; sweep: boolean; x0: number; x1: number; y0: number; y1: number }

    • large: boolean
    • phi: number
    • rx: number
    • ry: number
    • sweep: boolean
    • x0: number
    • x1: number
    • y0: number
    • y1: number

toPathString

  • Parameters

    Returns string

toString

  • toString(): string
  • Returns string

transform

transformDraw

transformDrawMove

transformDrawRest

union

  • Parameters

    Returns R2Shape

writeMove

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

    Returns void

writePath

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

    Returns void

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 fromEndpoints

  • fromEndpoints(x0: number, y0: number, rx: number, ry: number, phi: number, large: boolean, sweep: boolean, x1: number, y1: number): R2EllipticCurve
  • Parameters

    • x0: number
    • y0: number
    • rx: number
    • ry: number
    • phi: number
    • large: boolean
    • sweep: boolean
    • x1: number
    • y1: number

    Returns R2EllipticCurve

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