Lines Matching defs:mat2d
481 * Transforms the vec2 with a mat2d
485 * @param {mat2d} m matrix to transform with
1821 * @name mat2d
1824 * A mat2d contains six elements defined as:
1839 var mat2d = {};
1842 * Creates a new identity mat2d
1844 * @returns {mat2d} a new 2x3 matrix
1846 mat2d.create = function() {
1858 * Creates a new mat2d initialized with values from an existing matrix
1860 * @param {mat2d} a matrix to clone
1861 * @returns {mat2d} a new 2x3 matrix
1863 mat2d.clone = function(a) {
1875 * Copy the values from one mat2d to another
1877 * @param {mat2d} out the receiving matrix
1878 * @param {mat2d} a the source matrix
1879 * @returns {mat2d} out
1881 mat2d.copy = function(out, a) {
1892 * Set a mat2d to the identity matrix
1894 * @param {mat2d} out the receiving matrix
1895 * @returns {mat2d} out
1897 mat2d.identity = function(out) {
1908 * Inverts a mat2d
1910 * @param {mat2d} out the receiving matrix
1911 * @param {mat2d} a the source matrix
1912 * @returns {mat2d} out
1914 mat2d.invert = function(out, a) {
1934 * Calculates the determinant of a mat2d
1936 * @param {mat2d} a the source matrix
1939 mat2d.determinant = function (a) {
1944 * Multiplies two mat2d's
1946 * @param {mat2d} out the receiving matrix
1947 * @param {mat2d} a the first operand
1948 * @param {mat2d} b the second operand
1949 * @returns {mat2d} out
1951 mat2d.multiply = function (out, a, b) {
1967 * Alias for {@link mat2d.multiply}
1970 mat2d.mul = mat2d.multiply;
1974 * Rotates a mat2d by the given angle
1976 * @param {mat2d} out the receiving matrix
1977 * @param {mat2d} a the matrix to rotate
1979 * @returns {mat2d} out
1981 mat2d.rotate = function (out, a, rad) {
2001 * Scales the mat2d by the dimensions in the given vec2
2003 * @param {mat2d} out the receiving matrix
2004 * @param {mat2d} a the matrix to translate
2005 * @param {mat2d} v the vec2 to scale the matrix by
2006 * @returns {mat2d} out
2008 mat2d.scale = function(out, a, v) {
2020 * Translates the mat2d by the dimensions in the given vec2
2022 * @param {mat2d} out the receiving matrix
2023 * @param {mat2d} a the matrix to translate
2024 * @param {mat2d} v the vec2 to translate the matrix by
2025 * @returns {mat2d} out
2027 mat2d.translate = function(out, a, v) {
2038 * Returns a string representation of a mat2d
2040 * @param {mat2d} a matrix to represent as a string
2043 mat2d.str = function (a) {
2044 return 'mat2d(' + a[0] + ', ' + a[1] + ', ' + a[2] + ', ' +
2049 exports.mat2d = mat2d;
2406 * Copies the values from a mat2d into a mat3