4.0.3 • Published 5 months ago

@threeify/core v4.0.3

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

Goals

  • Inline JSDoc comments on most functions, variables.
  • Utilize the typing from Typescript to generate rich documentation.
  • Adopt semver? Probably is a good idea.

Naming Convention

Transform Matrix Names

  • All matrices should be named in the form: xToY, where x is the originating space, and the y is the space after applying this matrix.
  • If you invert a xToY matrix, it should now be called yToX.

The coordinate spaces are as follows:

  • local
  • world
  • view
  • clip
  • screen (gl_FragCoord)

These are from: https://learnopengl.com/Getting-started/Coordinate-Systems

Examples:

const worldToLocal = new Mat4();
const localToWorld = worldToLocal.clone.invert();

const localToScreenProjection = new Mat4();
localToScreenProjection.makePerspectiveProjection(1.0, 1.0, 1000.0, 1.0);
const screenToLocalUnprojection = localToScreenProjection.clone().invert();

Lines of Code

this Calculated by cloc src:

DateFilesBlank LinesComment LinesCode Lines
2020-06-04???5222082535
2020-06-1816112548745221
2020-06-23194154910186820
2020-07-04234202712169200
2020-07-223142473132311339
4.0.3

5 months ago

4.0.2

12 months ago

4.0.1

1 year ago

3.0.0

1 year ago