Options
All
  • Public
  • Public/Protected
  • All
Menu

Class used to store factor gradient

Hierarchy

  • FactorGradient

Implements

Index

Constructors

Properties

Methods

Constructors

  • new FactorGradient(gradient: number, factor1: number, factor2?: number): FactorGradient
  • Creates a new factor gradient

    Parameters

    • gradient: number

      gets or sets the gradient value (between 0 and 1)

    • factor1: number

      gets or sets first associated factor

    • Optional factor2: number

      gets or sets second associated factor

    Returns FactorGradient

Properties

factor1: number

Gets or sets first associated factor

factor2?: number

Gets or sets second associated factor

gradient: number

Gets or sets the gradient value (between 0 and 1)

Methods

  • getFactor(): number
  • Will get a number picked randomly between factor1 and factor2. If factor2 is undefined then factor1 will be used

    Returns number

    the picked number

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme