Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TranslationTransform

Describes an offset in horizontal and vertical direction.

Hierarchy

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Initializes a new instance of the TranslationTransform class.

    Parameters

    • x: number

      The horizontal offset.

    • y: number

      The vertical offset.

    Returns TranslationTransform

Properties

x

x: number

Gets or sets the horizontal offset.

y

y: number

Gets or sets the vertical offset.

Accessors

Private type

  • get type(): "translation"
  • Returns "translation"

Static identity

Methods

Private serialize

  • serialize(target: BufferWriter): void
  • Parameters

    • target: BufferWriter

    Returns void

Static create

  • Returns the transformation that is defined by the specified description.

    Parameters

    Returns Transform

Static createTranslationTransform

  • Returns the translation transform that is defined by the specified description.

    Parameters

    Returns TranslationTransform

Generated using TypeDoc