Lines Matching defs:mat4
514 * Transforms the vec2 with a mat4
520 * @param {mat4} m matrix to transform with
974 * Transforms the vec3 with a mat4.
979 * @param {mat4} m matrix to transform with
1462 * Transforms the vec4 with a mat4.
1466 * @param {mat4} m matrix to transform with
2104 * @param {mat4} a the source 4x4 matrix
2507 * @name mat4
2510 var mat4 = {};
2513 * Creates a new identity mat4
2515 * @returns {mat4} a new 4x4 matrix
2517 mat4.create = function() {
2539 * Creates a new mat4 initialized with values from an existing matrix
2541 * @param {mat4} a matrix to clone
2542 * @returns {mat4} a new 4x4 matrix
2544 mat4.clone = function(a) {
2566 * Copy the values from one mat4 to another
2568 * @param {mat4} out the receiving matrix
2569 * @param {mat4} a the source matrix
2570 * @returns {mat4} out
2572 mat4.copy = function(out, a) {
2593 * Set a mat4 to the identity matrix
2595 * @param {mat4} out the receiving matrix
2596 * @returns {mat4} out
2598 mat4.identity = function(out) {
2619 * Transpose the values of a mat4
2621 * @param {mat4} out the receiving matrix
2622 * @param {mat4} a the source matrix
2623 * @returns {mat4} out
2625 mat4.transpose = function(out, a) {
2667 * Inverts a mat4
2669 * @param {mat4} out the receiving matrix
2670 * @param {mat4} a the source matrix
2671 * @returns {mat4} out
2673 mat4.invert = function(out, a) {
2721 * Calculates the adjugate of a mat4
2723 * @param {mat4} out the receiving matrix
2724 * @param {mat4} a the source matrix
2725 * @returns {mat4} out
2727 mat4.adjoint = function(out, a) {
2753 * Calculates the determinant of a mat4
2755 * @param {mat4} a the source matrix
2758 mat4.determinant = function (a) {
2782 * Multiplies two mat4's
2784 * @param {mat4} out the receiving matrix
2785 * @param {mat4} a the first operand
2786 * @param {mat4} b the second operand
2787 * @returns {mat4} out
2789 mat4.multiply = function (out, a, b) {
2823 * Alias for {@link mat4.multiply}
2826 mat4.mul = mat4.multiply;
2829 * Translate a mat4 by the given vector
2831 * @param {mat4} out the receiving matrix
2832 * @param {mat4} a the matrix to translate
2834 * @returns {mat4} out
2836 mat4.translate = function (out, a, v) {
2866 * Scales the mat4 by the dimensions in the given vec3
2868 * @param {mat4} out the receiving matrix
2869 * @param {mat4} a the matrix to scale
2871 * @returns {mat4} out
2873 mat4.scale = function(out, a, v) {
2896 * Rotates a mat4 by the given angle
2898 * @param {mat4} out the receiving matrix
2899 * @param {mat4} a the matrix to rotate
2902 * @returns {mat4} out
2904 mat4.rotate = function (out, a, rad, axis) {
2961 * @param {mat4} out the receiving matrix
2962 * @param {mat4} a the matrix to rotate
2964 * @returns {mat4} out
2966 mat4.rotateX = function (out, a, rad) {
3004 * @param {mat4} out the receiving matrix
3005 * @param {mat4} a the matrix to rotate
3007 * @returns {mat4} out
3009 mat4.rotateY = function (out, a, rad) {
3047 * @param {mat4} out the receiving matrix
3048 * @param {mat4} a the matrix to rotate
3050 * @returns {mat4} out
3052 mat4.rotateZ = function (out, a, rad) {
3091 * mat4.identity(dest);
3092 * mat4.translate(dest, vec);
3093 * var quatMat = mat4.create();
3095 * mat4.multiply(dest, quatMat);
3097 * @param {mat4} out mat4 receiving operation result
3100 * @returns {mat4} out
3102 mat4.fromRotationTranslation = function (out, q, v) {
3142 * @param {mat4} out mat4 receiving operation result
3145 * @returns {mat4} out
3147 mat4.fromQuat = function (out, q) {
3189 * @param {mat4} out mat4 frustum matrix will be written into
3196 * @returns {mat4} out
3198 mat4.frustum = function (out, left, right, bottom, top, near, far) {
3224 * @param {mat4} out mat4 frustum matrix will be written into
3229 * @returns {mat4} out
3231 mat4.perspective = function (out, fovy, aspect, near, far) {
3256 * @param {mat4} out mat4 frustum matrix will be written into
3263 * @returns {mat4} out
3265 mat4.ortho = function (out, left, right, bottom, top, near, far) {
3291 * @param {mat4} out mat4 frustum matrix will be written into
3295 * @returns {mat4} out
3297 mat4.lookAt = function (out, eye, center, up) {
3312 return mat4.identity(out);
3376 * Returns a string representation of a mat4
3378 * @param {mat4} mat matrix to represent as a string
3381 mat4.str = function (a) {
3382 return 'mat4(' + a[0] + ', ' + a[1] + ', ' + a[2] + ', ' + a[3] + ', ' +
3389 exports.mat4 = mat4;