1.1.1 • Published 2 years ago

@intelligentgraphics/3d.ig.math v1.1.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

IG.Math

Build

Node module package:

yarn dist

Interactor package:

yarn interactor

Namespaces

You can use the following modules:

NamespaceDescription
IG.MathGlobal space functions like Rad/Deg and Polar/Cartesian conversion, ...
IG.Math.BoundsBounding Boxes
IG.Math.EulerCalculations with euler angles
IG.Math.LineA line, consisting of an origin and a direction
IG.Math.LinearAlgebraVarious convenience functions
IG.Math.MathSSafe Math functions to avoid getting NaN
IG.Math.Matrix33x3 Matrix functions
IG.Math.Matrix44x4 Matrix functions
IG.Math.PlaneA plane, described by its normal and a point that lies in it
IG.Math.Quaternionspecial Vector4 describing a rotation
IG.Math.RayA ray, consisting of an origin and a direction
IG.Math.TransformationThe 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