> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: Euler Angles
icon: rotate-cw
---

# <ApiPageIcon icon="rotate-cw" />Euler Angles

<ApiExposes data="[{&#x22;k&#x22;:&#x22;CDATA&#x22;,&#x22;c&#x22;:&#x22;method&#x22;,&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;h&#x22;:&#x22;#radianeuler&#x22;},{&#x22;k&#x22;:&#x22;CTYPE&#x22;,&#x22;c&#x22;:&#x22;ctor&#x22;,&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;h&#x22;:&#x22;#radianeuler-1&#x22;},{&#x22;k&#x22;:&#x22;CDATA&#x22;,&#x22;c&#x22;:&#x22;method&#x22;,&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;h&#x22;:&#x22;#degreeeuler&#x22;},{&#x22;k&#x22;:&#x22;CTYPE&#x22;,&#x22;c&#x22;:&#x22;ctor&#x22;,&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;h&#x22;:&#x22;#degreeeuler-1&#x22;},{&#x22;k&#x22;:&#x22;CDATA&#x22;,&#x22;c&#x22;:&#x22;method&#x22;,&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;h&#x22;:&#x22;#rotationvector&#x22;},{&#x22;k&#x22;:&#x22;CTYPE&#x22;,&#x22;c&#x22;:&#x22;ctor&#x22;,&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;h&#x22;:&#x22;#rotationvector-1&#x22;}]" />

## RadianEuler<ApiTag label="cdata" href="/cs2/api_reference/tutorials/ffi-crash-course#ctype-and-cdata" title="cdata<struct RadianEuler>" />

<ApiSymbol inherits="[{&#x22;n&#x22;:&#x22;RadianEuler&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler-1&#x22;}]" />

Euler angles in radians. Each component is a rotation around one axis. `x` rotates around
the X axis, which is the roll. `y` rotates around the Y axis, which is the pitch. `z` rotates
around the Z axis, which is the yaw.

A `QAngle` stores the same rotation in degrees and in a different order, which is pitch,
yaw and roll. When you convert to a `QAngle`, both the units and the order change. Animation
and particle schema fields use this type.

The `==` operator compares every component and returns `false` when the other value is not
a `RadianEuler`.

```cpp lines=false
typedef struct RadianEuler {
    float x, y, z;
} RadianEuler;
```

<ApiMembers>
  <ApiMember kind="prop" name="RadianEuler.x" summary="The rotation around the X axis in radians. This is the roll." ret="[[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]]" />

  <ApiMember kind="prop" name="RadianEuler.y" summary="The rotation around the Y axis in radians. This is the pitch." ret="[[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]]" />

  <ApiMember kind="prop" name="RadianEuler.z" summary="The rotation around the Z axis in radians. This is the yaw." ret="[[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]]" />
</ApiMembers>

<Heading level={2} id="radianeuler-1">
  RadianEuler

  <ApiTag label="ctype · callable" href="/cs2/api_reference/tutorials/ffi-crash-course#ctype-and-cdata" title="ctype<struct RadianEuler>" />
</Heading>

Call `RadianEuler()` to create angles with every component set to 0. Call
`RadianEuler(x, y, z)` to set the components. A component that is not given is set to 0.

You can also pass a `QAngle`, a `Quaternion`, a `QuaternionStorage` or a `DegreeEuler` to
convert the same rotation. Pass another `RadianEuler` to make a copy. Any other first
argument throws an error.

<ApiMembers>
  <ApiMember kind="ctor" name="RadianEuler()" summary="Angles with every component set to 0." syntax="RadianEuler()" mm="__call" sig="[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}]]" />

  <ApiMember kind="ctor" name="RadianEuler(x, y, z)" syntax="RadianEuler(x, y?, z?)" mm="__call" sig="[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;x&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;[, &#x22;},{&#x22;s&#x22;:&#x22;y&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;z&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;]&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;x&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]},{&#x22;n&#x22;:&#x22;y&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}],&#x22;o&#x22;:true},{&#x22;n&#x22;:&#x22;z&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}],&#x22;o&#x22;:true}]" />

  <ApiMember kind="ctor" name="RadianEuler(angles)" syntax="RadianEuler(angles)" mm="__call" sig="[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;angles&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;QAngle&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/angle#qangle&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;angles&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;QAngle&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/angle#qangle&#x22;}]}]" />

  <ApiMember kind="ctor" name="RadianEuler(q)" syntax="RadianEuler(q)" mm="__call" sig="[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;q&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;Quaternion&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/quaternion#quaternion-1&#x22;},{&#x22;s&#x22;:&#x22;|&#x22;},{&#x22;s&#x22;:&#x22;QuaternionStorage&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/quaternion#quaternionstorage&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;q&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;Quaternion&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/quaternion#quaternion-1&#x22;},{&#x22;s&#x22;:&#x22;|&#x22;},{&#x22;s&#x22;:&#x22;QuaternionStorage&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/quaternion#quaternionstorage&#x22;}]}]" />

  <ApiMember kind="ctor" name="RadianEuler(angles)" id="RadianEuler-angles-call-2" syntax="RadianEuler(angles)" mm="__call" sig="[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;angles&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;angles&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}]}]" />

  <ApiMember kind="ctor" name="RadianEuler(self)" syntax="RadianEuler(self)" mm="__call" sig="[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;self&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;self&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}]}]" />

  <ApiMember kind="fn" name="RadianEuler.Unpack" summary="Returns the X, Y and Z components." args="e" sig="[{&#x22;s&#x22;:&#x22;RadianEuler.Unpack&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}],[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}],[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}],&#x22;d&#x22;:&#x22;The angles to unpack.&#x22;}]" returns="[{&#x22;n&#x22;:&#x22;x&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]},{&#x22;n&#x22;:&#x22;y&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]},{&#x22;n&#x22;:&#x22;z&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]}]" nodiscard />

  <ApiMember kind="fn" name="RadianEuler.Copy" summary="Copies the components of one value into another value." args="src, dst" sig="[{&#x22;s&#x22;:&#x22;RadianEuler.Copy&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;src&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;dst&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;}]" params="[{&#x22;n&#x22;:&#x22;src&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}],&#x22;d&#x22;:&#x22;The value to copy from.&#x22;},{&#x22;n&#x22;:&#x22;dst&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}],&#x22;d&#x22;:&#x22;The value to copy into.&#x22;}]" />

  <ApiMember kind="fn" name="RadianEuler.Init" summary="Sets the components. A component that is not given is set to 0." args="e, x?, y?, z?" sig="[{&#x22;s&#x22;:&#x22;RadianEuler.Init&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;},{&#x22;s&#x22;:&#x22;[, &#x22;},{&#x22;s&#x22;:&#x22;x&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;y&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;z&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;]&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;}]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}],&#x22;d&#x22;:&#x22;The value to change.&#x22;},{&#x22;n&#x22;:&#x22;x&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}],&#x22;d&#x22;:&#x22;The rotation around the X axis in radians.&#x22;,&#x22;o&#x22;:true},{&#x22;n&#x22;:&#x22;y&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}],&#x22;d&#x22;:&#x22;The rotation around the Y axis in radians.&#x22;,&#x22;o&#x22;:true},{&#x22;n&#x22;:&#x22;z&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}],&#x22;d&#x22;:&#x22;The rotation around the Z axis in radians.&#x22;,&#x22;o&#x22;:true}]" />

  <ApiMember kind="fn" name="RadianEuler.IsValid" summary="Returns `true` if every component is a finite number. NaN and infinity are not finite." args="e" sig="[{&#x22;s&#x22;:&#x22;RadianEuler.IsValid&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;boolean&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#boolean&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;boolean&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#boolean&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}],&#x22;d&#x22;:&#x22;The value to check.&#x22;}]" nodiscard />

  <ApiMember kind="fn" name="RadianEuler.Invalidate" summary="Sets every component to NaN." args="e" sig="[{&#x22;s&#x22;:&#x22;RadianEuler.Invalidate&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;}]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}],&#x22;d&#x22;:&#x22;The value to change.&#x22;}]" />

  <ApiMember kind="fn" name="RadianEuler.ToQAngle" summary="Converts the angles to a `QAngle` in degrees. The pitch comes from `y`, the yaw comes from `z` and the roll comes from `x`." args="e" sig="[{&#x22;s&#x22;:&#x22;RadianEuler.ToQAngle&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;QAngle&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/angle#qangle&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;QAngle&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/angle#qangle&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}],&#x22;d&#x22;:&#x22;The angles to convert.&#x22;}]" nodiscard />

  <ApiMember kind="fn" name="RadianEuler.ToQuaternion" summary="Converts the angles to a `Quaternion`." args="e" sig="[{&#x22;s&#x22;:&#x22;RadianEuler.ToQuaternion&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;Quaternion&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/quaternion#quaternion-1&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;Quaternion&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/quaternion#quaternion-1&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}],&#x22;d&#x22;:&#x22;The angles to convert.&#x22;}]" nodiscard />

  <ApiMember kind="fn" name="RadianEuler.RotateVector" summary="Rotates a vector by these angles. The result is the same as `QAngle.RotateVector` with the converted angle." args="e, v" sig="[{&#x22;s&#x22;:&#x22;RadianEuler.RotateVector&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;v&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;Vector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vector#vector-1&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;Vector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vector#vector-1&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;Vector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vector#vector-1&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}],&#x22;d&#x22;:&#x22;The rotation to apply.&#x22;},{&#x22;n&#x22;:&#x22;v&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;Vector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vector#vector-1&#x22;}],&#x22;d&#x22;:&#x22;The vector to rotate.&#x22;}]" nodiscard />

  <ApiMember kind="fn" name="RadianEuler.Pitch" summary="Returns the pitch in radians. This is the `y` component." args="e" sig="[{&#x22;s&#x22;:&#x22;RadianEuler.Pitch&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}],&#x22;d&#x22;:&#x22;The angles to read.&#x22;}]" nodiscard />

  <ApiMember kind="fn" name="RadianEuler.Yaw" summary="Returns the yaw in radians. This is the `z` component." args="e" sig="[{&#x22;s&#x22;:&#x22;RadianEuler.Yaw&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}],&#x22;d&#x22;:&#x22;The angles to read.&#x22;}]" nodiscard />

  <ApiMember kind="fn" name="RadianEuler.Roll" summary="Returns the roll in radians. This is the `x` component." args="e" sig="[{&#x22;s&#x22;:&#x22;RadianEuler.Roll&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}],&#x22;d&#x22;:&#x22;The angles to read.&#x22;}]" nodiscard />
</ApiMembers>

## DegreeEuler<ApiTag label="cdata" href="/cs2/api_reference/tutorials/ffi-crash-course#ctype-and-cdata" title="cdata<struct DegreeEuler>" />

<ApiSymbol inherits="[{&#x22;n&#x22;:&#x22;DegreeEuler&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler-1&#x22;}]" />

Euler angles in degrees. The components have the same order as in `RadianEuler`. `x`
rotates around the X axis, which is the roll. `y` rotates around the Y axis, which is the
pitch. `z` rotates around the Z axis, which is the yaw.

This means that `QAngle(p, y, r)` and `DegreeEuler(r, p, y)` are the same rotation.

The `==` operator compares every component and returns `false` when the other value is not
a `DegreeEuler`.

```cpp lines=false
typedef struct DegreeEuler {
    float x, y, z;
} DegreeEuler;
```

<ApiMembers>
  <ApiMember kind="prop" name="DegreeEuler.x" summary="The rotation around the X axis in degrees. This is the roll." ret="[[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]]" />

  <ApiMember kind="prop" name="DegreeEuler.y" summary="The rotation around the Y axis in degrees. This is the pitch." ret="[[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]]" />

  <ApiMember kind="prop" name="DegreeEuler.z" summary="The rotation around the Z axis in degrees. This is the yaw." ret="[[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]]" />
</ApiMembers>

<Heading level={2} id="degreeeuler-1">
  DegreeEuler

  <ApiTag label="ctype · callable" href="/cs2/api_reference/tutorials/ffi-crash-course#ctype-and-cdata" title="ctype<struct DegreeEuler>" />
</Heading>

Call `DegreeEuler()` to create angles with every component set to 0. Call
`DegreeEuler(x, y, z)` to set the components. A component that is not given is set to 0.

You can also pass a `QAngle`, a `Quaternion`, a `QuaternionStorage` or a `RadianEuler` to
convert the same rotation. Pass another `DegreeEuler` to make a copy. Any other first
argument throws an error.

<ApiMembers>
  <ApiMember kind="ctor" name="DegreeEuler()" summary="Angles with every component set to 0." syntax="DegreeEuler()" mm="__call" sig="[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}]]" />

  <ApiMember kind="ctor" name="DegreeEuler(x, y, z)" syntax="DegreeEuler(x, y?, z?)" mm="__call" sig="[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;x&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;[, &#x22;},{&#x22;s&#x22;:&#x22;y&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;z&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;]&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;x&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]},{&#x22;n&#x22;:&#x22;y&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}],&#x22;o&#x22;:true},{&#x22;n&#x22;:&#x22;z&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}],&#x22;o&#x22;:true}]" />

  <ApiMember kind="ctor" name="DegreeEuler(angles)" syntax="DegreeEuler(angles)" mm="__call" sig="[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;angles&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;QAngle&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/angle#qangle&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;angles&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;QAngle&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/angle#qangle&#x22;}]}]" />

  <ApiMember kind="ctor" name="DegreeEuler(q)" syntax="DegreeEuler(q)" mm="__call" sig="[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;q&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;Quaternion&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/quaternion#quaternion-1&#x22;},{&#x22;s&#x22;:&#x22;|&#x22;},{&#x22;s&#x22;:&#x22;QuaternionStorage&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/quaternion#quaternionstorage&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;q&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;Quaternion&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/quaternion#quaternion-1&#x22;},{&#x22;s&#x22;:&#x22;|&#x22;},{&#x22;s&#x22;:&#x22;QuaternionStorage&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/quaternion#quaternionstorage&#x22;}]}]" />

  <ApiMember kind="ctor" name="DegreeEuler(angles)" id="DegreeEuler-angles-call-2" syntax="DegreeEuler(angles)" mm="__call" sig="[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;angles&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;angles&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RadianEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#radianeuler&#x22;}]}]" />

  <ApiMember kind="ctor" name="DegreeEuler(self)" syntax="DegreeEuler(self)" mm="__call" sig="[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;self&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;self&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}]}]" />

  <ApiMember kind="fn" name="DegreeEuler.Unpack" summary="Returns the X, Y and Z components." args="e" sig="[{&#x22;s&#x22;:&#x22;DegreeEuler.Unpack&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}],[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}],[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}],&#x22;d&#x22;:&#x22;The angles to unpack.&#x22;}]" returns="[{&#x22;n&#x22;:&#x22;x&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]},{&#x22;n&#x22;:&#x22;y&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]},{&#x22;n&#x22;:&#x22;z&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]}]" nodiscard />

  <ApiMember kind="fn" name="DegreeEuler.Copy" summary="Copies the components of one value into another value." args="src, dst" sig="[{&#x22;s&#x22;:&#x22;DegreeEuler.Copy&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;src&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;dst&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;}]" params="[{&#x22;n&#x22;:&#x22;src&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}],&#x22;d&#x22;:&#x22;The value to copy from.&#x22;},{&#x22;n&#x22;:&#x22;dst&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}],&#x22;d&#x22;:&#x22;The value to copy into.&#x22;}]" />

  <ApiMember kind="fn" name="DegreeEuler.Init" summary="Sets the components. A component that is not given is set to 0." args="e, x?, y?, z?" sig="[{&#x22;s&#x22;:&#x22;DegreeEuler.Init&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;},{&#x22;s&#x22;:&#x22;[, &#x22;},{&#x22;s&#x22;:&#x22;x&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;y&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;z&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;]&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;}]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}],&#x22;d&#x22;:&#x22;The value to change.&#x22;},{&#x22;n&#x22;:&#x22;x&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}],&#x22;d&#x22;:&#x22;The rotation around the X axis in degrees.&#x22;,&#x22;o&#x22;:true},{&#x22;n&#x22;:&#x22;y&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}],&#x22;d&#x22;:&#x22;The rotation around the Y axis in degrees.&#x22;,&#x22;o&#x22;:true},{&#x22;n&#x22;:&#x22;z&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}],&#x22;d&#x22;:&#x22;The rotation around the Z axis in degrees.&#x22;,&#x22;o&#x22;:true}]" />

  <ApiMember kind="fn" name="DegreeEuler.IsValid" summary="Returns `true` if every component is a finite number. NaN and infinity are not finite." args="e" sig="[{&#x22;s&#x22;:&#x22;DegreeEuler.IsValid&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;boolean&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#boolean&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;boolean&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#boolean&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}],&#x22;d&#x22;:&#x22;The value to check.&#x22;}]" nodiscard />

  <ApiMember kind="fn" name="DegreeEuler.Invalidate" summary="Sets every component to NaN." args="e" sig="[{&#x22;s&#x22;:&#x22;DegreeEuler.Invalidate&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;}]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}],&#x22;d&#x22;:&#x22;The value to change.&#x22;}]" />

  <ApiMember kind="fn" name="DegreeEuler.ToQAngle" summary="Converts the angles to a `QAngle`. The pitch comes from `y`, the yaw comes from `z` and the roll comes from `x`." args="e" sig="[{&#x22;s&#x22;:&#x22;DegreeEuler.ToQAngle&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;QAngle&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/angle#qangle&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;QAngle&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/angle#qangle&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}],&#x22;d&#x22;:&#x22;The angles to convert.&#x22;}]" nodiscard />

  <ApiMember kind="fn" name="DegreeEuler.ToQuaternion" summary="Converts the angles to a `Quaternion`." args="e" sig="[{&#x22;s&#x22;:&#x22;DegreeEuler.ToQuaternion&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;Quaternion&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/quaternion#quaternion-1&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;Quaternion&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/quaternion#quaternion-1&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}],&#x22;d&#x22;:&#x22;The angles to convert.&#x22;}]" nodiscard />

  <ApiMember kind="fn" name="DegreeEuler.RotateVector" summary="Rotates a vector by these angles. The result is the same as `QAngle.RotateVector` with the converted angle." args="e, v" sig="[{&#x22;s&#x22;:&#x22;DegreeEuler.RotateVector&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;v&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;Vector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vector#vector-1&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;Vector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vector#vector-1&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;Vector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vector#vector-1&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}],&#x22;d&#x22;:&#x22;The rotation to apply.&#x22;},{&#x22;n&#x22;:&#x22;v&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;Vector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vector#vector-1&#x22;}],&#x22;d&#x22;:&#x22;The vector to rotate.&#x22;}]" nodiscard />

  <ApiMember kind="fn" name="DegreeEuler.Pitch" summary="Returns the pitch in degrees. This is the `y` component." args="e" sig="[{&#x22;s&#x22;:&#x22;DegreeEuler.Pitch&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}],&#x22;d&#x22;:&#x22;The angles to read.&#x22;}]" nodiscard />

  <ApiMember kind="fn" name="DegreeEuler.Yaw" summary="Returns the yaw in degrees. This is the `z` component." args="e" sig="[{&#x22;s&#x22;:&#x22;DegreeEuler.Yaw&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}],&#x22;d&#x22;:&#x22;The angles to read.&#x22;}]" nodiscard />

  <ApiMember kind="fn" name="DegreeEuler.Roll" summary="Returns the roll in degrees. This is the `x` component." args="e" sig="[{&#x22;s&#x22;:&#x22;DegreeEuler.Roll&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;e&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;e&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;DegreeEuler&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#degreeeuler&#x22;}],&#x22;d&#x22;:&#x22;The angles to read.&#x22;}]" nodiscard />
</ApiMembers>

## RotationVector<ApiTag label="cdata" href="/cs2/api_reference/tutorials/ffi-crash-course#ctype-and-cdata" title="cdata<struct RotationVector>" />

<ApiSymbol inherits="[{&#x22;n&#x22;:&#x22;RotationVector&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector-1&#x22;},{&#x22;n&#x22;:&#x22;Vector&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vector#vector-1&#x22;}]" />

A rotation stored as one vector. The direction of the vector is the axis of the rotation.
The length of the vector is the angle of the rotation in degrees. This is also called an
exponential map. Angular velocities use this type, for example in
`mathlib.CalcAngularVelocity` and in the quaternion version of `mathlib.SmoothDamp`.

You can call every `Vector` method on a `RotationVector`. `Normalized`, `NormalizedSafe` and
`Scaled` return a `RotationVector`. Other `Vector` methods that create a new vector return a
`Vector`.

The `+`, `-`, `*` and `/` operators take a `RotationVector` or a `Vector` on the right side
and return a `RotationVector`. The `*` and `/` operators also take a number. The unary `-`
operator returns a negated copy, and the `#` operator returns the length. The `==` operator
compares every component and returns `false` when the other value is not a
`RotationVector`.

```cpp lines=false
typedef struct RotationVector {
    float x, y, z;
} RotationVector;
```

<ApiMembers>
  <ApiMember kind="meta" name="RotationVector + b" syntax="a + b" mm="__add" ret="[[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;b&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;Vector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vector#vector-1&#x22;},{&#x22;s&#x22;:&#x22;|&#x22;},{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]}]" />

  <ApiMember kind="meta" name="RotationVector - b" syntax="a - b" mm="__sub" ret="[[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;b&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;Vector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vector#vector-1&#x22;},{&#x22;s&#x22;:&#x22;|&#x22;},{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]}]" />

  <ApiMember kind="meta" name="RotationVector * b" syntax="a * b" mm="__mul" ret="[[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;b&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;Vector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vector#vector-1&#x22;},{&#x22;s&#x22;:&#x22;|&#x22;},{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;},{&#x22;s&#x22;:&#x22;|&#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]}]" />

  <ApiMember kind="meta" name="RotationVector / b" syntax="a / b" mm="__div" ret="[[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;b&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;Vector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vector#vector-1&#x22;},{&#x22;s&#x22;:&#x22;|&#x22;},{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;},{&#x22;s&#x22;:&#x22;|&#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]}]" />

  <ApiMember kind="meta" name="-RotationVector" syntax="-a" mm="__unm" ret="[[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]]" />

  <ApiMember kind="meta" name="#RotationVector" syntax="#a" mm="__len" ret="[[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]]" />
</ApiMembers>

<Heading level={2} id="rotationvector-1">
  RotationVector

  <ApiTag label="ctype · callable" href="/cs2/api_reference/tutorials/ffi-crash-course#ctype-and-cdata" title="ctype<struct RotationVector>" />
</Heading>

Call `RotationVector()` to create a value with every component set to 0. Call
`RotationVector(x, y, z)` to set the components. A component that is not given is set to 0.
Call `RotationVector(v)` with a `Vector` or a `VectorAligned` to copy its X, Y and Z. Call
`RotationVector(other)` to make a copy of another `RotationVector`. Any other first argument
throws an error.

The constant values below cannot be changed.

<ApiMembers>
  <ApiMember kind="ctor" name="RotationVector()" syntax="RotationVector()" mm="__call" sig="[{&#x22;s&#x22;:&#x22;RotationVector&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]]" />

  <ApiMember kind="ctor" name="RotationVector(x, y, z)" syntax="RotationVector(x, y?, z?)" mm="__call" sig="[{&#x22;s&#x22;:&#x22;RotationVector&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;x&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;[, &#x22;},{&#x22;s&#x22;:&#x22;y&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;z&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;]&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;x&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}]},{&#x22;n&#x22;:&#x22;y&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}],&#x22;o&#x22;:true},{&#x22;n&#x22;:&#x22;z&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}],&#x22;o&#x22;:true}]" />

  <ApiMember kind="ctor" name="RotationVector(v)" syntax="RotationVector(v)" mm="__call" sig="[{&#x22;s&#x22;:&#x22;RotationVector&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;v&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;Vector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vector#vector-1&#x22;},{&#x22;s&#x22;:&#x22;|&#x22;},{&#x22;s&#x22;:&#x22;VectorAligned&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vectoraligned#vectoraligned&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;v&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;Vector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vector#vector-1&#x22;},{&#x22;s&#x22;:&#x22;|&#x22;},{&#x22;s&#x22;:&#x22;VectorAligned&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vectoraligned#vectoraligned&#x22;}]}]" />

  <ApiMember kind="ctor" name="RotationVector(self)" syntax="RotationVector(self)" mm="__call" sig="[{&#x22;s&#x22;:&#x22;RotationVector&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;self&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;self&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]}]" />

  <ApiMember kind="prop" name="RotationVector.vOne" summary="The value `(1, 1, 1)`." ret="[[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]]" />

  <ApiMember kind="prop" name="RotationVector.vXAxis" summary="The value `(1, 0, 0)`." ret="[[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]]" />

  <ApiMember kind="prop" name="RotationVector.vYAxis" summary="The value `(0, 1, 0)`." ret="[[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]]" />

  <ApiMember kind="prop" name="RotationVector.vZAxis" summary="The value `(0, 0, 1)`." ret="[[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]]" />

  <ApiMember kind="prop" name="RotationVector.vZero" summary="The value `(0, 0, 0)`." ret="[[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]]" />

  <ApiMember kind="fn" name="RotationVector.FromVector" summary="Copies the components of a vector into this value." args="rv, v" sig="[{&#x22;s&#x22;:&#x22;RotationVector.FromVector&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;rv&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;v&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;Vector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vector#vector-1&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;}]" params="[{&#x22;n&#x22;:&#x22;rv&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}],&#x22;d&#x22;:&#x22;The value to change.&#x22;},{&#x22;n&#x22;:&#x22;v&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;Vector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vector#vector-1&#x22;}],&#x22;d&#x22;:&#x22;The vector to copy from.&#x22;}]" />

  <ApiMember kind="fn" name="RotationVector.Copy" summary="Copies the components of one value into another value." args="src, dst" sig="[{&#x22;s&#x22;:&#x22;RotationVector.Copy&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;src&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;dst&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;}]" params="[{&#x22;n&#x22;:&#x22;src&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}],&#x22;d&#x22;:&#x22;The value to copy from.&#x22;},{&#x22;n&#x22;:&#x22;dst&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}],&#x22;d&#x22;:&#x22;The value to copy into.&#x22;}]" />

  <ApiMember kind="fn" name="RotationVector.Normalized" summary="Returns a normalized copy. If the length is 0, the copy is `(0, 0, 0)`." args="rv" sig="[{&#x22;s&#x22;:&#x22;RotationVector.Normalized&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;rv&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;rv&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}],&#x22;d&#x22;:&#x22;The value to normalize.&#x22;}]" nodiscard />

  <ApiMember kind="fn" name="RotationVector.NormalizedSafe" summary="Returns a normalized copy. If the length is 0, a new `RotationVector` with the components of `fallback` is returned." args="rv, fallback" sig="[{&#x22;s&#x22;:&#x22;RotationVector.NormalizedSafe&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;rv&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;fallback&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;Vector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vector#vector-1&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;rv&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}],&#x22;d&#x22;:&#x22;The value to normalize.&#x22;},{&#x22;n&#x22;:&#x22;fallback&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;Vector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/vector#vector-1&#x22;}],&#x22;d&#x22;:&#x22;The value to use when the length is 0.&#x22;}]" nodiscard />

  <ApiMember kind="fn" name="RotationVector.Scaled" summary="Returns a copy with every component multiplied by a number." args="rv, scalar" sig="[{&#x22;s&#x22;:&#x22;RotationVector.Scaled&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;rv&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;scalar&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}]]" params="[{&#x22;n&#x22;:&#x22;rv&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;RotationVector&#x22;,&#x22;k&#x22;:&#x22;class&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/mathlib/euler#rotationvector&#x22;}],&#x22;d&#x22;:&#x22;The value to scale.&#x22;},{&#x22;n&#x22;:&#x22;scalar&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;number&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#number&#x22;}],&#x22;d&#x22;:&#x22;The number to multiply each component by.&#x22;}]" nodiscard />
</ApiMembers>
