Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Sampler<T>

Type parameters

  • T

Hierarchy

  • Sampler

Index

Constructors

constructor

  • Parameters

    • data: keyof T[][]
    • Default value rotation: Direction = Direction.East

    Returns Sampler

Properties

Readonly data

data: keyof T[][]

Readonly hasContent

hasContent: boolean

Readonly height

height: number

mirrored

mirrored: boolean = false

rotation

rotation: Direction

Readonly width

width: number

Methods

sample

  • sample(x: number, y: number): undefined | T
  • Parameters

    • x: number
    • y: number

    Returns undefined | T

setMirrored

  • setMirrored(mirrored: boolean): this
  • Parameters

    • mirrored: boolean

    Returns this

setRotation

  • Parameters

    Returns this

Generated using TypeDoc