Gjsify LogoGjsify Logo

Hierarchy

  • Matrix3

Index

Constructors

Properties

coeff: number[]
name: string

Methods

  • determinant(): number
  • identity(): void
  • invert(): void
  • is_identity(): boolean
  • Check if a matrix is the identity matrix.

    Returns TRUE if the matrix is the identity matrix.

    Returns boolean

  • is_scale(): boolean
  • is_translate(): boolean
  • Check if a matrix only does translation.

    Returns TRUE if the matrix only does trasnlation.

    Returns boolean

  • originate(x: number, y: number): void
  • Shift the origin of the transformation specified by matrix to (x, y). In other words, calculate the matrix that:

    1. Translates the input by (-x, -y).

    2. Transforms the result using the original matrix.

    3. Translates the result by (x, y).

    Parameters

    • x: number

      x coordinate of new origin

    • y: number

      y coordinate of new origin.

    Returns void

  • parse_string(string: string): void
  • Parse a transofmation matrix from a string.

    Parameters

    • string: string

      a string describing the matrix (right now a small subset of the transform strings allowed by SVG)

    Returns void

  • to_string(): string
  • Serialize a #GeglMatrix3 to a string.

    Returns a freshly allocated string representing that #GeglMatrix3, the returned string should be g_free()'d.

    Returns string

  • transform_point(x: number, y: number): void
  • transforms the coordinates provided in x and y and changes to the coordinates gotten when the transformed with the matrix.

    Parameters

    • x: number

      pointer to an x coordinate

    • y: number

      pointer to an y coordinate

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method