Options
All
  • Public
  • Public/Protected
  • All
Menu

Module exprs/getcompexpr

Index

Functions

checkLegalComponents

  • checkLegalComponents(comps: string, vec: Vec): void
  • checks if components accessing a vector are legal. components can be illegal if they mix sets (e.g. v.rgzw) or contain characters outside of any set (e.g. v.lmno)

    Parameters

    • comps: string

      components string

    • vec: Vec

      vector being accessed

    Returns void

get2comp

  • creates an expression that gets 2 components from a vector

    Type parameters

    Parameters

    • vec: T

      the vector to get components of

    • comps: string

      components string

    Returns Get2CompExpr<T>

get3comp

  • creates an expression that gets 3 components from a vector

    Type parameters

    Parameters

    • vec: T

      the vector to get components of

    • comps: string

      components string

    Returns Get3CompExpr<T>

get4comp

  • creates an expression that gets 4 components from a vector

    Type parameters

    Parameters

    • vec: T

      the vector to get components of

    • comps: string

      components string

    Returns Get4CompExpr<T>

getcomp

  • creates an expression that gets 1 component from a vector

    Type parameters

    Parameters

    • vec: T

      the vector to get components of

    • comps: string

      components string

    Returns GetCompExpr<T>

Generated using TypeDoc