Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rotateVectorAroundAxis function to Plane class with tests #117

Merged
merged 7 commits into from
Nov 27, 2024

Conversation

Jannetty
Copy link
Member

@Jannetty Jannetty commented Nov 23, 2024

Estimated time to review: medium

Linked issues: resolves #116

Description of changes:

  • Added static function to Plane class that rotates a vector around an axis specified in Direction enum using Rodrigues' rotation formula
  • Added tests testing:
    • rotating 0 degrees returns same vector
    • return vector is always unit
    • rotation around each Direction
  • Changed names of helper functions I used in the implementation of the rotation function to make them not specific to a normal vector

@Jannetty Jannetty marked this pull request as ready for review November 25, 2024 17:45
@Jannetty Jannetty self-assigned this Nov 25, 2024
@Jannetty Jannetty added priority: high Urgent problem that blocks the system until the issue is resolved type: feature Improvement or additions to the code base package: potts Related to the potts implementation category: env Related to the env subpackages labels Nov 25, 2024
@Jannetty Jannetty changed the title added rotateUnitVectorAroundAxis function to Plane class and tests Add rotateUnitVectorAroundAxis function to Plane class with tests Nov 25, 2024
@Jannetty Jannetty changed the title Add rotateUnitVectorAroundAxis function to Plane class with tests Add rotateVectorAroundAxis function to Plane class with tests Nov 25, 2024
test/arcade/potts/env/location/PlaneTest.java Outdated Show resolved Hide resolved
test/arcade/potts/env/location/PlaneTest.java Outdated Show resolved Hide resolved
test/arcade/potts/env/location/PlaneTest.java Outdated Show resolved Hide resolved
test/arcade/potts/env/location/PlaneTest.java Outdated Show resolved Hide resolved
src/arcade/potts/env/location/Plane.java Show resolved Hide resolved
@Jannetty Jannetty requested a review from pohaoc2 November 26, 2024 20:05
src/arcade/potts/env/location/Plane.java Show resolved Hide resolved
src/arcade/potts/env/location/Plane.java Show resolved Hide resolved
src/arcade/potts/env/location/Plane.java Show resolved Hide resolved
@Jannetty Jannetty merged commit 30ff4cb into main Nov 27, 2024
6 checks passed
@Jannetty Jannetty deleted the jannetty/enable-Plane-rotation branch November 27, 2024 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: env Related to the env subpackages package: potts Related to the potts implementation priority: high Urgent problem that blocks the system until the issue is resolved type: feature Improvement or additions to the code base
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add functionality to rotate normal vector of Plane
3 participants