Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "components/ring"

Index

Functions

Const arcVerts

  • arcVerts(o: Vec, r: number, start: number, end: number, thetaRes?: number): Iterable<Vec>
  • Parameters

    • o: Vec
    • r: number
    • start: number
    • end: number
    • Default value thetaRes: number = 12

    Returns Iterable<Vec>

Const ring

  • ring(gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, min: number, max: number, prec: number, val: number, thetaGap: number, rscale: number, label?: undefined | string, fmt?: Fn<number, string>, info?: undefined | string): undefined | number
  • Parameters

    • gui: IMGUI
    • layout: IGridLayout | LayoutBox
    • id: string
    • min: number
    • max: number
    • prec: number
    • val: number
    • thetaGap: number
    • rscale: number
    • Optional label: undefined | string
    • Optional fmt: Fn<number, string>
    • Optional info: undefined | string

    Returns undefined | number

Const ringGroup

  • ringGroup(gui: IMGUI, layout: IGridLayout, id: string, min: number, max: number, prec: number, horizontal: boolean, thetaGap: number, rscale: number, vals: number[], label: string[], fmt?: Fn<number, string>, info?: string[]): undefined | number[]
  • Parameters

    • gui: IMGUI
    • layout: IGridLayout
    • id: string
    • min: number
    • max: number
    • prec: number
    • horizontal: boolean
    • thetaGap: number
    • rscale: number
    • vals: number[]
    • label: string[]
    • Optional fmt: Fn<number, string>
    • Default value info: string[] = []

    Returns undefined | number[]

Const ringHeight

  • ringHeight(w: number, thetaGap: number): number

Const ringRaw

  • ringRaw(gui: IMGUI, id: string, x: number, y: number, w: number, h: number, min: number, max: number, prec: number, val: number, thetaGap: number, rscale: number, lx: number, ly: number, label?: undefined | string, fmt?: Fn<number, string>, info?: undefined | string): undefined | number
  • Parameters

    • gui: IMGUI
    • id: string
    • x: number
    • y: number
    • w: number
    • h: number
    • min: number
    • max: number
    • prec: number
    • val: number
    • thetaGap: number
    • rscale: number
    • lx: number
    • ly: number
    • Optional label: undefined | string
    • Optional fmt: Fn<number, string>
    • Optional info: undefined | string

    Returns undefined | number

Generated using TypeDoc