Skip to content

Commit 1083d5b

Browse files
authored
Merge branch 'master' into rmcis
2 parents b36eeb2 + eebbf5b commit 1083d5b

File tree

17 files changed

+418
-210
lines changed

17 files changed

+418
-210
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Invalidations
2+
3+
on:
4+
pull_request:
5+
6+
concurrency:
7+
# Skip intermediate builds: always.
8+
# Cancel intermediate builds: always.
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
evaluate:
14+
# Only run on PRs to the default branch.
15+
# In the PR trigger above branches can be specified only explicitly whereas this check should work for master, main, or any other default branch
16+
if: github.base_ref == github.event.repository.default_branch
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: julia-actions/setup-julia@v1
20+
with:
21+
version: '1'
22+
- uses: actions/checkout@v3
23+
- uses: julia-actions/julia-buildpkg@v1
24+
- uses: julia-actions/julia-invalidations@v1
25+
id: invs_pr
26+
27+
- uses: actions/checkout@v3
28+
with:
29+
ref: ${{ github.event.repository.default_branch }}
30+
- uses: julia-actions/julia-buildpkg@v1
31+
- uses: julia-actions/julia-invalidations@v1
32+
id: invs_default
33+
34+
- name: Report invalidation counts
35+
run: |
36+
echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
37+
echo "This branch: ${{ steps.invs_pr.outputs.total }} (${{ steps.invs_pr.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
38+
- name: Check if the PR does increase number of invalidations
39+
if: steps.invs_pr.outputs.total > steps.invs_default.outputs.total
40+
run: exit 1

CONTRIBUTION.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

LICENSE.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
##### Quaternions.jl is released under the MIT License (MIT):
1+
MIT License
22

3-
> Copyright (c) 2013 Forio and [other contributors](https://github.com/forio/Quaternions.jl/graphs/contributors)
3+
Copyright (c) 2013 Forio and [Quaternions.jl contributors](https://github.com/JuliaGeometry/Quaternions.jl/graphs/contributors)
44

5-
> Permission is hereby granted, free of charge, to any person obtaining a copy of
6-
> this software and associated documentation files (the "Software"), to deal in
7-
> the Software without restriction, including without limitation the rights to
8-
> use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9-
> the Software, and to permit persons to whom the Software is furnished to do so,
10-
> subject to the following conditions:
11-
>
12-
> The above copyright notice and this permission notice shall be included in all
13-
> copies or substantial portions of the Software.
14-
>
15-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17-
> FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18-
> COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19-
> IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20-
> CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "Quaternions"
22
uuid = "94ee1d12-ae83-5a48-8b1c-48b8ff168ae0"
3-
version = "0.5.2"
3+
version = "0.5.7"
44

55
[deps]
66
DualNumbers = "fa6b7ba4-c1ee-5f82-b5fc-ecf0adba8f74"

README.md

Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Implemented functions are:
1313

1414
+-*/^
1515
real
16-
imag (a vector)
16+
imag_part (tuple)
1717
conj
1818
abs
1919
abs2
@@ -58,51 +58,9 @@ Implemented functions are:
5858
cospi
5959
sincos
6060
sincospi
61-
linpol (interpolate between 2 normalized quaternions)
61+
slerp
6262
rand
6363
randn
6464

65-
[Dual quaternions](http://en.wikipedia.org/wiki/Dual_quaternion) are an extension, combining quaternions with
66-
[dual numbers](https://github.com/scidom/DualNumbers.jl).
67-
On top of just orientation, they can represent all rigid transformations.
68-
69-
There are two conjugation concepts here
70-
71-
conj (quaternion conjugation)
72-
dconj (dual conjugation)
73-
74-
further implemented here:
75-
76-
Q0 (the 'real' quaternion)
77-
Qe ( the 'dual' part)
78-
+-*/^
79-
abs
80-
abs2
81-
normalize
82-
normalizea
83-
angleaxis
84-
angle
85-
axis
86-
exp
87-
log
88-
sqrt
89-
rand
90-
91-
[Octonions](http://en.wikipedia.org/wiki/Octonion) form the logical next step on the Complex-Quaternion path.
92-
They play a role, for instance, in the mathematical foundation of String theory.
93-
94-
+-*/^
95-
real
96-
imag (a vector)
97-
conj
98-
abs
99-
abs2
100-
exp
101-
log
102-
normalize
103-
normalizea (return normalized octonion and absolute value as a tuple)
104-
exp
105-
log
106-
sqrt
107-
rand
108-
randn
65+
Currently, this package supports `DualQuaternion` and `Octonion` types, but these will be removed in the next breaking release.
66+
See https://github.com/JuliaGeometry/Quaternions.jl/issues/90 and https://github.com/JuliaGeometry/Quaternions.jl/pull/92 for more information.

docs/logo.jl

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using Luxor, Colors
2+
3+
L = 500
4+
R = 130
5+
r = 25
6+
t = 18
7+
h = 0.33
8+
9+
path_svg = joinpath(@__DIR__, "src", "assets", "logo.svg")
10+
path_ico = joinpath(@__DIR__, "src", "assets", "favicon.ico")
11+
12+
@svg begin
13+
Drawing(L, L, path_svg)
14+
setlinecap("round")
15+
setlinejoin("round")
16+
p₊ = Point(cos/6), -sin/6)) * 2R/√3
17+
p₋ = -p₊/2
18+
angles = (-2π/3, -π/3, 0, π/3, 4π/3)
19+
20+
for i in 1:3
21+
origin(L/2, L/2)
22+
rotate(4π/3*(i-1))
23+
sethue(Colors.JULIA_LOGO_COLORS[(:red, :purple, :green)[i]])
24+
circle(p₋, r, :fill)
25+
circle(p₊, r, :fill)
26+
setline(t)
27+
for j in 1:4
28+
arc(p₋, R, angles[j]+h, angles[j+1]-h, :stroke)
29+
end
30+
setline(t/2)
31+
poly(ngon(p₋*(1+√3), t, 3, π), :stroke, close=true)
32+
end
33+
end
34+
35+
run(`convert -density 256x256 -background transparent $(path_svg) -define icon:auto-resize -colors 256 $(path_ico)`)

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ makedocs(;
1010
format=Documenter.HTML(;
1111
prettyurls=get(ENV, "CI", "false") == "true",
1212
canonical="https://JuliaGeometry.github.io/Quaternions.jl",
13-
assets = ["assets/custom.css"],
13+
assets = ["assets/custom.css", "assets/favicon.ico"],
1414
),
1515
pages=[
1616
"Home" => "index.md",

docs/src/assets/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#documenter .docs-sidebar .docs-logo > img,
2+
html.theme--documenter-dark #documenter .docs-sidebar .docs-logo > img {
3+
max-height: 9rem;
4+
}

docs/src/assets/favicon.ico

316 KB
Binary file not shown.

docs/src/assets/logo.svg

Lines changed: 26 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)