Skip to content

[Feature Request] Add explicit conversion from euler to quaternion with rotation order #74

@mecanimdev

Description

@mecanimdev

There is no explicit conversion from euler to quaternion, we need to convert to float3x3 first and then to quaternion.

As a first iteration we could only provide a methods that does the implicit conversion and improve it later.

public quaternion FromEuler(float3 xyz, RotationOrder order = RotationOrder.Default)
{
    return new quaternion( float3x3.Euler(xyz, order));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions