Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HeightField

Hierarchy

  • HeightField

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    • w: number
    • h: number

    Returns HeightField

Properties

data

data: Uint16Array = new Uint16Array()

h

h: number = 0

w

w: number = 0

Methods

get

  • get(i: number, j: number): number
  • Parameters

    • i: number
    • j: number

    Returns number

getAt

  • getAt(x: number, y: number): number
  • Parameters

    • x: number
    • y: number

    Returns number

getClamp

  • getClamp(i: number, j: number): number
  • Parameters

    • i: number
    • j: number

    Returns number

set

  • set(i: number, j: number, value: number): void
  • Parameters

    • i: number
    • j: number
    • value: number

    Returns void

Generated using TypeDoc