Socket
Socket
Sign inDemoInstall

geomath

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geomath

AMD Geometry and Matrix modules using reuse pattern for better performance


Version published
Weekly downloads
8
decreased by-46.67%
Maintainers
1
Weekly downloads
 
Created
Source

Geomath Build Status NPM version

AMD Geometry and Matrix modules using reuse pattern for better performance

Installation

Using Bower:

$ bower install geomath --save

Using NuGet:

$ Install-Package GeoMath

Using NPM:

$ npm install geomath --save

Usage

You could use geomath in different context.

Browser (with built file)

Include built script in your HTML file.

<script type="text/javascript" src="path/to/geomath.min.js"></script>

Browser (AMD from source)

Configure RequireJS.
requirejs.config({
    paths: {
        math: 'path/to/geomath'
    }
});

Then include promise in your dependencies.

define(["math"], function() {
    math.geometry // Geometry Functions
    math.matrix
    math.matrix.M3 // Matrix 3x3 Functions
    math.matrix.M4 // Matrix 4x4 Functions
    math.matrix.V2 // Vector 2 Functions
    math.matrix.V3 // Vector 3 Functions
});
Load modules independently
define(["math"], function() {
    math.geometry // Geometry Functions
    math.matrix
    math.matrix.M3 // Matrix 3x3 Functions
    math.matrix.M4 // Matrix 4x4 Functions
    math.matrix.V2 // Vector 2 Functions
    math.matrix.V3 // Vector 3 Functions
});

Node (installed using NPM)

Call require to register Promise to global object

var math = require("geomath");
// Or
var matrix3 = require("geomath/matrix3");

Documentation

For now documentation can be found in code.

Keywords

FAQs

Package last updated on 08 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc