npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@intelligentgraphics/3d.ig.math

v1.1.1

Published

IG.Math

Downloads

33

Readme

IG.Math

Build

Node module package:

yarn dist

Interactor package:

yarn interactor

Namespaces

You can use the following modules:

| Namespace | Description | | ---------------------- | :-------------------------------------------------------------------------------- | | IG.Math | Global space functions like Rad/Deg and Polar/Cartesian conversion, ... | | IG.Math.Bounds | Bounding Boxes | | IG.Math.Euler | Calculations with euler angles | | IG.Math.Line | A line, consisting of an origin and a direction | | IG.Math.LinearAlgebra | Various convenience functions | | IG.Math.MathS | Safe Math functions to avoid getting NaN | | IG.Math.Matrix3 | 3x3 Matrix functions | | IG.Math.Matrix4 | 4x4 Matrix functions | | IG.Math.Plane | A plane, described by its normal and a point that lies in it | | IG.Math.Quaternion | special Vector4 describing a rotation | | IG.Math.Ray | A ray, consisting of an origin and a direction | | IG.Math.Transformation | The transformation of an object consists of a position and 3 rotations in radians | | IG.Math.Vector2 | {x, y} Vector functions | | IG.Math.Vector3 | {x, y, z} Vector functions | | IG.Math.Vector4 | {x, y, z, w} Vector functions |

Coding Style

  • Modules: PascalCase
  • Types/Classes: PascalCase
  • Functions/Member: lowerCamelCase
  • in place functions return void and have inPlace in their function name

History

1.1.1

  • include jsdoc comments in bundled declaration output

1.1.0

  • change Euler.fromQuaternion to Algorithm via Matrix (similar to ThreeJS) fixes Lutz Cushion bug ( ok @DC)

1.0.3

  • 1.0.2 Quaternion.lookAt & Vector3.multiplyWithMatrix4Right
  • Math: working lookAt with quaternions

1.0.2

  • default Package.json Type is "Interactor" now
  • new Quaternion lookAt function
  • new version of Vector3.multiplyWithMatrix4() for updated matrix4 transformation called multiplyWithMatrix4Right()

1.0.1

  • clamp asin input to -1 ... +1 for quaternion -> Euler transformation
  • add more tests for questionable or plain wrong behaviour
  • readd matrix fixes including new tests, no change of traditional behaviour
  • unify rotation matrix creation

1.0.0

  • fixed lookAt function
  • change lookAt function for use with other base
  • updated comments and tests
  • Matrix4.lookAt() fix for negative z-values & license
  • Matrix4 lookAt function
  • added version logging and minification

1.0.0-alpha.0

  • initial release