Describes a transformation of a point in 2D space without rotation. Typically used for to transform texture coordinates.

Hierarchy

  • Vector4
    • OffsetScale

Constructors

  • Parameters

    • Optional offsetX: number
    • Optional offsetY: number
    • Optional scaleX: number
    • Optional scaleY: number

    Returns OffsetScale

Properties

isOffsetScale: true = true

Accessors

Methods

  • Transforms the point.

    Parameters

    • point: Vector2

      The point to transform.

    • target: Vector2 = ...

      The target to fill with the transformed point.

    Returns Vector2

    The transformed point.