Options
Menu

Class UV

Texture coordinates value object.

Hierarchy

  • UV

Index

Constructors

Accessors

Methods

Constructors

constructor

  • new UV(u?: number, v?: number): UV
  • Creates a new UV object.

    Parameters

    • Default value u: number = 0

      The horizontal coordinate of the texture value. Defaults to 0.

    • Default value v: number = 0

      The vertical coordinate of the texture value. Defaults to 0.

    Returns UV

Accessors

u

  • get (): number
  • set (value: number): void
  • Defines the horizontal coordinate of the texture value.

    Returns number

  • Defines the horizontal coordinate of the texture value.

    Parameters

    • value: number

    Returns void

v

  • get (): number
  • set (value: number): void
  • Defines the vertical coordinate of the texture value.

    Returns number

  • Defines the vertical coordinate of the texture value.

    Parameters

    • value: number

    Returns void

Methods

clone

  • clone(): UV
  • returns a new UV value Object

    Returns UV

toString

  • toString(): string
  • returns the value object as a string for trace/debug purpose

    Returns string

Generated using TypeDoc