Gjsify LogoGjsify Logo

Hierarchy

  • Matrix3

Index

Constructors

Properties

coeff: number[]
name: string

Methods

  • determinant(): number
  • Check if two matrices are equal.

    Returns TRUE if the matrices are equal.

    Parameters

    Returns boolean

  • identity(): void
  • Set the provided matrix to the identity matrix.

    Returns void

  • invert(): void
  • isAffine(): boolean
  • Check if a matrix only does an affine transformation.

    Returns TRUE if the matrix only does an affine transformation.

    Returns boolean

  • isIdentity(): boolean
  • Check if a matrix is the identity matrix.

    Returns TRUE if the matrix is the identity matrix.

    Returns boolean

  • isScale(): boolean
  • Check if a matrix only does scaling.

    Returns TRUE if the matrix only does scaling.

    Returns boolean

  • isTranslate(): 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

  • parseString(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

  • roundError(): void
  • Rounds numerical errors in matrix to the nearest integer.

    Returns void

  • toString(): 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

  • transformPoint(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