Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen committed Jul 25, 2024
1 parent 2e65f9a commit 7595b07
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 deletions.
15 changes: 15 additions & 0 deletions docs/whats-new.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,21 @@
</tbody>
</table>

## v4.1

Release Date: Q3, 2024.

- [SPDX](https://spdx.org/licenses/) license headers.

**`@math.gl/core`**

- New `Vector2Like` - `Matrix4Like` types to specify numeric inputs of a specific length.

**`@math.gl/types`**

- New `NumberArray2` - `NumberArray16` types to specify numeric arrays of a specific length.
- `isTypedArray()` and `isNumericArray()` utilities now support typescript type narrowing.

## v4.0

Release Date: Oct 14, 2023.
Expand Down
2 changes: 1 addition & 1 deletion modules/core/src/classes/matrix3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const IDENTITY_MATRIX = Object.freeze([1, 0, 0, 0, 1, 0, 0, 0, 1]);
/** Helper type that captures array length for a 3x3 matrix */
export type Matrix3Like = Matrix3 | NumberArray9;

/**
/**
* A 3x3 matrix with common linear algebra operations
* Subclass of Array<number> meaning that it is highly compatible with other libraries
*/
Expand Down
4 changes: 2 additions & 2 deletions modules/core/src/classes/matrix4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ const IDENTITY_MATRIX = Object.freeze([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0,
/** Helper type that captures array length for a 4x4 matrix */
export type Matrix4Like = Matrix4 | NumberArray16;

/**
* A 4x4 matrix with common linear algebra operations
/**
* A 4x4 matrix with common linear algebra operations
* Subclass of Array<number> meaning that it is highly compatible with other libraries
*/
export class Matrix4 extends Matrix {
Expand Down
2 changes: 1 addition & 1 deletion modules/core/src/classes/vector2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {vec2_transformMat4AsVector} from '../lib/gl-matrix-extras';
export type Vector2Like = Vector2 | NumberArray2;

/**
* Two-element vector class with common linear algebra operations.
* Two-element vector class with common linear algebra operations.
* Subclass of Array<number> meaning that it is highly compatible with other libraries
*/
export class Vector2 extends Vector {
Expand Down
1 change: 0 additions & 1 deletion modules/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export type {Vector4Like} from './classes/vector4';
export type {Matrix3Like} from './classes/matrix3';
export type {Matrix4Like} from './classes/matrix4';


// experimental
export {SphericalCoordinates} from './classes/spherical-coordinates';
export {Pose} from './classes/pose';
Expand Down
2 changes: 1 addition & 1 deletion modules/types/src/array-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,4 @@ declare type ReadonlyQuat2 =
declare type ReadonlyVec2 = readonly [number, number] | IndexedCollection;
declare type ReadonlyVec3 = readonly [number, number, number] | IndexedCollection;
declare type ReadonlyVec4 = readonly [number, number, number, number] | IndexedCollection;
*/
*/

0 comments on commit 7595b07

Please sign in to comment.