# AxisAngleRotation3D

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-media3d/struct-axisanglerotation3d/

**struct** · [`ferroui-media3d`](/docs/0.5.0/api/ferroui-media3d/) · v0.5.0

```rust
struct AxisAngleRotation3D
```

WPF's `AxisAngleRotation3D`: a rotation by `Angle` degrees about `Axis`, counterclockwise
when the axis points at the viewer. An axis of (nearly) zero length is no rotation.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/rotation_3d.rs#L62)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`axis_property`](#function-axis_property)
- [`angle_property`](#function-angle_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`with_axis_angle`](#function-with_axis_angle)
- [`axis`](#function-axis)
- [`set_axis`](#function-set_axis)
- [`angle`](#function-angle)
- [`set_angle`](#function-set_angle)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/rotation_3d.rs#L66)

<a id="function-to_ref"></a>

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<AxisAngleRotation3D>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/rotation_3d.rs#L66)

<a id="function-axis_property"></a>

### axis_property

```rust
fn axis_property() -> &'static StyledProperty<Vector3D>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/rotation_3d.rs#L96)

<a id="function-angle_property"></a>

### angle_property

```rust
fn angle_property() -> &'static StyledProperty<f64>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/rotation_3d.rs#L96)

<a id="function-construct"></a>

### construct

```rust
fn construct() -> Self
```

Creates the class data.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/rotation_3d.rs#L107)

<a id="function-new"></a>

### new

```rust
fn new() -> Ref<Self>
```

A rotation by 0 degrees about the y axis.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/rotation_3d.rs#L112)

<a id="function-with_axis_angle"></a>

### with_axis_angle

```rust
fn with_axis_angle(axis: Vector3D, angle: f64) -> Ref<Self>
```

A rotation by `angle` degrees about `axis`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/rotation_3d.rs#L117)

<a id="function-axis"></a>

### axis

```rust
fn axis(self: &Self) -> Vector3D
```

The axis of the rotation.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/rotation_3d.rs#L125)

<a id="function-set_axis"></a>

### set_axis

```rust
fn set_axis(self: &Self, value: Vector3D)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/rotation_3d.rs#L129)

<a id="function-angle"></a>

### angle

```rust
fn angle(self: &Self) -> f64
```

The angle of the rotation, in degrees.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/rotation_3d.rs#L134)

<a id="function-set_angle"></a>

### set_angle

```rust
fn set_angle(self: &Self, value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/rotation_3d.rs#L138)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`Rotation3DImplExt`](/docs/0.5.0/api/ferroui-media3d/trait-rotation3dimplext/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<AxisAngleRotation3D>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`Rotation3DImpl`](/docs/0.5.0/api/ferroui-media3d/trait-rotation3dimpl/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
