Module Transform-PIXI

class type _t = { ... }
type t = Js.t(_t);

Transform that takes care about its versions

module Impl: { ... };
include Impl;
let create: unit => t;

creates new transform

let identity: Js.t(_t);

A default (identity) transform

let getLocalTransform: Js.t(_t) => Js.t(PIXI.Matrix.#_t);

The local transformation matrix

let setLocalTransform: Js.t(_t) => Js.t(PIXI.Matrix.#_t) => unit;

The local transformation matrix

let getPivot: Js.t(_t) => Js.t(PIXI.ObservablePoint.#_t);

The pivot point of the displayObject that it rotates around.

let setPivot: Js.t(_t) => Js.t(PIXI.ObservablePoint.#_t) => unit;

The pivot point of the displayObject that it rotates around.

let getPosition: Js.t(_t) => Js.t(PIXI.ObservablePoint.#_t);

The coordinate of the object relative to the local coordinates of the parent

let setPosition: Js.t(_t) => Js.t(PIXI.ObservablePoint.#_t) => unit;

The coordinate of the object relative to the local coordinates of the parent

let getRotation: Js.t(_t) => float;

The rotation of the object in radians.

let setRotation: Js.t(_t) => float => unit;

The rotation of the object in radians.

let getScale: Js.t(_t) => float;

The scale factor of the object.

let setScale: Js.t(_t) => float => unit;

The scale factor of the object.

let getSkew: Js.t(_t) => float;

The skew factor of the object.

let setSkew: Js.t(_t) => float => unit;

The skew factor of the object.

let getWorldTransform: Js.t(_t) => Js.t(PIXI.Matrix.#_t);

The world transformation matrix

let setWorldTransform: Js.t(_t) => Js.t(PIXI.Matrix.#_t) => unit;

The world transformation matrix

let setFromMatrix: Js.t(_t) => matrix:Js.t(PIXI.Matrix.#_t) => unit;

Decomposes a matrix and sets the transforms properties based on it

parameter matrix

The matrix to decompose

let updateLocalTransform: Js.t(_t) => unit;

Updates the local transformation matrix

let updateTransform: Js.t(_t) => parentTransform:Js.t(_t) => unit;

Updates the local and the world transformation matrices

parameter parentTransform

The parent transform