For my project I need to convert some rotation euler angles into a normalized vector.
I have been looking around the globe for an answer but none has been found.
I even went as far as to take out pen and paper and do the maths myself, but then I realised I don’t understand matrices at all.

If any further info is necessary, please ask for it. Thank you in advance.

Yeah… what’s the actual question cause as is, this doesn’t make sense.

A normalized vector is a vector whose magnitude is 1.

Euler angles are 3 axes of rotational values (yaw, pitch, roll) that are either in radians or degrees. These technically can be stored in a vector (which they are in Unity, a Vector3), but the magnitude of it isn’t really useful for anything. And normalizing it would result in a completely different rotation.

This is likely why “looking around the globe” is not bringing up any useful results.

And then you bring up matrices… which… I mean technically you could consider a vector a sort of 1xN matrix… but usually in 3d rotation terms you’d be using a 4x4 matrix. Which is a completely different topic from euler angles and vectors.

…

You’ve since responded while I was typing this. And you say:

This still doesn’t really give us any real idea what you’re looking for.

Are you looking for a vector that is rotated the amount of degrees that the euler angles say? OK… what is the starting vector you want to rotate?

What you can do is convert the euler angles to a quaternion, then multiply the quat and the starting vector by that. Which will result in it pointing in a direction rotated that much. But a “start” point is critical here… for example if it’s the standard “forward vector” you could multiply by Vector3.forward. This is a vector that points down the +z axis. But that’s called “forward” arbitrarily. We just all decided “yeah, sure, +Z is forward”.

But that is all contingent on if this is actually what you’re looking for. We don’t know what you’re looking for.

…

Basically you’re saying something akin to “I have a temperature, in degrees. I need a volume of water that is normalized at sea level.”

Like… those are all words that mean things… and there are ways they’re all related to one another. But the way they’re strung together does not hint as to HOW you expect us to infer how you expect those words to be related.

Which leads us to believe there is missing information likely found in the question you’re being asked for your project.