Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

PHPLIB-1357 Add tests on Trigonometry Expression Operators #48

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Jan 23, 2024

Fix PHPLIB-1357

https://www.mongodb.com/docs/manual/reference/operator/aggregation/#trigonometry-expression-operators

  • $sin
  • $cos
  • $tan
  • $asin
  • $acos
  • $atan
  • $atan2
  • $asinh
  • $acosh
  • $atanh
  • $sinh
  • $cosh
  • $tanh
  • $degreesToRadians
  • $radiansToDegrees

@GromNaN GromNaN requested a review from jmikola January 23, 2024 16:59
{
$pipeline = new Pipeline(
Stage::addFields(
...[
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this only necessary because y-coordinate is an invalid parameter name?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. The name can't be used as named argument.

@GromNaN GromNaN merged commit 2ccad18 into mongodb:0.1 Jan 23, 2024
@GromNaN GromNaN deleted the PHPLIB-1357 branch January 23, 2024 21:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants