Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Bump pocketmine/math from 0.2.6 to 0.3.0 #345

Open
wants to merge 1 commit into
base: stable
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Jul 19, 2021

Bumps pocketmine/math from 0.2.6 to 0.3.0.

Release notes

Sourced from pocketmine/math's releases.

0.3.0

This is a feature release, featuring significant API changes compared to 0.2.x.

Changes since 0.2.x

New features

  • Added Facing class, which allows using and manipulating 3D Facing values.
    • Vector3::SIDE_* constants are removed and replaced with Facing::* constants.
    • Vector3::getOppositeSide() is replaced by Facing::opposite().
    • Additional utilities like Facing::axis(), Facing::isPositive(), Facing::rotate() etc are provided.
  • Added Axis class.

Vector3

  • Removed the following API methods:
    • getOppositeSide(): use Facing::opposite() instead
    • setComponents(): mutating Vector3 is now discouraged, and in the future Vector3 will become immutable.
  • Vector3::SIDE_* constants have been removed (use Facing instead).
  • Added the following static API methods:
    • maxComponents(): returns a Vector3 with the highest x, y and z values of all the vectors given.
    • minComponents(): returns a Vector3 with the lowest x, y and z values of all the vectors given.
    • sum(): returns a Vector3 with x, y and z equalling the sums of the x, y and z values of the given vectors respectively.
  • Added the following dynamic API methods:
    • Added Vector3->sides(), which returns a Generator<Facing, Vector3> for all axis-aligned sides of the vector.
    • Added Vector3->sidesArray(), which returns array<Facing, Vector3> for all axis-aligned sides of the vector.
    • Added Vector3->sidesAroundAxis(), which returns Generator<Facing, Vector3> for axis-aligned sides of the vector not on the given axis.
    • Added Vector3->withComponents(), which allows easily creating a copy of a Vector3 while replacing one or more components of it.
  • Vector3->add() is split into two functions:
    • Vector3->add() now requires float, float, float and has no optional parameters.
    • Vector3->addVector() accepts Vector3, replacing the overloaded functionality of Vector3->add().
  • Vector3->subtract() is split into two functions:
    • Vector3->subtract() now requires float, float, float and has no optional parameters.
    • Vector3->subtractVector() accepts Vector3, replacing the overloaded functionality of Vector3->subtract().

AxisAlignedBB

  • AxisAlignedBB->__construct() now throws InvalidArgumentException if any of the min components are larger than their corresponding max components.
  • Removed the following API methods:
    • setBounds(): modifying AxisAlignedBB is now discouraged and AxisAlignedBB will become immutable in the future
    • setBB()
  • Added the following dynamic API methods:
    • extend(): adds a length of distance to the given face of the bounding box
    • extendedCopy()
    • trim(): removes a length of distance from the given face of the bounding box
    • trimmedCopy()
    • stretch(): adds a length of distance to both sides of the bounding box on the given axis
    • stretchedCopy()
    • squash(): removes a length of distance from both sides of the bounding box on the given axis
    • squashedCopy()
    • getXLength(): returns the difference between minX and maxX
    • getYLength(): returns the difference between minY and maxY
    • getZLength(): returns the difference between minZ and maxZ
    • isCube(): returns whether the bounding box's edges are all of approximately equal length

... (truncated)

Commits
  • 83ec067 Drop everything below PHP 7.4
  • e3516ae Merge remote-tracking branch 'origin/stable'
  • 09afd72 Update phpstan/phpstan requirement from 0.12.88 to 0.12.90 (#57)
  • abb9643 Update phpstan/phpstan requirement from 0.12.85 to 0.12.88 (#56)
  • 024300c Update phpstan/phpstan requirement from 0.12.80 to 0.12.85 (#55)
  • 4595b5e Facing: Specify that toString() is supposed to be human-readable
  • fc1798b Added Axis::toString()
  • adec043 Added Facing::toString()
  • e07ce08 Merge remote-tracking branch 'origin/stable'
  • a691b4e Upgrade to GitHub-native Dependabot (#54)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jul 19, 2021
Bumps [pocketmine/math](https://github.com/pmmp/Math) from 0.2.6 to 0.3.0.
- [Release notes](https://github.com/pmmp/Math/releases)
- [Commits](pmmp/Math@0.2.6...0.3.0)

---
updated-dependencies:
- dependency-name: pocketmine/math
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/composer/pocketmine/math-0.3.0 branch from 9e9538d to 673e3ec Compare August 28, 2021 14:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants