Skip to content

Commit

Permalink
rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
0x00b1 committed Apr 6, 2024
1 parent 291b911 commit 03685a8
Show file tree
Hide file tree
Showing 39 changed files with 155 additions and 42 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,10 @@ test = [
[tool.ruff.format]
docstring-code-format = true

[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401", # MODULE IMPORTED BUT UNUSED
]

[tool.setuptools_scm]
local_scheme = "no-local-version"
68 changes: 26 additions & 42 deletions src/beignet/__init__.py
Original file line number Diff line number Diff line change
@@ -1,55 +1,39 @@
import importlib.metadata
from importlib.metadata import PackageNotFoundError
from ._apply_euler_angle import apply_euler_angle
from ._apply_rotation_matrix import apply_rotation_matrix
from ._apply_rotation_quaternion import (
from ._geometry import (
apply_euler_angle,
apply_rotation_matrix,
apply_rotation_quaternion,
)
from ._apply_rotation_vector import apply_rotation_vector
from ._compose_rotation_quaternion import compose_rotation_quaternion
from ._euler_angle_identity import euler_angle_identity
from ._euler_angle_magnitude import euler_angle_magnitude
from ._euler_angle_to_rotation_matrix import euler_angle_to_rotation_matrix
from ._euler_angle_to_rotation_quaternion import (
apply_rotation_vector,
compose_rotation_quaternion,
euler_angle_identity,
euler_angle_magnitude,
euler_angle_to_rotation_matrix,
euler_angle_to_rotation_quaternion,
)
from ._euler_angle_to_rotation_vector import euler_angle_to_rotation_vector
from ._invert_euler_angle import invert_euler_angle
from ._invert_rotation_matrix import invert_rotation_matrix
from ._invert_rotation_quaternion import invert_rotation_quaternion
from ._invert_rotation_vector import invert_rotation_vector
from ._mean_rotation_quaternion import mean_rotation_quaternion
from ._random_euler_angle import random_euler_angle
from ._random_rotation_matrix import random_rotation_matrix
from ._random_rotation_quaternion import random_rotation_quaternion
from ._random_rotation_vector import random_rotation_vector
from ._rotation_matrix_identity import rotation_matrix_identity
from ._rotation_matrix_magnitude import rotation_matrix_magnitude
from ._rotation_matrix_to_euler_angle import rotation_matrix_to_euler_angle
from ._rotation_matrix_to_rotation_quaternion import (
euler_angle_to_rotation_vector,
invert_euler_angle,
invert_rotation_matrix,
invert_rotation_quaternion,
invert_rotation_vector,
mean_rotation_quaternion,
random_euler_angle,
random_rotation_matrix,
random_rotation_quaternion,
random_rotation_vector,
rotation_matrix_identity,
rotation_matrix_magnitude,
rotation_matrix_to_euler_angle,
rotation_matrix_to_rotation_quaternion,
)
from ._rotation_matrix_to_rotation_vector import (
rotation_matrix_to_rotation_vector,
)
from ._rotation_quaternion_identity import rotation_quaternion_identity
from ._rotation_quaternion_magnitude import rotation_quaternion_magnitude
from ._rotation_quaternion_to_euler_angle import (
rotation_quaternion_identity,
rotation_quaternion_magnitude,
rotation_quaternion_to_euler_angle,
)
from ._rotation_quaternion_to_rotation_matrix import (
rotation_quaternion_to_rotation_matrix,
)
from ._rotation_quaternion_to_rotation_vector import (
rotation_quaternion_to_rotation_vector,
)
from ._rotation_vector_identity import rotation_vector_identity
from ._rotation_vector_magnitude import rotation_vector_magnitude
from ._rotation_vector_to_euler_angle import rotation_vector_to_euler_angle
from ._rotation_vector_to_rotation_matrix import (
rotation_vector_identity,
rotation_vector_magnitude,
rotation_vector_to_euler_angle,
rotation_vector_to_rotation_matrix,
)
from ._rotation_vector_to_rotation_quaternion import (
rotation_vector_to_rotation_quaternion,
)
from ._slerp import slerp
Expand Down
36 changes: 36 additions & 0 deletions src/beignet/_geometry/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
from ._transformations import (
apply_euler_angle,
apply_rotation_matrix,
apply_rotation_quaternion,
apply_rotation_vector,
compose_rotation_quaternion,
euler_angle_identity,
euler_angle_magnitude,
euler_angle_to_rotation_matrix,
euler_angle_to_rotation_quaternion,
euler_angle_to_rotation_vector,
invert_euler_angle,
invert_rotation_matrix,
invert_rotation_quaternion,
invert_rotation_vector,
mean_rotation_quaternion,
random_euler_angle,
random_rotation_matrix,
random_rotation_quaternion,
random_rotation_vector,
rotation_matrix_identity,
rotation_matrix_magnitude,
rotation_matrix_to_euler_angle,
rotation_matrix_to_rotation_quaternion,
rotation_matrix_to_rotation_vector,
rotation_quaternion_identity,
rotation_quaternion_magnitude,
rotation_quaternion_to_euler_angle,
rotation_quaternion_to_rotation_matrix,
rotation_quaternion_to_rotation_vector,
rotation_vector_identity,
rotation_vector_magnitude,
rotation_vector_to_euler_angle,
rotation_vector_to_rotation_matrix,
rotation_vector_to_rotation_quaternion,
)
36 changes: 36 additions & 0 deletions src/beignet/_geometry/_transformations/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
from ._rotations import (
apply_euler_angle,
apply_rotation_matrix,
apply_rotation_quaternion,
apply_rotation_vector,
compose_rotation_quaternion,
euler_angle_identity,
euler_angle_magnitude,
euler_angle_to_rotation_matrix,
euler_angle_to_rotation_quaternion,
euler_angle_to_rotation_vector,
invert_euler_angle,
invert_rotation_matrix,
invert_rotation_quaternion,
invert_rotation_vector,
mean_rotation_quaternion,
random_euler_angle,
random_rotation_matrix,
random_rotation_quaternion,
random_rotation_vector,
rotation_matrix_identity,
rotation_matrix_magnitude,
rotation_matrix_to_euler_angle,
rotation_matrix_to_rotation_quaternion,
rotation_matrix_to_rotation_vector,
rotation_quaternion_identity,
rotation_quaternion_magnitude,
rotation_quaternion_to_euler_angle,
rotation_quaternion_to_rotation_matrix,
rotation_quaternion_to_rotation_vector,
rotation_vector_identity,
rotation_vector_magnitude,
rotation_vector_to_euler_angle,
rotation_vector_to_rotation_matrix,
rotation_vector_to_rotation_quaternion,
)
52 changes: 52 additions & 0 deletions src/beignet/_geometry/_transformations/_rotations/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
from ._apply_euler_angle import apply_euler_angle
from ._apply_rotation_matrix import apply_rotation_matrix
from ._apply_rotation_quaternion import (
apply_rotation_quaternion,
)
from ._apply_rotation_vector import apply_rotation_vector
from ._compose_rotation_quaternion import compose_rotation_quaternion
from ._euler_angle_identity import euler_angle_identity
from ._euler_angle_magnitude import euler_angle_magnitude
from ._euler_angle_to_rotation_matrix import euler_angle_to_rotation_matrix
from ._euler_angle_to_rotation_quaternion import (
euler_angle_to_rotation_quaternion,
)
from ._euler_angle_to_rotation_vector import euler_angle_to_rotation_vector
from ._invert_euler_angle import invert_euler_angle
from ._invert_rotation_matrix import invert_rotation_matrix
from ._invert_rotation_quaternion import invert_rotation_quaternion
from ._invert_rotation_vector import invert_rotation_vector
from ._mean_rotation_quaternion import mean_rotation_quaternion
from ._random_euler_angle import random_euler_angle
from ._random_rotation_matrix import random_rotation_matrix
from ._random_rotation_quaternion import random_rotation_quaternion
from ._random_rotation_vector import random_rotation_vector
from ._rotation_matrix_identity import rotation_matrix_identity
from ._rotation_matrix_magnitude import rotation_matrix_magnitude
from ._rotation_matrix_to_euler_angle import rotation_matrix_to_euler_angle
from ._rotation_matrix_to_rotation_quaternion import (
rotation_matrix_to_rotation_quaternion,
)
from ._rotation_matrix_to_rotation_vector import (
rotation_matrix_to_rotation_vector,
)
from ._rotation_quaternion_identity import rotation_quaternion_identity
from ._rotation_quaternion_magnitude import rotation_quaternion_magnitude
from ._rotation_quaternion_to_euler_angle import (
rotation_quaternion_to_euler_angle,
)
from ._rotation_quaternion_to_rotation_matrix import (
rotation_quaternion_to_rotation_matrix,
)
from ._rotation_quaternion_to_rotation_vector import (
rotation_quaternion_to_rotation_vector,
)
from ._rotation_vector_identity import rotation_vector_identity
from ._rotation_vector_magnitude import rotation_vector_magnitude
from ._rotation_vector_to_euler_angle import rotation_vector_to_euler_angle
from ._rotation_vector_to_rotation_matrix import (
rotation_vector_to_rotation_matrix,
)
from ._rotation_vector_to_rotation_quaternion import (
rotation_vector_to_rotation_quaternion,
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 03685a8

Please sign in to comment.