Options
All
  • Public
  • Public/Protected
  • All
V1.7
  • V1.6
  • V1.7
Menu

Namespace utils

Index

Functions

BuildTexCoords

  • BuildTexCoords(coordsMin: [number, number] | Float32Array, coordsMax: [number, number] | Float32Array): Array<[number, number]>
  • Given the lower-left and upper-right corners of an un-rotated quad, builds the texture coordinates for rendering it in full.

    priv

    none

    Parameters

    • coordsMin: [number, number] | Float32Array

      Min texture coordinates (lower-left corner).

    • coordsMax: [number, number] | Float32Array

      Max texture coordinates (upper-right corner).

    Returns Array<[number, number]>

    Texture coordinates for rendering the quad geometry.

ToAscii

  • ToAscii(unicode: string): string
  • Truncates all characters to the range of char.

    priv

    none

    Parameters

    • unicode: string

    Returns string

ToLower

  • ToLower(str: string): string
  • Applies std::tolower to every character of the input string.

    priv

    none

    Parameters

    • str: string

      string of ASCII characters (UTF-8 doesn't work with this function).

    Returns string

    a new string containing the characters of str with std::tolower applied.

ToUnicode

  • ToUnicode(ascii: string): string

ToUpper

  • ToUpper(str: string): string
  • Applies std::toupper to every character of the input string.

    priv

    none

    Parameters

    • str: string

      string of ASCII characters (UTF-8 doesn't work with this function).

    Returns string

    a new string containing the characters of str with std::toupper applied.

Utf32ToUtf8

  • Utf32ToUtf8(utf32String: string): string
  • Converts a UTF32 string into the UTF8 equivalent.

    priv

    none

    Parameters

    • utf32String: string

    Returns string

Utf8ToUtf32

  • Utf8ToUtf32(utf8String: string): string
  • Converts a UTF8 string into the UTF32 equivalent.

    priv

    none

    Parameters

    • utf8String: string

    Returns string

Generated using TypeDoc