Skip to content

Commit

Permalink
Bump BangBang to v0.4, cross product of PVector2D, release v1.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
islent committed Jul 7, 2024
1 parent 9127220 commit b384966
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ license = "GPLv3"
authors = ["islent <[email protected]>"]
description = "Support for physical vectors and particles"
repository = "https://github.com/JuliaAstroSim/PhysicalParticles.jl"
version = "1.3.6"
version = "1.3.7"

[deps]
BangBang = "198e06fe-97b7-11e9-32a5-e1d131e6ad66"
Expand All @@ -23,7 +23,7 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
UnitfulAstro = "6112ee07-acf9-5e0f-b108-d242c714bf9f"

[compat]
BangBang = "0.3"
BangBang = "0.3, 0.4"
DocStringExtensions = "0.8, 0.9"
Interpolations = "0.15"
IterTools = "1"
Expand Down
9 changes: 9 additions & 0 deletions src/LinearAlgebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,15 @@ function rotate(data::StructArray, vec::PVector, θ::Number, center::PVector; ve
data
end

"""
function cross(a::PVector2D, b::PVector2D)
Cross product of vector `a` and `b`. Return a new `PVector`
"""
function cross(a::PVector2D, b::PVector2D)
z = a.x * b.y - a.y * b.x
PVector(zero(z), zero(z), z)
end

"""
function cross(a::PVector, b::PVector)
Expand Down

2 comments on commit b384966

@islent
Copy link
Member Author

@islent islent commented on b384966 Jul 7, 2024

Choose a reason for hiding this comment

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

@JuliaRegistrator register

Release notes:

  • Bump BangBang to v0.4
  • cross product of PVector2D

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/110585

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.3.7 -m "<description of version>" b384966e988f86f5ce11a28e9279b3314ecbfd62
git push origin v1.3.7

Please sign in to comment.