gl-mat2

WebJar for gl-mat2

License

License

NUnit-2.6.3
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

gl-mat2
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

gl-mat2
WebJar for gl-mat2
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/stackgl/gl-mat2

Download gl-mat2

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/gl-mat2/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>gl-mat2</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/gl-mat2/
implementation 'org.webjars.npm:gl-mat2:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/gl-mat2/
implementation ("org.webjars.npm:gl-mat2:1.0.1")
'org.webjars.npm:gl-mat2:jar:1.0.1'
<dependency org="org.webjars.npm" name="gl-mat2" rev="1.0.1">
  <artifact name="gl-mat2" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='gl-mat2', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "gl-mat2" % "1.0.1"
[org.webjars.npm/gl-mat2 "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

gl-mat2 stable

Part of a fork of @toji's gl-matrix split into smaller pieces: this package contains glMatrix.mat2.

Usage

NPM

mat2 = require('gl-mat2')

Will load all of the module's functionality and expose it on a single object. Note that any of the methods may also be required directly from their files.

For example, the following are equivalent:

var scale = require('gl-mat2').scale
var scale = require('gl-mat2/scale')

API

mat2.adjoint(out:mat2, a:mat2)

Calculates the adjugate of a mat2

mat2.copy(out:mat2, a:mat2)

Copy the values from one mat2 to another

mat2.create()

Creates a new identity mat2

mat2.determinant(a:mat2)

Calculates the determinant of a mat2

mat2.frob(a:mat2)

Returns Frobenius norm of a mat2

mat2.identity(out:mat2)

Set a mat2 to the identity matrix

mat2.invert(out:mat2, a:mat2)

Inverts a mat2

mat2.ldu(L:mat2, D:mat2, U:mat2, a:mat2)

Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix

mat2.multiply(out:mat2, a:mat2, b:mat2)

Multiplies two mat2's

mat2.rotate(out:mat2, a:mat2, rad:Number)

Rotates a mat2 by the given angle

mat2.scale(out:mat2, a:mat2, v:vec2)

Scales the mat2 by the dimensions in the given vec2

mat2.transpose(out:mat2, a:mat2)

Transpose the values of a mat2

License

zlib. See LICENSE.md for details.

org.webjars.npm

stackgl

Modular WebGL components

Versions

Version
1.0.1