Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "ops/vertices"

Index

Variables

Const vertices

vertices: MultiFn1O<IShape, number | Partial<SamplingOpts>, Vec[]> = defmulti(dispatch)

Functions

Const circleOpts

  • circleOpts(opts: number | Partial<SamplingOpts>, r: number): [number, boolean]
  • Parameters

    • opts: number | Partial<SamplingOpts>
    • r: number

    Returns [number, boolean]

Const ensureVertices

  • ensureVertices(shape: IShape | Vec[]): Vec[]
  • Takes array of vectors or an IShape. If the latter, calls vertices and return result, else returns original array.

    Parameters

    • shape: IShape | Vec[]

    Returns Vec[]

Generated using TypeDoc