Skip to content

Commit

Permalink
Merge branch 'main' into vector-improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDenfordSkyboxLabs committed Feb 27, 2024
2 parents 9d48487 + 43cc1e9 commit 5a13d25
Show file tree
Hide file tree
Showing 43 changed files with 1,086 additions and 24 deletions.
15 changes: 15 additions & 0 deletions libraries/math/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"name": "@minecraft/math",
"entries": [
{
"date": "Tue, 27 Feb 2024 00:08:06 GMT",
"version": "1.1.1",
"tag": "@minecraft/math_v1.1.1",
"comments": {
"none": [
{
"author": "[email protected]",
"package": "@minecraft/math",
"commit": "c1fb5000f9b01b0a625ff06b48e78672bdfc2aaa",
"comment": "- Updating headers at math library"
}
]
}
},
{
"date": "Fri, 02 Feb 2024 22:14:47 GMT",
"version": "1.1.0",
Expand Down
3 changes: 2 additions & 1 deletion libraries/math/src/general/clamp.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Mojang AB. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* Clamps the passed in number to the passed in min and max values.
Expand Down
3 changes: 2 additions & 1 deletion libraries/math/src/general/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) Mojang AB. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

export * from './clamp';
3 changes: 2 additions & 1 deletion libraries/math/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Mojang AB. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { describe, expect, it } from 'vitest';

Expand Down
3 changes: 2 additions & 1 deletion libraries/math/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Mojang AB. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

export * from './vector3';
export * from './general';
3 changes: 2 additions & 1 deletion libraries/math/src/vector3/coreHelpers.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Mojang AB. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { Vector2, Vector3 } from '@minecraft/server';
import { describe, expect, it } from 'vitest';
Expand Down
3 changes: 2 additions & 1 deletion libraries/math/src/vector3/coreHelpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Mojang AB. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import type { Vector2, Vector3 } from '@minecraft/server';
import { clampNumber } from '../general/clamp';
Expand Down
3 changes: 2 additions & 1 deletion libraries/math/src/vector3/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Mojang AB. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

export * from './coreHelpers';
export * from './vectorWrapper';
3 changes: 2 additions & 1 deletion libraries/math/src/vector3/vectorWrapper.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Mojang AB. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import type { Vector3 } from '@minecraft/server';
import { describe, expect, it } from 'vitest';
Expand Down
3 changes: 2 additions & 1 deletion libraries/math/src/vector3/vectorWrapper.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Mojang AB. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import type { Vector2, Vector3 } from '@minecraft/server';
import { Vector2Utils, Vector3Utils } from './coreHelpers';
Expand Down
Loading

0 comments on commit 5a13d25

Please sign in to comment.