Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "ast/lit"

Index

Variables

Const $bvec

$bvec: (Anonymous function) = $gvec(wrapBool, FALSE)

Const $ivec

$ivec: (Anonymous function) = $gvec(wrapInt, INT0)

Const $uvec

$uvec: (Anonymous function) = $gvec(wrapUint, UINT0)

Const $vec

$vec: (Anonymous function) = $gvec(wrapFloat, FLOAT0)

Const FALSE

FALSE: Lit<"bool"> = bool(false)

Const FLOAT0

FLOAT0: FloatTerm = float(0)

Const FLOAT05

FLOAT05: FloatTerm = float(0.5)

Const FLOAT1

FLOAT1: FloatTerm = float(1)

Const FLOAT2

FLOAT2: FloatTerm = float(2)

Const HALF_PI

HALF_PI: FloatTerm = float(Math.PI / 2)

Const INT0

INT0: IntTerm = int(0)

Const INT1

INT1: IntTerm = int(1)

Const PI

PI: FloatTerm = float(Math.PI)

Const SQRT2

SQRT2: FloatTerm = float(Math.SQRT2)

Const TAU

TAU: FloatTerm = float(Math.PI * 2)

Const TRUE

TRUE: Lit<"bool"> = bool(true)

Const UINT0

UINT0: UintTerm = uint(0)

Const UINT1

UINT1: UintTerm = uint(1)

Const wrapBool

wrapBool: (Anonymous function) = wrap("bool", bool)

Takes a plain number or numeric term and wraps it as boolean literal if needed.

param

-

Const wrapFloat

wrapFloat: (Anonymous function) = wrap("float", float)

Takes a plain number or numeric term and wraps it as float literal if needed.

param

-

Const wrapInt

wrapInt: (Anonymous function) = wrap("int", int)

Takes a plain number or numeric term and wraps it as signed integer literal if needed.

param

-

Const wrapUint

wrapUint: (Anonymous function) = wrap("uint", uint)

Takes a plain number or numeric term and wraps it as unsigned integer literal if needed.

param

-

Functions

Const $gmat

  • $gmat<T>(type: T, info: (undefined | string)[], xs: any[]): Lit<T>

Const $gvec

  • $gvec(wrap: Fn<any, Term<any> | undefined>, init: Term<any>): (Anonymous function)

Const $gvec2

  • $gvec2<T>(type: T, ctor: Fn<any[], (undefined | Term<any>)[]>, xs: any[]): Lit<T>

Const $gvec3

  • $gvec3<T>(type: T, ctor: Fn<any[], (undefined | Term<any>)[]>, xs: any[]): Lit<T>

Const $gvec4

  • $gvec4<T>(type: T, ctor: Fn<any[], (undefined | Term<any>)[]>, xs: any[]): Lit<T>

Const $info

  • $info(xs: any[], info: (undefined | string)[]): any

Const bool

bvec2

bvec3

bvec4

Const float

Const int

ivec2

ivec3

ivec4

Const lit

  • lit<T>(type: T, val: any, info?: undefined | string): Lit<T>

mat2

mat3

mat4

Const uint

uvec2

uvec3

uvec4

vec2

vec3

vec4

Const wrap

  • wrap<T>(type: T, ctor: Fn<any, Term<T>>): (Anonymous function)

Generated using TypeDoc