Skip to content

Conversation

diaztula
Copy link
Contributor

The cross method from cornerstone-math modifies the calling object. Update code to correctly use this function.

@JamesAPetts
Copy link
Member

JamesAPetts commented Oct 18, 2019

Hey, thanks for the contribution!

Good catch.

);
const crossProduct = colCosineVec.cross(rowCosineVec);

const crossProduct = new Vector3(
Copy link
Member

Choose a reason for hiding this comment

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

Could this just be:

const crossProduct = new Vector3(
    rowCosines[0],
    rowCosines[1],
    rowCosines[2]
  ).cross(colCosineVec);

To reduce confusion on the initial definition?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes of course, thanks! I updated the pull request as suggested.

@JamesAPetts JamesAPetts merged commit 0f9a6a3 into OHIF:master Oct 21, 2019
@ohif-bot
Copy link
Member

🎉 This PR is included in version 0.3.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants