Unity-Technologies / Unity-Technologies/Unity.Mathematics

Conversion from quaternion to euler?

Open
#136 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
1.4k
Forks
159
PR merge metrics
No merged PRs in 30d

Description

Is there a way to go from quaternion to euler? (Similar to when you read from Quaternion.eulerAngles.)

There are plenty of methods on the quaternion to produce a quaternion from euler angles of various rotation orders, but not the other way around.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue requests quaternion-to-Euler conversion analogous to Unity's Quaternion.eulerAngles, but names no file or test. Start by locating the quaternion type and its existing Euler-construction methods; done means providing the requested conversion with behavior matching the referenced Unity API and covering the rotation orders described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
computer-graphics
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.